Skip to content

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

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 ||

Activity

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions