Skip to content

Commit

Permalink
Use as_environment() rather than new_environment()
Browse files Browse the repository at this point in the history
  • Loading branch information
lionel- committed Feb 26, 2018
1 parent 33f310b commit 9cfb9f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/vars-select.R
Expand Up @@ -216,7 +216,7 @@ vars_select_eval <- function(vars, quos) {

# Overscope `c`, `:` and `-` with versions that handle strings
data_helpers <- list(`:` = vars_colon, `-` = vars_minus, `c` = vars_c)
overscope_top <- new_environment(data_helpers)
overscope_top <- as_environment(data_helpers)

# Symbols and calls to `:` and `c()` are evaluated with data in scope
is_helper <- map_lgl(quos, quo_is_helper)
Expand Down

0 comments on commit 9cfb9f5

Please sign in to comment.