From 58ef6bbe57ca155b2bd4a4f926c78dd2ef059ec7 Mon Sep 17 00:00:00 2001 From: shikokuchuo <53399081+shikokuchuo@users.noreply.github.com> Date: Sun, 6 Oct 2024 20:51:24 +0100 Subject: [PATCH] more succinct --- R/map.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/map.R b/R/map.R index 308df24bc..16026b2a4 100644 --- a/R/map.R +++ b/R/map.R @@ -229,7 +229,7 @@ mirai_map <- function(.x, .f, ..., .args = list(), .promise = NULL, .compute = " missing(..1) && return(collect_aio_(x)) - dots <- eval(`[[<-`(substitute(alist(...)), 1L, quote(list)), envir = environment(mirai_map)) + dots <- eval(`[[<-`(substitute(alist(...)), 1L, quote(list)), envir = .) expr <- if (length(dots) > 1L) do.call(expression, dots) else dots[[1L]] xlen <- length(x) i <- 0L