Skip to content

set could allow empty input without warning #4086

@jangorecki

Description

@jangorecki
d = data.table(a=1, b=1)
dropcols = character()
set(d, NULL, dropcols, NULL)
#Warning message:
#In set(d, NULL, dropcols, NULL) :
#  length(LHS)==0; no columns to delete or assign RHS to.

I don't think we really need a warning here, it could work without the need for if (length(dropcols)) set(...).

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions