Using pre-existing character vectors in quasiquotation of an expression with rlang
Sometimes when working with dplyr one has a character vector of column names that's to be used to operate on data, for instance: cols_of_interest <- c("Petal.Width", "Petal.Length") In dplyr 0.5.0 and earlier, the recommended approach to this problem was to use the verb_ underscore construct as follows: library("tidyverse") my_cols <- c("Petal.Width", "Petal.Length") iris %>% select_(.dots = my_cols) The verb_ functions are now deprecated in favour of the new tidy evaluation framework (dplyr.tidyverse.org/articles/programming.html) introduced by the rlang library. As of dplyr 0.7.0 the