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(...).
I don't think we really need a warning here, it could work without the need for
if (length(dropcols)) set(...).