You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 ||
The text was updated successfully, but these errors were encountered:
Thanks for the response. The function I was using lets the user define their own variable name, hence the !! operator. I can make a work around but thanks for looking into it!
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 ||The text was updated successfully, but these errors were encountered: