Closed mjsteinbaugh closed 7 years ago
this would be !!! rlang::syms(chr_vector)
. @hadley should sym()
and syms()
be reexported in dplyr?
Awesome, works great. I was close in the rlang
documentation!
select(starwars, !!!rlang::syms(cols))
arrange(starwars, !!!rlang::syms(cols))
I don't think we need to re-export it because you're using the
For completion, is there other solution than using !!! rlang::syms(chr_vector)
?
syms(x)
is equivalent to lapply(x, as.name)
Lionel, thank you! In general, it would help if SE would be first class throughout in tidyverse.
Hi all, I'm reading through the new
dplyr
programming vignette and am working on updating the syntax used in my packages. I'm confused how to properly pass in character vectors (e.g. forselect()
,arrange()
) with the newtidyeval
methods using standard evaluation. What's the recommended syntax for quasi-quotation of a character vector for column name matching in place of the now deprecated.dots
method? Everything else is working great for me in the latest release candidate.Thanks, Mike