From 9cfb9f53a8608fe5640c66e60ca31a5a2004282d Mon Sep 17 00:00:00 2001 From: Lionel Henry Date: Mon, 26 Feb 2018 15:44:07 +0100 Subject: [PATCH] Use as_environment() rather than new_environment() --- R/vars-select.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/vars-select.R b/R/vars-select.R index 541b35d8..d25aae57 100644 --- a/R/vars-select.R +++ b/R/vars-select.R @@ -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)