Skip to content

When filter() gets a formula object, it modifies it by reference #971

@lionel-

Description

@lionel-

This happens when we forget to add an underscore to use the non-NSE version:

my_filter <- ~ am == 1
mtcars %>% filter(my_filter)
## Error: filter condition does not evaluate to a logical vector. 

Now, my_filter contains the actual am object instead of just its name.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions