FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

set could allow empty input without warning · Issue #4086 · Rdatatable/data.table · GitHub

set could allow empty input without warning #4086

Description

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(...).

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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


    Back | FazBrowse Home | New Git URL