Skip to content

Commit 9b73649

Browse files
committed
Avoid warning in slides on binding = NULL if binding doesn't exist
to match `mutate` behavior
1 parent e9b1b1b commit 9b73649

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/utils.R

+1-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ as_slide_computation <- function(f, ...) {
312312
if (is.null(quosure_result_raw)) {
313313
nm <- nms[[quosure_i]]
314314
results_names <- results_names[results_names != nm]
315-
remove(list = nm, envir = results_env)
315+
rlang::env_unbind(results_env, nm)
316316
} else if (vctrs::obj_is_vector(quosure_result_raw) &&
317317
is.null(vctrs::vec_names(quosure_result_raw))) {
318318
# We want something like `dplyr_col_modify()` but allowing recycling

0 commit comments

Comments
 (0)