Skip to content

Pipeline throws an error when trying to evaluate ":=" using dplyr #50

@husamrahman

Description

@husamrahman

The package throws an error if the function it is referencing contains ":=" in one of its operations.

Simply example below where df is any data frame. Running the code below in a normal R console works, however when wrapped in a function and used in the pipeline it throws an error.

Example Cod:
df <- df %>%
mutate(!!sym("this_is_a_test") := 1)

Error:

ERROR [2019-02-27 15:46:58] || EXCEPTION OCCURED WHILE RUNNING THE PIPELINE FUNCTION WITH PROVIDED PARAMETERS: The LHS of := must be a string or a symbol ||
ERROR [2019-02-27 15:46:58] Error in genericPipelineException(error = structure(list(message = "The LHS of := must be a string or a symbol", : || EXCEPTION OCCURED WHILE RUNNING THE PIPELINE FUNCTION WITH PROVIDED PARAMETERS: The LHS of := must be a string or a symbol ||

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions