I have a private R package on github that I have made.
I make use of !!rlang::sym(function_argument)
frequently to accept inputs from functions and use with tidyverse.
For example:
example_function = function(x){
new = mtcars %>% arrange(desc(!!rlang::sym(x))
return(new)
}
example_function('mpg')
So I have this uploaded to a private github, and then if I go to install it - devtools::install_git('myaccount/myrepo')
when I look at the underlying code in the function
myinstalled_package::example_function
It shows as !(!rlang::sym
wherever I had !!rlang::sym
. The function still actually works, but again, when I examine the code it doesn't. I looked on github and the code is correct there, it is just when I download it to my computer that I have this really annoying conversion.
I am also seeing other similar changes such as if I had !!each_var :=
being converted to :=(!(!each_var),
Is there anyway to stop this or why this is happening?