We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15191ea commit 7bdb606Copy full SHA for 7bdb606
R/expressions.R
@@ -314,7 +314,12 @@ evalFuture <- function(
314
## -----------------------------------------------------------------
315
## Evaluate expression in a local() environment?
316
if (local) {
317
- tmpl_expr_local <- bquote_compile(base::local(.(expr)))
+ tmpl_expr_local <- bquote_compile(base::local({
318
+ env <- base::environment()
319
+ base::attr(env, "name") <- "future:evalenv"
320
+ base::rm(list = "env")
321
+ .(expr)
322
+ }))
323
expr <- bquote_apply(tmpl_expr_local)
324
## WORKAROUND: This makes assumption about withCallingHandlers()
325
## and local(). In case this changes, provide internal options to
0 commit comments