Skip to content

Commit fc7a52d

Browse files
CLEANUP: Remove internal field 'envir' - only needed when creating the future object
1 parent 6cdb905 commit fc7a52d

File tree

5 files changed

+1
-10
lines changed

5 files changed

+1
-10
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Package: future
2-
Version: 1.68.0-9008
2+
Version: 1.68.0-9009
33
Title: Unified Parallel and Distributed Processing in R for Everyone
44
Depends:
55
R (>= 3.2.0)

R/backend_api-01-FutureBackend-class.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,6 @@ makeFutureBackend <- function(evaluator, ..., debug = FALSE) {
261261
args2 <- formals(evaluator)
262262
## Drop never-used arguments
263263
args2$`...` <- NULL
264-
args2$envir <- NULL # legacy
265264
args2$lazy <- NULL # bc multisession; should be removed
266265
if (debug) {
267266
mdebugf("Evaluator formal arguments: [n=%d]", length(args2))

R/backend_api-Future-class.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,6 @@ Future <- function(expr = NULL, envir = parent.frame(), substitute = TRUE, stdou
205205

206206
## Future evaluation
207207
core[["expr"]] <- expr
208-
core[["envir"]] <- envir
209208
core[["stdout"]] <- stdout
210209
core[["conditions"]] <- conditions
211210
core[["globals"]] <- globals
@@ -334,7 +333,6 @@ print.Future <- function(x, ...) {
334333
cat(sprintf("Lazy evaluation: %s\n", future[["lazy"]]))
335334
cat(sprintf("Local evaluation: %s\n", future[["local"]]))
336335
cat(sprintf("Early signaling: %s\n", isTRUE(future[["earlySignal"]])))
337-
cat(sprintf("Environment: %s\n", envname(future[["envir"]])))
338336

339337
actions <- future[["actions"]]
340338
cat(sprintf("Actions: [n=%d] %s\n", length(actions), commaq(actions)))
@@ -604,7 +602,6 @@ run.Future <- function(future, ...) {
604602
args <- list(
605603
quote(future[["expr"]]),
606604
substitute = FALSE,
607-
envir = future[["envir"]],
608605
lazy = TRUE,
609606
stdout = future[["stdout"]],
610607
conditions = future[["conditions"]],

R/core_api-reset.R

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,6 @@ reset.Future <- function(x, ...) {
7878
core_fields <- c(
7979
"version",
8080
"expr",
81-
"envir",
8281
"stdout",
8382
"conditions",
8483
"globals",

inst/testme/test-plan.R

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -362,10 +362,6 @@ plan(sequential, split = FALSE)
362362
f <- future(42L)
363363
v <- value(f)
364364
stopifnot(v == 42L)
365-
stopifnot(
366-
inherits(f$envir, "environment"),
367-
identical(f$envir, globalenv())
368-
)
369365

370366
message("*** plan() - odds'n'ends ... DONE")
371367

0 commit comments

Comments
 (0)