R version 4.5.0 RC (2025-04-04 r88126 ucrt) -- "How About a Twenty-Six" Copyright (C) 2025 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > ## This runs testme test script incl/testme/test-futureOf_with_environment.R > ## Don't edit - it was autogenerated by inst/testme/deploy.R > future:::testme("futureOf_with_environment") Test 'futureOf_with_environment' ... Sourcing 9 prologue scripts ... 01/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future/testme/_prologue/001.load.R' 02/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future/testme/_prologue/002.record-state.R' 03/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future/testme/_prologue/030.imports.R' 04/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future/testme/_prologue/050.utils.R' 05/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future/testme/_prologue/090.context.R' 06/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future/testme/_prologue/090.options.R' 07/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future/testme/_prologue/091.envvars.R' 08/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future/testme/_prologue/099.future-setup.R' 09/09 prologue script 'D:/RCompile/CRANincoming/R-devel/lib/future/testme/_prologue/995.detrius-connections.R' Sourcing 9 prologue scripts ... done Running test script: 'D:/RCompile/CRANincoming/R-devel/lib/future/testme/test-futureOf_with_environment.R' > library(future) [08:47:38.649] Option 'future.startup.script': TRUE [08:47:38.651] Future startup scripts considered: '.future.R', '~/.future.R' [08:47:38.651] Future startup scripts found: > suppressWarnings(rm(list = c("x", "z"))) > message("*** futureOf() with environment ...") *** futureOf() with environment ... > message("*** futureOf() with environment - future assignments ...") *** futureOf() with environment - future assignments ... > x <- new.env() > x$a %<-% { + 1 + } [08:47:38.655] getGlobalsAndPackages() ... [08:47:38.655] | Searching for globals ... [08:47:38.660] | : globals found: [1] '{' [08:47:38.660] | Searching for globals ... DONE [08:47:38.660] | Resolving globals: FALSE [08:47:38.661] | Search for packages associated with the globals ... [08:47:38.661] | : Packages associated with globals: [1] 'base' [08:47:38.662] | : Packages: [1] 'base' [08:47:38.663] | Search for packages associated with the globals ... DONE [08:47:38.663] | Packages after dropping 'base': [0] [08:47:38.663] | globals: [0] [08:47:38.663] | packages: [0] [08:47:38.664] getGlobalsAndPackages() ... done [08:47:38.665] run() for Future ('Future') ... [08:47:38.665] | state: 'created' [08:47:38.666] | plan(, .skip = FALSE, .cleanup = NA, .init = TRUE) ... [08:47:38.666] | : makeFutureBackend() ... [08:47:38.666] | : . Backend function: <'NULL'> [08:47:38.667] | : . Backend: <'SequentialFutureBackend', 'FutureBackend', 'environment'> [08:47:38.667] | : makeFutureBackend() ... done [08:47:38.668] | plan(, .skip = FALSE, .cleanup = NA, .init = TRUE) ... done [08:47:38.668] | Using SequentialFutureBackend ... [08:47:38.668] | : Launching futures ... [08:47:38.669] | : . launchFuture() for 'SequentialFutureBackend', 'FutureBackend', 'environment' ... [08:47:38.669] | : . | getFutureData() ... [08:47:38.670] | : . | : getFutureCore() ... [08:47:38.670] | : . | : . Packages needed by the future expression (n = 0): [08:47:38.670] | : . | : getFutureCore() ... done [08:47:38.671] | : . | : getFutureCapture() ... [08:47:38.671] | : . | : getFutureCapture() ... done [08:47:38.672] | : . | : getFutureContext() ... [08:47:38.672] | : . | : . plan(, .skip = FALSE, .cleanup = NA, .init = TRUE) ... [08:47:38.672] | : . | : . | Getting stack without first strategy: [n=0] [08:47:38.673] | : . | : . plan(, .skip = FALSE, .cleanup = NA, .init = TRUE) ... done [08:47:38.673] | : . | : . Packages needed by future strategies (n = 0): [08:47:38.673] | : . | : getFutureContext() ... done [08:47:38.674] | : . | getFutureData() ... done [08:47:38.675] | : . | attachPackages() ... [08:47:38.676] | : . | : packages: [n=1] 'future' [08:47:38.676] | : . | attachPackages() ... DONE [08:47:38.676] | : . | attachPackages() ... [08:47:38.676] | : . | : packages: [n=0] [08:47:38.677] | : . | attachPackages() ... DONE [08:47:38.677] | : . | plan(, .skip = FALSE, .cleanup = NA, .init = TRUE) ... [08:47:38.678] | : . | : Getting full stack: [n=1] 'sequential', 'uniprocess', 'future', 'function' [08:47:38.678] | : . | plan(, .skip = FALSE, .cleanup = NA, .init = TRUE) ... done [08:47:38.679] | : . | plan(, .skip = FALSE, .cleanup = FALSE, .init = FALSE) ... [08:47:38.679] | : . | : plan(): plan_set(<1 strategies>, skip = FALSE, cleanup = FALSE, init = FALSE) ... [08:47:38.679] | : . | : . all.equal() for FutureStrategyList ... [08:47:38.680] | : . | : . | New stack: [08:47:38.680] | : . | : . | List of 1 [08:47:38.680] | : . | : . | $ :function (..., gc = FALSE, earlySignal = FALSE, envir = parent.frame()) [08:47:38.680] | : . | : . | ..- attr(*, "class")= chr [1:4] "sequential" "uniprocess" "future" "function" [08:47:38.680] | : . | : . | ..- attr(*, "factory")=function (..., maxSizeOfObjects = +Inf) [08:47:38.680] | : . | : . | .. ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.680] | : . | : . | ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.680] | : . | : . | ..- attr(*, "call")= language plan(strategiesR, .cleanup = FALSE, .init = FALSE) [08:47:38.680] | : . | : . | - attr(*, "class")= chr [1:2] "FutureStrategyList" "list" [08:47:38.689] | : . | : . | Old stack: [08:47:38.689] | : . | : . | List of 1 [08:47:38.689] | : . | : . | $ :function (..., gc = FALSE, earlySignal = FALSE, envir = parent.frame()) [08:47:38.689] | : . | : . | ..- attr(*, "class")= chr [1:4] "sequential" "uniprocess" "future" "function" [08:47:38.689] | : . | : . | ..- attr(*, "factory")=function (..., maxSizeOfObjects = +Inf) [08:47:38.689] | : . | : . | .. ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.689] | : . | : . | ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.689] | : . | : . | ..- attr(*, "call")= language plan(sequential) [08:47:38.689] | : . | : . | ..- attr(*, "backend")=Classes 'SequentialFutureBackend', 'FutureBackend', 'environment' [08:47:38.689] | : . | : . | .. ..- attr(*, "factory")=function (..., maxSizeOfObjects = +Inf) [08:47:38.689] | : . | : . | .. .. ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.689] | : . | : . | - attr(*, "class")= chr [1:2] "FutureStrategyList" "list" [08:47:38.694] | : . | : . | Not identical [08:47:38.694] | : . | : . | all.equal() for future ... [08:47:38.694] | : . | : . | : List of 2 [08:47:38.694] | : . | : . | : $ target :function (..., gc = FALSE, earlySignal = FALSE, envir = parent.frame()) [08:47:38.694] | : . | : . | : ..- attr(*, "class")= chr [1:4] "sequential" "uniprocess" "future" "function" [08:47:38.694] | : . | : . | : ..- attr(*, "factory")=function (..., maxSizeOfObjects = +Inf) [08:47:38.694] | : . | : . | : .. ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.694] | : . | : . | : ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.694] | : . | : . | : ..- attr(*, "call")= language plan(strategiesR, .cleanup = FALSE, .init = FALSE) [08:47:38.694] | : . | : . | : $ current:function (..., gc = FALSE, earlySignal = FALSE, envir = parent.frame()) [08:47:38.694] | : . | : . | : ..- attr(*, "class")= chr [1:4] "sequential" "uniprocess" "future" "function" [08:47:38.694] | : . | : . | : ..- attr(*, "factory")=function (..., maxSizeOfObjects = +Inf) [08:47:38.694] | : . | : . | : .. ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.694] | : . | : . | : ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.694] | : . | : . | : ..- attr(*, "call")= language plan(sequential) [08:47:38.694] | : . | : . | : ..- attr(*, "backend")=Classes 'SequentialFutureBackend', 'FutureBackend', 'environment' [08:47:38.694] | : . | : . | : .. ..- attr(*, "factory")=function (..., maxSizeOfObjects = +Inf) [08:47:38.694] | : . | : . | : .. .. ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.701] | : . | : . | all.equal() for future ... done [08:47:38.701] | : . | : . all.equal() for FutureStrategyList ... done [08:47:38.701] | : . | : . plan(): Skip setting new future strategy stack because it is the same as the current one: [08:47:38.701] | : . | : . List of future strategies: [08:47:38.701] | : . | : . 1. sequential: [08:47:38.701] | : . | : . - args: function (..., gc = FALSE, earlySignal = FALSE, envir = parent.frame(), workers = "") [08:47:38.701] | : . | : . - tweaked: FALSE [08:47:38.701] | : . | : . - call: plan(sequential) [08:47:38.702] | : . | : plan(): plan_set(<1 strategies>, skip = FALSE, cleanup = FALSE, init = FALSE) ... done [08:47:38.703] | : . | plan(, .skip = FALSE, .cleanup = FALSE, .init = FALSE) ... done [08:47:38.709] | : . | plan(, .skip = FALSE, .cleanup = FALSE, .init = FALSE) ... [08:47:38.709] | : . | : plan(, .skip = FALSE, .cleanup = FALSE, .init = FALSE) ... [08:47:38.710] | : . | : . plan(): plan_set(<1 strategies>, skip = FALSE, cleanup = FALSE, init = FALSE) ... [08:47:38.710] | : . | : . | all.equal() for FutureStrategyList ... [08:47:38.710] | : . | : . | : New stack: [08:47:38.711] | : . | : . | : List of 1 [08:47:38.711] | : . | : . | : $ :function (..., gc = FALSE, earlySignal = FALSE, envir = parent.frame()) [08:47:38.711] | : . | : . | : ..- attr(*, "class")= chr [1:4] "sequential" "uniprocess" "future" "function" [08:47:38.711] | : . | : . | : ..- attr(*, "factory")=function (..., maxSizeOfObjects = +Inf) [08:47:38.711] | : . | : . | : .. ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.711] | : . | : . | : ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.711] | : . | : . | : ..- attr(*, "call")= language plan(sequential) [08:47:38.711] | : . | : . | : ..- attr(*, "backend")=Classes 'SequentialFutureBackend', 'FutureBackend', 'environment' [08:47:38.711] | : . | : . | : .. ..- attr(*, "factory")=function (..., maxSizeOfObjects = +Inf) [08:47:38.711] | : . | : . | : .. .. ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.711] | : . | : . | : - attr(*, "class")= chr [1:2] "FutureStrategyList" "list" [08:47:38.719] | : . | : . | : Old stack: [08:47:38.719] | : . | : . | : List of 1 [08:47:38.719] | : . | : . | : $ :function (..., gc = FALSE, earlySignal = FALSE, envir = parent.frame()) [08:47:38.719] | : . | : . | : ..- attr(*, "class")= chr [1:4] "sequential" "uniprocess" "future" "function" [08:47:38.719] | : . | : . | : ..- attr(*, "factory")=function (..., maxSizeOfObjects = +Inf) [08:47:38.719] | : . | : . | : .. ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.719] | : . | : . | : ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.719] | : . | : . | : ..- attr(*, "call")= language plan(sequential) [08:47:38.719] | : . | : . | : ..- attr(*, "backend")=Classes 'SequentialFutureBackend', 'FutureBackend', 'environment' [08:47:38.719] | : . | : . | : .. ..- attr(*, "factory")=function (..., maxSizeOfObjects = +Inf) [08:47:38.719] | : . | : . | : .. .. ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.719] | : . | : . | : - attr(*, "class")= chr [1:2] "FutureStrategyList" "list" [08:47:38.725] | : . | : . | : Identical [08:47:38.725] | : . | : . | all.equal() for FutureStrategyList ... done [08:47:38.725] | : . | : . | plan(): Skip setting new future strategy stack because it is the same as the current one: [08:47:38.726] | : . | : . | List of future strategies: [08:47:38.726] | : . | : . | 1. sequential: [08:47:38.726] | : . | : . | - args: function (..., gc = FALSE, earlySignal = FALSE, envir = parent.frame(), workers = "") [08:47:38.726] | : . | : . | - tweaked: FALSE [08:47:38.726] | : . | : . | - call: plan(sequential) [08:47:38.727] | : . | : . plan(): plan_set(<1 strategies>, skip = FALSE, cleanup = FALSE, init = FALSE) ... done [08:47:38.727] | : . | : plan(, .skip = FALSE, .cleanup = FALSE, .init = FALSE) ... done [08:47:38.727] | : . | plan(, .skip = FALSE, .cleanup = FALSE, .init = FALSE) ... done [08:47:38.728] | : . | SequentialFuture started (and completed) [08:47:38.729] | : . launchFuture() for 'SequentialFutureBackend', 'FutureBackend', 'environment' ... DONE [08:47:38.729] | : Launching futures ... done [08:47:38.730] | : Future launched: 'SequentialFuture', 'UniprocessFuture', 'Future' [08:47:38.730] | Using SequentialFutureBackend ... done [08:47:38.730] run() for Future ('SequentialFuture') ... done > f1 <- futureOf("a", envir = x) > print(f1) SequentialFuture: Label: NULL Expression: { 1 } Lazy evaluation: FALSE Asynchronous evaluation: TRUE Local evaluation: TRUE Environment: R_GlobalEnv Capture standard output: TRUE Capture condition classes: 'condition' (excluding '') Immediate condition classes: 'immediateCondition' Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) Resolved: TRUE Value: 39 bytes of class 'numeric' Early signaling: FALSE Owner process: c0cf8c9c4ebbbd67191586c5138fb0e0 Class: 'SequentialFuture', 'UniprocessFuture', 'Future' > f2 <- futureOf(a, envir = x) > f3 <- futureOf(x[["a"]]) > f4 <- futureOf(x$a) > stopifnot(identical(f2, f1), identical(f3, f1), identical(f4, + f1)) > fs <- futureOf(envir = x) > print(fs) $a SequentialFuture: Label: NULL Expression: { 1 } Lazy evaluation: FALSE Asynchronous evaluation: TRUE Local evaluation: TRUE Environment: R_GlobalEnv Capture standard output: TRUE Capture condition classes: 'condition' (excluding '') Immediate condition classes: 'immediateCondition' Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) Resolved: TRUE Value: 39 bytes of class 'numeric' Early signaling: FALSE Owner process: c0cf8c9c4ebbbd67191586c5138fb0e0 Class: 'SequentialFuture', 'UniprocessFuture', 'Future' > stopifnot(identical(names(fs), c("a"))) > stopifnot(identical(fs$a, f1)) > fsD <- futureOf(envir = x, drop = TRUE) > print(fsD) $a SequentialFuture: Label: NULL Expression: { 1 } Lazy evaluation: FALSE Asynchronous evaluation: TRUE Local evaluation: TRUE Environment: R_GlobalEnv Capture standard output: TRUE Capture condition classes: 'condition' (excluding '') Immediate condition classes: 'immediateCondition' Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) Resolved: TRUE Value: 39 bytes of class 'numeric' Early signaling: FALSE Owner process: c0cf8c9c4ebbbd67191586c5138fb0e0 Class: 'SequentialFuture', 'UniprocessFuture', 'Future' > stopifnot(all(sapply(fsD, FUN = inherits, "Future"))) > stopifnot(identical(fsD, fs)) > message("*** futureOf() with environment - future assignments ... DONE") *** futureOf() with environment - future assignments ... DONE > message("*** futureOf() with environment - futures ...") *** futureOf() with environment - futures ... > x <- new.env() > x$a <- future({ + 1 + }) [08:47:38.738] getGlobalsAndPackages() ... [08:47:38.739] | Searching for globals ... [08:47:38.740] | : globals found: [1] '{' [08:47:38.740] | Searching for globals ... DONE [08:47:38.741] | Resolving globals: FALSE [08:47:38.741] | Search for packages associated with the globals ... [08:47:38.741] | : Packages associated with globals: [1] 'base' [08:47:38.742] | : Packages: [1] 'base' [08:47:38.742] | Search for packages associated with the globals ... DONE [08:47:38.742] | Packages after dropping 'base': [0] [08:47:38.742] | globals: [0] [08:47:38.742] | packages: [0] [08:47:38.743] getGlobalsAndPackages() ... done [08:47:38.743] run() for Future ('Future') ... [08:47:38.744] | state: 'created' [08:47:38.744] | plan(, .skip = FALSE, .cleanup = NA, .init = TRUE) ... [08:47:38.744] | plan(, .skip = FALSE, .cleanup = NA, .init = TRUE) ... done [08:47:38.744] | Using SequentialFutureBackend ... [08:47:38.745] | : Launching futures ... [08:47:38.745] | : . launchFuture() for 'SequentialFutureBackend', 'FutureBackend', 'environment' ... [08:47:38.745] | : . | getFutureData() ... [08:47:38.745] | : . | : getFutureCore() ... [08:47:38.745] | : . | : . Packages needed by the future expression (n = 0): [08:47:38.746] | : . | : getFutureCore() ... done [08:47:38.746] | : . | : getFutureCapture() ... [08:47:38.746] | : . | : getFutureCapture() ... done [08:47:38.746] | : . | : getFutureContext() ... [08:47:38.747] | : . | : . plan(, .skip = FALSE, .cleanup = NA, .init = TRUE) ... [08:47:38.747] | : . | : . | Getting stack without first strategy: [n=0] [08:47:38.747] | : . | : . plan(, .skip = FALSE, .cleanup = NA, .init = TRUE) ... done [08:47:38.747] | : . | : . Packages needed by future strategies (n = 0): [08:47:38.748] | : . | : getFutureContext() ... done [08:47:38.748] | : . | getFutureData() ... done [08:47:38.748] | : . | attachPackages() ... [08:47:38.748] | : . | : packages: [n=1] 'future' [08:47:38.749] | : . | attachPackages() ... DONE [08:47:38.749] | : . | attachPackages() ... [08:47:38.749] | : . | : packages: [n=0] [08:47:38.749] | : . | attachPackages() ... DONE [08:47:38.750] | : . | plan(, .skip = FALSE, .cleanup = NA, .init = TRUE) ... [08:47:38.750] | : . | : Getting full stack: [n=1] 'sequential', 'uniprocess', 'future', 'function' [08:47:38.752] | : . | plan(, .skip = FALSE, .cleanup = NA, .init = TRUE) ... done [08:47:38.753] | : . | plan(, .skip = FALSE, .cleanup = FALSE, .init = FALSE) ... [08:47:38.753] | : . | : plan(): plan_set(<1 strategies>, skip = FALSE, cleanup = FALSE, init = FALSE) ... [08:47:38.754] | : . | : . all.equal() for FutureStrategyList ... [08:47:38.754] | : . | : . | New stack: [08:47:38.754] | : . | : . | List of 1 [08:47:38.754] | : . | : . | $ :function (..., gc = FALSE, earlySignal = FALSE, envir = parent.frame()) [08:47:38.754] | : . | : . | ..- attr(*, "class")= chr [1:4] "sequential" "uniprocess" "future" "function" [08:47:38.754] | : . | : . | ..- attr(*, "factory")=function (..., maxSizeOfObjects = +Inf) [08:47:38.754] | : . | : . | .. ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.754] | : . | : . | ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.754] | : . | : . | ..- attr(*, "call")= language plan(strategiesR, .cleanup = FALSE, .init = FALSE) [08:47:38.754] | : . | : . | - attr(*, "class")= chr [1:2] "FutureStrategyList" "list" [08:47:38.758] | : . | : . | Old stack: [08:47:38.758] | : . | : . | List of 1 [08:47:38.758] | : . | : . | $ :function (..., gc = FALSE, earlySignal = FALSE, envir = parent.frame()) [08:47:38.758] | : . | : . | ..- attr(*, "class")= chr [1:4] "sequential" "uniprocess" "future" "function" [08:47:38.758] | : . | : . | ..- attr(*, "factory")=function (..., maxSizeOfObjects = +Inf) [08:47:38.758] | : . | : . | .. ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.758] | : . | : . | ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.758] | : . | : . | ..- attr(*, "call")= language plan(sequential) [08:47:38.758] | : . | : . | ..- attr(*, "backend")=Classes 'SequentialFutureBackend', 'FutureBackend', 'environment' [08:47:38.758] | : . | : . | .. ..- attr(*, "factory")=function (..., maxSizeOfObjects = +Inf) [08:47:38.758] | : . | : . | .. .. ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.758] | : . | : . | - attr(*, "class")= chr [1:2] "FutureStrategyList" "list" [08:47:38.764] | : . | : . | Not identical [08:47:38.764] | : . | : . | all.equal() for future ... [08:47:38.764] | : . | : . | : List of 2 [08:47:38.764] | : . | : . | : $ target :function (..., gc = FALSE, earlySignal = FALSE, envir = parent.frame()) [08:47:38.764] | : . | : . | : ..- attr(*, "class")= chr [1:4] "sequential" "uniprocess" "future" "function" [08:47:38.764] | : . | : . | : ..- attr(*, "factory")=function (..., maxSizeOfObjects = +Inf) [08:47:38.764] | : . | : . | : .. ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.764] | : . | : . | : ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.764] | : . | : . | : ..- attr(*, "call")= language plan(strategiesR, .cleanup = FALSE, .init = FALSE) [08:47:38.764] | : . | : . | : $ current:function (..., gc = FALSE, earlySignal = FALSE, envir = parent.frame()) [08:47:38.764] | : . | : . | : ..- attr(*, "class")= chr [1:4] "sequential" "uniprocess" "future" "function" [08:47:38.764] | : . | : . | : ..- attr(*, "factory")=function (..., maxSizeOfObjects = +Inf) [08:47:38.764] | : . | : . | : .. ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.764] | : . | : . | : ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.764] | : . | : . | : ..- attr(*, "call")= language plan(sequential) [08:47:38.764] | : . | : . | : ..- attr(*, "backend")=Classes 'SequentialFutureBackend', 'FutureBackend', 'environment' [08:47:38.764] | : . | : . | : .. ..- attr(*, "factory")=function (..., maxSizeOfObjects = +Inf) [08:47:38.764] | : . | : . | : .. .. ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.774] | : . | : . | all.equal() for future ... done [08:47:38.774] | : . | : . all.equal() for FutureStrategyList ... done [08:47:38.775] | : . | : . plan(): Skip setting new future strategy stack because it is the same as the current one: [08:47:38.775] | : . | : . List of future strategies: [08:47:38.775] | : . | : . 1. sequential: [08:47:38.775] | : . | : . - args: function (..., gc = FALSE, earlySignal = FALSE, envir = parent.frame(), workers = "") [08:47:38.775] | : . | : . - tweaked: FALSE [08:47:38.775] | : . | : . - call: plan(sequential) [08:47:38.776] | : . | : plan(): plan_set(<1 strategies>, skip = FALSE, cleanup = FALSE, init = FALSE) ... done [08:47:38.777] | : . | plan(, .skip = FALSE, .cleanup = FALSE, .init = FALSE) ... done [08:47:38.781] | : . | plan(, .skip = FALSE, .cleanup = FALSE, .init = FALSE) ... [08:47:38.816] | : . | : plan(, .skip = FALSE, .cleanup = FALSE, .init = FALSE) ... [08:47:38.816] | : . | : . plan(): plan_set(<1 strategies>, skip = FALSE, cleanup = FALSE, init = FALSE) ... [08:47:38.817] | : . | : . | all.equal() for FutureStrategyList ... [08:47:38.817] | : . | : . | : New stack: [08:47:38.817] | : . | : . | : List of 1 [08:47:38.817] | : . | : . | : $ :function (..., gc = FALSE, earlySignal = FALSE, envir = parent.frame()) [08:47:38.817] | : . | : . | : ..- attr(*, "class")= chr [1:4] "sequential" "uniprocess" "future" "function" [08:47:38.817] | : . | : . | : ..- attr(*, "factory")=function (..., maxSizeOfObjects = +Inf) [08:47:38.817] | : . | : . | : .. ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.817] | : . | : . | : ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.817] | : . | : . | : ..- attr(*, "call")= language plan(sequential) [08:47:38.817] | : . | : . | : ..- attr(*, "backend")=Classes 'SequentialFutureBackend', 'FutureBackend', 'environment' [08:47:38.817] | : . | : . | : .. ..- attr(*, "factory")=function (..., maxSizeOfObjects = +Inf) [08:47:38.817] | : . | : . | : .. .. ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.817] | : . | : . | : - attr(*, "class")= chr [1:2] "FutureStrategyList" "list" [08:47:38.822] | : . | : . | : Old stack: [08:47:38.822] | : . | : . | : List of 1 [08:47:38.822] | : . | : . | : $ :function (..., gc = FALSE, earlySignal = FALSE, envir = parent.frame()) [08:47:38.822] | : . | : . | : ..- attr(*, "class")= chr [1:4] "sequential" "uniprocess" "future" "function" [08:47:38.822] | : . | : . | : ..- attr(*, "factory")=function (..., maxSizeOfObjects = +Inf) [08:47:38.822] | : . | : . | : .. ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.822] | : . | : . | : ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.822] | : . | : . | : ..- attr(*, "call")= language plan(sequential) [08:47:38.822] | : . | : . | : ..- attr(*, "backend")=Classes 'SequentialFutureBackend', 'FutureBackend', 'environment' [08:47:38.822] | : . | : . | : .. ..- attr(*, "factory")=function (..., maxSizeOfObjects = +Inf) [08:47:38.822] | : . | : . | : .. .. ..- attr(*, "tweakable")= chr [1:5] "maxSizeOfObjects" "earlySignal" "gc" "interrupts" ... [08:47:38.822] | : . | : . | : - attr(*, "class")= chr [1:2] "FutureStrategyList" "list" [08:47:38.829] | : . | : . | : Identical [08:47:38.829] | : . | : . | all.equal() for FutureStrategyList ... done [08:47:38.830] | : . | : . | plan(): Skip setting new future strategy stack because it is the same as the current one: [08:47:38.830] | : . | : . | List of future strategies: [08:47:38.830] | : . | : . | 1. sequential: [08:47:38.830] | : . | : . | - args: function (..., gc = FALSE, earlySignal = FALSE, envir = parent.frame(), workers = "") [08:47:38.830] | : . | : . | - tweaked: FALSE [08:47:38.830] | : . | : . | - call: plan(sequential) [08:47:38.831] | : . | : . plan(): plan_set(<1 strategies>, skip = FALSE, cleanup = FALSE, init = FALSE) ... done [08:47:38.831] | : . | : plan(, .skip = FALSE, .cleanup = FALSE, .init = FALSE) ... done [08:47:38.831] | : . | plan(, .skip = FALSE, .cleanup = FALSE, .init = FALSE) ... done [08:47:38.832] | : . | SequentialFuture started (and completed) [08:47:38.832] | : . launchFuture() for 'SequentialFutureBackend', 'FutureBackend', 'environment' ... DONE [08:47:38.833] | : Launching futures ... done [08:47:38.833] | : Future launched: 'SequentialFuture', 'UniprocessFuture', 'Future' [08:47:38.834] | Using SequentialFutureBackend ... done [08:47:38.834] run() for Future ('SequentialFuture') ... done > f1 <- futureOf("a", envir = x) > print(f1) SequentialFuture: Label: NULL Expression: { 1 } Lazy evaluation: FALSE Asynchronous evaluation: TRUE Local evaluation: TRUE Environment: R_GlobalEnv Capture standard output: TRUE Capture condition classes: 'condition' (excluding '') Immediate condition classes: 'immediateCondition' Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) Resolved: TRUE Value: 39 bytes of class 'numeric' Early signaling: FALSE Owner process: c0cf8c9c4ebbbd67191586c5138fb0e0 Class: 'SequentialFuture', 'UniprocessFuture', 'Future' > stopifnot(identical(f1, x$a)) > f2 <- futureOf(a, envir = x) > stopifnot(identical(f2, x$a)) > f3 <- futureOf(x[["a"]]) > stopifnot(identical(f3, x$a)) > f4 <- futureOf(x$a) > stopifnot(identical(f4, x$a)) > fs <- futureOf(envir = x) > print(fs) $a SequentialFuture: Label: NULL Expression: { 1 } Lazy evaluation: FALSE Asynchronous evaluation: TRUE Local evaluation: TRUE Environment: R_GlobalEnv Capture standard output: TRUE Capture condition classes: 'condition' (excluding '') Immediate condition classes: 'immediateCondition' Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) Resolved: TRUE Value: 39 bytes of class 'numeric' Early signaling: FALSE Owner process: c0cf8c9c4ebbbd67191586c5138fb0e0 Class: 'SequentialFuture', 'UniprocessFuture', 'Future' > stopifnot(identical(names(fs), c("a"))) > stopifnot(identical(fs$a, f1)) > fsD <- futureOf(envir = x, drop = TRUE) > print(fsD) $a SequentialFuture: Label: NULL Expression: { 1 } Lazy evaluation: FALSE Asynchronous evaluation: TRUE Local evaluation: TRUE Environment: R_GlobalEnv Capture standard output: TRUE Capture condition classes: 'condition' (excluding '') Immediate condition classes: 'immediateCondition' Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) Resolved: TRUE Value: 39 bytes of class 'numeric' Early signaling: FALSE Owner process: c0cf8c9c4ebbbd67191586c5138fb0e0 Class: 'SequentialFuture', 'UniprocessFuture', 'Future' > stopifnot(all(sapply(fsD, FUN = inherits, "Future"))) > stopifnot(identical(fsD, fs)) > message("*** futureOf() with environment - futures ... DONE") *** futureOf() with environment - futures ... DONE > message("*** futureOf() with environment - exceptions ...") *** futureOf() with environment - exceptions ... > res <- tryCatch(futureOf(x[[0]], mustExist = FALSE), + error = identity) > stopifnot(inherits(res, "error")) > res <- tryCatch(futureOf(x[[0]], mustExist = TRUE), + error = identity) > stopifnot(inherits(res, "error")) > res <- tryCatch(futureOf(x[[10]], mustExist = TRUE), + error = identity) > stopifnot(inherits(res, "error")) > res <- tryCatch(futureOf(x[[1 + (0+2i)]], mustExist = TRUE), + error = identity) > stopifnot(inherits(res, "error")) > message("*** futureOf() with environment - exceptions ... DONE") *** futureOf() with environment - exceptions ... DONE > message("*** futureOf() with environment ... DONE") *** futureOf() with environment ... DONE Sourcing 6 epilogue scripts ... 01/06 epilogue script 'D:/RCompile/CRANincoming/R-devel/lib/future/testme/_epilogue/001.undo-future.R' 02/06 epilogue script 'D:/RCompile/CRANincoming/R-devel/lib/future/testme/_epilogue/002.undo-state.R' Failed to undo environment variables: - Expected environment variables: [n=213] '!ExitCode', 'ALLUSERSPROFILE', 'APPDATA', 'BIBINPUTS', 'BINDIR', 'BSTINPUTS', 'COMMONPROGRAMFILES', 'COMPUTERNAME', 'COMSPEC', 'CURL_CA_BUNDLE', 'CYGWIN', 'CommonProgramFiles(x86)', 'CommonProgramW6432', 'DriverData', 'HOME', 'HOMEDRIVE', 'HOMEPATH', 'JAGS_ROOT', 'JAVA_HOME', 'LANGUAGE', 'LC_COLLATE', 'LC_MONETARY', 'LC_TIME', 'LOCALAPPDATA', 'LOGONSERVER', 'LS_HOME', 'LS_LICENSE_PATH', 'MAKE', 'MAKEFLAGS', 'MAKELEVEL', 'MFLAGS', 'MSMPI_BENCHMARKS', 'MSMPI_BIN', 'MSYS2_ENV_CONV_EXCL', 'NUMBER_OF_PROCESSORS', 'OCL', 'OMP_THREAD_LIMIT', 'OS', 'PATH', 'PATHEXT', 'PROCESSOR_ARCHITECTURE', 'PROCESSOR_IDENTIFIER', 'PROCESSOR_LEVEL', 'PROCESSOR_REVISION', 'PROGRAMFILES', 'PROMPT', 'PSModulePath', 'PUBLIC', 'PWD', 'ProgramData', 'ProgramFiles(x86)', 'ProgramW6432', 'RTOOLS44_HOME', 'RTOOLS45_HOME', 'R_ARCH', 'R_BROWSER', 'R_BZIPCMD', 'R_CMD', 'R_COMPILED_BY', 'R_CRAN_WEB', 'R_CUSTOM_TOOLS_PATH', 'R_CUSTOM_TOOLS_SOFT', 'R_DOC_DIR', 'R_ENVIRON_USER', 'R_GSCMD', 'R_GZIPCMD', 'R_HOME', 'R_INCLUDE_DIR', 'R_INSTALL_TAR', 'R_LIBS', 'R_LIBS_SITE', 'R_LIBS_USER', 'R_MAX_NUM_DLLS', 'R_OSTYPE', 'R_PAPERSIZE', 'R_PAPERSIZE_USER', 'R_PARALLELLY_MAKENODEPSOCK_AUTOKILL', 'R_PARALLELLY_MAKENODEPSOCK_CONNECTTIMEOUT', 'R_PARALLELLY_MAKENODEPSOCK_RSCRIPT_LABEL', 'R_PARALLELLY_MAKENODEPSOCK_SESSIONINFO_PKGS', 'R_PARALLELLY_MAKENODEPSOCK_TIMEOUT', 'R_PARALLELLY_RANDOM_PORTS', 'R_PARALLEL_PORT', 'R_RD4PDF', 'R_RTOOLS45_PATH', 'R_SCRIPT_LEGACY', 'R_SHARE_DIR', 'R_TESTME_NAME', 'R_TESTME_PACKAGE', 'R_TESTME_PATH', 'R_TESTS', 'R_UNZIPCMD', 'R_USER', 'R_VERSION', 'R_ZIPCMD', 'SED', 'SHLVL', 'SYSTEMDRIVE', 'SYSTEMROOT', 'TAR', 'TAR_OPTIONS', 'TEMP', 'TERM', 'TEXINPUTS', 'TMP', 'TMPDIR', 'USERDOMAIN', 'USERDOMAIN_ROAMINGPROFILE', 'USERNAME', 'USERPROFILE', 'WINDIR', '_', '_R_CHECK_AUTOCONF_', '_R_CHECK_BOGUS_RETURN_', '_R_CHECK_BROWSER_NONINTERACTIVE_', '_R_CHECK_BUILD_VIGNETTES_SEPARATELY_', '_R_CHECK_CODETOOLS_PROFILE_', '_R_CHECK_CODE_ASSIGN_TO_GLOBALENV_', '_R_CHECK_CODE_ATTACH_', '_R_CHECK_CODE_CLASS_IS_STRING_', '_R_CHECK_CODE_DATA_INTO_GLOBALENV_', '_R_CHECK_CODE_USAGE_VIA_NAMESPACES_', '_R_CHECK_CODE_USAGE_WITHOUT_LOADING_', '_R_CHECK_CODE_USAGE_WITH_ONLY_BASE_ATTACHED_', '_R_CHECK_CODOC_VARIABLES_IN_USAGES_', '_R_CHECK_COMPACT_DATA2_', '_R_CHECK_COMPILATION_FLAGS_', '_R_CHECK_CONNECTIONS_LEFT_OPEN_', '_R_CHECK_CRAN_INCOMING_', '_R_CHECK_CRAN_INCOMING_ASPELL_RECHECK_MAYBE_', '_R_CHECK_CRAN_INCOMING_ASPELL_RECHECK_START_', '_R_CHECK_CRAN_INCOMING_CHECK_FILE_URIS_', '_R_CHECK_CRAN_INCOMING_CHECK_URLS_IN_PARALLEL_', '_R_CHECK_CRAN_INCOMING_NOTE_GNU_MAKE_', '_R_CHECK_CRAN_INCOMING_REMOTE_', '_R_CHECK_CRAN_INCOMING_USE_ASPELL_', '_R_CHECK_DATALIST_', '_R_CHECK_DEPRECATED_DEFUNCT_', '_R_CHECK_DOC_SIZES2_', '_R_CHECK_DOT_FIRSTLIB_', '_R_CHECK_DOT_INTERNAL_', '_R_CHECK_EXAMPLE_TIMING_THRESHOLD_', '_R_CHECK_EXECUTABLES_', '_R_CHECK_EXECUTABLES_EXCLUSIONS_', '_R_CHECK_FF_CALLS_', '_R_CHECK_FF_DUP_', '_R_CHECK_FORCE_SUGGESTS_', '_R_CHECK_FUTURE_FILE_TIMESTAMPS_', '_R_CHECK_FUTURE_FILE_TIMESTAMPS_LEEWAY_', '_R_CHECK_HAVE_MYSQL_', '_R_CHECK_HAVE_ODBC_', '_R_CHECK_HAVE_PERL_', '_R_CHECK_HAVE_POSTGRES_', '_R_CHECK_INSTALL_DEPENDS_', '_R_CHECK_INTERNALS2_', '_R_CHECK_LENGTH_1_CONDITION_', '_R_CHECK_LICENSE_', '_R_CHECK_LIMIT_CORES_', '_R_CHECK_LOG_USE_INFO_', '_R_CHECK_MATRIX_DATA_', '_R_CHECK_MBCS_CONVERSION_FAILURE_', '_R_CHECK_NATIVE_ROUTINE_REGISTRATION_', '_R_CHECK_NEWS_IN_PLAIN_TEXT_', '_R_CHECK_NO_RECOMMENDED_', '_R_CHECK_NO_STOP_ON_TEST_ERROR_', '_R_CHECK_ORPHANED_', '_R_CHECK_OVERWRITE_REGISTERED_S3_METHODS_', '_R_CHECK_PACKAGES_USED_IGNORE_UNUSED_IMPORTS_', '_R_CHECK_PACKAGES_USED_IN_TESTS_USE_SUBDIRS_', '_R_CHECK_PACKAGE_DATASETS_SUPPRESS_NOTES_', '_R_CHECK_PACKAGE_NAME_', '_R_CHECK_PKG_SIZES_', '_R_CHECK_PKG_SIZES_THRESHOLD_', '_R_CHECK_PRAGMAS_', '_R_CHECK_RD_EXAMPLES_T_AND_F_', '_R_CHECK_RD_LINE_WIDTHS_', '_R_CHECK_RD_MATH_RENDERING_', '_R_CHECK_RD_NOTE_LOST_BRACES_', '_R_CHECK_RD_VALIDATE_RD2HTML_', '_R_CHECK_REPLACING_IMPORTS_', '_R_CHECK_R_DEPENDS_', '_R_CHECK_S3_METHODS_SHOW_POSSIBLE_ISSUES_', '_R_CHECK_SCREEN_DEVICE_', '_R_CHECK_SERIALIZATION_', '_R_CHECK_SHLIB_OPENMP_FLAGS_', '_R_CHECK_SRC_MINUS_W_IMPLICIT_', '_R_CHECK_SUBDIRS_NOCASE_', '_R_CHECK_SUGGESTS_ONLY_', '_R_CHECK_SYSTEM_CLOCK_', '_R_CHECK_TESTS_NLINES_', '_R_CHECK_TEST_TIMING_', '_R_CHECK_TIMINGS_', '_R_CHECK_TOPLEVEL_FILES_', '_R_CHECK_UNDOC_USE_ALL_NAMES_', '_R_CHECK_UNSAFE_CALLS_', '_R_CHECK_URLS_SHOW_301_STATUS_', '_R_CHECK_VC_DIRS_', '_R_CHECK_VIGNETTES_NLINES_', '_R_CHECK_VIGNETTES_SKIP_RUN_MAYBE_', '_R_CHECK_VIGNETTE_TIMING_', '_R_CHECK_VIGNETTE_TITLES_', '_R_CHECK_WINDOWS_DEVICE_', '_R_CHECK_XREFS_NOTE_MISSING_PACKAGE_ANCHORS_', '_R_CHECK_XREFS_USE_ALIASES_FROM_CRAN_', '_R_CLASS_MATRIX_ARRAY_', '_R_DEPRECATED_IS_R_', '_R_S3_METHOD_LOOKUP_BASEENV_AFTER_GLOBALENV_', '_R_SHLIB_BUILD_OBJECTS_SYMBOL_TABLES_', '_R_USE_STRICT_R_HEADERS_', '__R_CHECK_DOC_FILES_NOTE_IF_ALL_SPECIAL__', 'maj.version', 'nextArg--timingsnextArg--install', 'tempdirname' - Environment variables still there: [n=0] - Environment variables missing: [n=1] 'MAKEFLAGS' Differences environment variable by environment variable: 03/06 epilogue script 'D:/RCompile/CRANincoming/R-devel/lib/future/testme/_epilogue/090.gc.R' 04/06 epilogue script 'D:/RCompile/CRANincoming/R-devel/lib/future/testme/_epilogue/099.session_info.R' 05/06 epilogue script 'D:/RCompile/CRANincoming/R-devel/lib/future/testme/_epilogue/995.detritus-connections.R' 06/06 epilogue script 'D:/RCompile/CRANincoming/R-devel/lib/future/testme/_epilogue/999.detritus-files.R' Skipping, because path appears not to be an 'R CMD check' folder: 'D:/temp/2025_04_10_08_45_16_15127' Sourcing 6 epilogue scripts ... done Test time: user.self=0.3s, sys.self=0.04s, elapsed=0.3s, user.child=NAs, sys.child=NAs Test 'futureOf_with_environment' ... success > > proc.time() user system elapsed 0.62 0.14 0.75