Skip to content

mutate() with functions that return NULL #2187

@krlmlr

Description

@krlmlr

gives an error. Is this by design? I can't find a test for this.

mutate(iris, x = identity(NULL))
## Error in eval(substitute(expr), envir, enclos) : 
##   Unsupported type NILSXP for column "x"
mutate(iris, x = NULL)
## (works as expected)

Metadata

Metadata

Assignees

Labels

bugan unexpected problem or unintended behavior

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions