R Under development (unstable) (2023-06-30 r84625 ucrt) -- "Unsuffered Consequences" Copyright (C) 2023 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. > source("incl/start,load-only.R") [18:03:27.543] plan(): Setting new future strategy stack: [18:03:27.545] List of future strategies: [18:03:27.545] 1. sequential: [18:03:27.545] - args: function (..., envir = parent.frame()) [18:03:27.545] - tweaked: FALSE [18:03:27.545] - call: future::plan("sequential") [18:03:27.561] plan(): nbrOfWorkers() = 1 > > message("*** Tweaking future strategies ...") *** Tweaking future strategies ... > > message("*** y <- tweak(future::sequential) ...") *** y <- tweak(future::sequential) ... > sequential2 <- future::tweak(future::sequential) > print(args(sequential2)) function (..., envir = parent.frame()) NULL > stopifnot(identical(sequential2, future::sequential)) > stopifnot(!inherits(sequential2, "tweaked")) > > > message("*** y <- tweak(future::sequential, abc = FALSE) ...") *** y <- tweak(future::sequential, abc = FALSE) ... > sequential2 <- future::tweak(future::sequential, abc = FALSE) Warning: Detected 1 unknown future arguments: 'abc' > print(args(sequential2)) function (..., abc = FALSE, envir = parent.frame()) NULL > stopifnot(!identical(sequential2, future::sequential)) > stopifnot(inherits(sequential2, "tweaked")) > stopifnot(identical(formals(sequential2)$abc, FALSE)) > > > message("*** y <- tweak('sequential', abc = FALSE) ...") *** y <- tweak('sequential', abc = FALSE) ... > sequential2 <- future::tweak("sequential", abc = FALSE) Warning: Detected 1 unknown future arguments: 'abc' > print(args(sequential2)) function (..., abc = FALSE, envir = parent.frame()) NULL > stopifnot(!identical(sequential2, future::sequential)) > stopifnot(inherits(sequential2, "tweaked")) > stopifnot(identical(formals(sequential2)$abc, FALSE)) > > > library("future") [18:03:27.573] Option 'future.startup.script': TRUE [18:03:27.574] Future startup scripts considered: '.future.R', '~/.future.R' [18:03:27.574] Future startup scripts found: > > message("*** y <- tweak(sequential, abc = FALSE) ...") *** y <- tweak(sequential, abc = FALSE) ... > sequential2 <- future::tweak(sequential, abc = FALSE) Warning: Detected 1 unknown future arguments: 'abc' > print(args(sequential2)) function (..., abc = FALSE, envir = parent.frame()) NULL > stopifnot(!identical(sequential2, future::sequential)) > stopifnot(inherits(sequential2, "tweaked")) > stopifnot(identical(formals(sequential2)$abc, FALSE)) > > message("*** y <- tweak('sequential', abc = FALSE) ...") *** y <- tweak('sequential', abc = FALSE) ... > sequential2 <- future::tweak('sequential', abc = FALSE) Warning: Detected 1 unknown future arguments: 'abc' > print(args(sequential2)) function (..., abc = FALSE, envir = parent.frame()) NULL > stopifnot(!identical(sequential2, future::sequential)) > stopifnot(inherits(sequential2, "tweaked")) > stopifnot(identical(formals(sequential2)$abc, FALSE)) > > > message("*** y <- tweak('sequential', abc = FALSE, abc = 1, def = TRUE) ...") *** y <- tweak('sequential', abc = FALSE, abc = 1, def = TRUE) ... > res <- tryCatch({ + sequential2 <- future::tweak('sequential', abc = FALSE, abc = 1, def = TRUE) + }, warning = function(w) { + w + }) > stopifnot(inherits(res, "warning")) > sequential2 <- future::tweak('sequential', abc = FALSE, abc = 1, def = TRUE) Warning: Detected 2 unknown future arguments: 'abc', 'def' > print(args(sequential2)) function (..., abc = FALSE, def = TRUE, envir = parent.frame()) NULL > stopifnot(!identical(sequential2, future::sequential)) > stopifnot(inherits(sequential2, "tweaked")) > stopifnot(identical(formals(sequential2)$abc, FALSE)) > > > > message("*** y <- tweak(cluster, rscript_startup = quote(...)) ...") *** y <- tweak(cluster, rscript_startup = quote(...)) ... > cl <- 42L > cluster2 <- tweak(cluster, workers = cl, rscript_startup = quote(options(abc = 42L))) > print(args(cluster2)) function (..., workers = 42L, rscript_startup = quote(options(abc = 42L)), envir = parent.frame()) NULL > stopifnot(!identical(cluster2, future::cluster)) > stopifnot(inherits(cluster2, "tweaked")) > formals2 <- formals(cluster2) > stopifnot(identical(formals2$workers, cl)) > stopifnot("rscript_startup" %in% names(formals2)) > rscript_startup <- formals2$rscript_startup > stopifnot(!is.null(rscript_startup), + is.language(rscript_startup), is.call(rscript_startup)) > value <- eval(rscript_startup) > stopifnot(is.language(value), is.call(value)) > > > message("*** plan() - tweak without introducting package dependencies ...") *** plan() - tweak without introducting package dependencies ... > > ## Requires a auxillary package that is available and not already loaded > if (!covr_testing && requireNamespace("grid")) { + local({ + cl <- makeClusterPSOCK(1L) + on.exit(parallel:::stopCluster(cl)) + ns0 <- unlist(parallel::clusterEvalQ(cl, loadedNamespaces())) + + ## When using futures, the 'future' package is loaded on the worker + ns0 <- c(ns0, c("tools", "parallelly", + "codetools", "digest", "globals", "listenv", "future")) + if (!is.element("grid", ns0)) { + ## Assert that a global copy from a package does not trigger + ## that package from being loaded on the worker + dummy <- grid::depth + oplan <- future::plan(future::cluster, workers = cl) + on.exit(future::plan(oplan), add = TRUE) + ns <- unlist(parallel::clusterEvalQ(cl, loadedNamespaces())) + diff <- setdiff(ns, ns0) + if ("covr" %in% diff) diff <- setdiff(diff, c("lazyeval", "rex", "covr")) + if (length(diff) > 0) { + print(loadedNamespaces()) + stop("plan() with a tweak() causes new packages to be loaded: ", sQuote(paste(diff, collapse = ", "))) + } + } + }) + } Loading required namespace: grid [18:03:27.596] [local output] makeClusterPSOCK() ... [18:03:27.625] [local output] Workers: [n = 1] 'localhost' [18:03:27.632] [local output] Base port: 20092 [18:03:27.632] [local output] Getting setup options for 1 cluster nodes ... [18:03:27.632] [local output] - Node 1 of 1 ... [18:03:27.633] [local output] localMachine=TRUE => revtunnel=FALSE [18:03:27.634] Testing if worker's PID can be inferred: '"D:/RCompile/recent/R/bin/x64/Rscript" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpYjwq4Y/worker.rank=1.parallelly.parent=27768.6c7878404c58.pid\")), silent = TRUE)" -e "file.exists(\"D:/temp/RtmpYjwq4Y/worker.rank=1.parallelly.parent=27768.6c7878404c58.pid\")"' [18:03:28.083] - Possible to infer worker's PID: TRUE [18:03:28.084] [local output] Rscript port: 20092 [18:03:28.084] [local output] Getting setup options for 1 cluster nodes ... done [18:03:28.084] [local output] - Parallel setup requested for some PSOCK nodes [18:03:28.085] [local output] Setting up PSOCK nodes in parallel [18:03:28.085] List of 36 [18:03:28.085] $ worker : chr "localhost" [18:03:28.085] ..- attr(*, "localhost")= logi TRUE [18:03:28.085] $ master : chr "localhost" [18:03:28.085] $ port : int 20092 [18:03:28.085] $ connectTimeout : num 120 [18:03:28.085] $ timeout : num 120 [18:03:28.085] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [18:03:28.085] $ homogeneous : logi TRUE [18:03:28.085] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=tweak.R:27768:CRANWIN3:CRAN\" -e"| __truncated__ [18:03:28.085] $ rscript_envs : NULL [18:03:28.085] $ rscript_libs : NULL [18:03:28.085] $ rscript_startup : NULL [18:03:28.085] $ rscript_sh : chr "cmd" [18:03:28.085] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [18:03:28.085] $ methods : logi TRUE [18:03:28.085] $ socketOptions : chr "no-delay" [18:03:28.085] $ useXDR : logi FALSE [18:03:28.085] $ outfile : chr "/dev/null" [18:03:28.085] $ renice : int NA [18:03:28.085] $ rshcmd : NULL [18:03:28.085] $ user : chr(0) [18:03:28.085] $ revtunnel : logi FALSE [18:03:28.085] $ rshlogfile : NULL [18:03:28.085] $ rshopts : chr(0) [18:03:28.085] $ rank : int 1 [18:03:28.085] $ manual : logi FALSE [18:03:28.085] $ dryrun : logi FALSE [18:03:28.085] $ quiet : logi FALSE [18:03:28.085] $ setup_strategy : chr "parallel" [18:03:28.085] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [18:03:28.085] $ pidfile : chr "D:/temp/RtmpYjwq4Y/worker.rank=1.parallelly.parent=27768.6c7878404c58.pid" [18:03:28.085] $ rshcmd_label : NULL [18:03:28.085] $ rsh_call : NULL [18:03:28.085] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [18:03:28.085] $ localMachine : logi TRUE [18:03:28.085] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [18:03:28.085] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [18:03:28.085] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [18:03:28.085] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [18:03:28.085] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [18:03:28.085] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [18:03:28.085] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [18:03:28.085] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [18:03:28.085] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [18:03:28.085] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [18:03:28.085] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [18:03:28.085] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [18:03:28.085] "parallel"), action = c("launch", "options"), verbose = FALSE) [18:03:28.085] $ arguments :List of 28 [18:03:28.085] ..$ worker : chr "localhost" [18:03:28.085] ..$ master : NULL [18:03:28.085] ..$ port : int 20092 [18:03:28.085] ..$ connectTimeout : num 120 [18:03:28.085] ..$ timeout : num 120 [18:03:28.085] ..$ rscript : NULL [18:03:28.085] ..$ homogeneous : NULL [18:03:28.085] ..$ rscript_args : NULL [18:03:28.085] ..$ rscript_envs : NULL [18:03:28.085] ..$ rscript_libs : NULL [18:03:28.085] ..$ rscript_startup : NULL [18:03:28.085] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [18:03:28.085] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [18:03:28.085] ..$ methods : logi TRUE [18:03:28.085] ..$ socketOptions : chr "no-delay" [18:03:28.085] ..$ useXDR : logi FALSE [18:03:28.085] ..$ outfile : chr "/dev/null" [18:03:28.085] ..$ renice : int NA [18:03:28.085] ..$ rshcmd : NULL [18:03:28.085] ..$ user : NULL [18:03:28.085] ..$ revtunnel : logi NA [18:03:28.085] ..$ rshlogfile : NULL [18:03:28.085] ..$ rshopts : NULL [18:03:28.085] ..$ rank : int 1 [18:03:28.085] ..$ manual : logi FALSE [18:03:28.085] ..$ dryrun : logi FALSE [18:03:28.085] ..$ quiet : logi FALSE [18:03:28.085] ..$ setup_strategy : chr "parallel" [18:03:28.085] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [18:03:28.109] [local output] System call to launch all workers: [18:03:28.110] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=tweak.R:27768:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpYjwq4Y/worker.rank=1.parallelly.parent=27768.6c7878404c58.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=20092 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [18:03:28.110] [local output] Starting PSOCK main server [18:03:28.114] [local output] Workers launched [18:03:28.115] [local output] Waiting for workers to connect back [18:03:28.115] - [local output] 0 workers out of 1 ready [18:03:28.285] - [local output] 0 workers out of 1 ready [18:03:28.286] - [local output] 1 workers out of 1 ready [18:03:28.286] [local output] Launching of workers completed [18:03:28.286] [local output] Collecting session information from workers [18:03:28.287] [local output] - Worker #1 of 1 [18:03:28.287] [local output] makeClusterPSOCK() ... done [18:03:28.288] plan(): Setting new future strategy stack: [18:03:28.288] List of future strategies: [18:03:28.288] 1. cluster: [18:03:28.288] - args: function (..., workers = "", envir = parent.frame()) [18:03:28.288] - tweaked: TRUE [18:03:28.288] - call: future::plan(future::cluster, workers = cl) [18:03:28.309] plan(): plan_init() of 'tweaked', 'cluster', 'multiprocess', 'future', 'function' ... [18:03:28.309] cluster: [18:03:28.309] - args: function (..., workers = "", envir = parent.frame()) [18:03:28.309] - tweaked: TRUE [18:03:28.309] - call: future::plan(future::cluster, workers = cl) [18:03:28.313] getGlobalsAndPackages() ... [18:03:28.313] Not searching for globals [18:03:28.313] - globals: [0] [18:03:28.313] getGlobalsAndPackages() ... DONE [18:03:28.321] Packages needed by the future expression (n = 0): [18:03:28.321] Packages needed by future strategies (n = 0): [18:03:28.322] { [18:03:28.322] { [18:03:28.322] { [18:03:28.322] ...future.startTime <- base::Sys.time() [18:03:28.322] { [18:03:28.322] { [18:03:28.322] { [18:03:28.322] base::local({ [18:03:28.322] has_future <- base::requireNamespace("future", [18:03:28.322] quietly = TRUE) [18:03:28.322] if (has_future) { [18:03:28.322] ns <- base::getNamespace("future") [18:03:28.322] version <- ns[[".package"]][["version"]] [18:03:28.322] if (is.null(version)) [18:03:28.322] version <- utils::packageVersion("future") [18:03:28.322] } [18:03:28.322] else { [18:03:28.322] version <- NULL [18:03:28.322] } [18:03:28.322] if (!has_future || version < "1.8.0") { [18:03:28.322] info <- base::c(r_version = base::gsub("R version ", [18:03:28.322] "", base::R.version$version.string), [18:03:28.322] platform = base::sprintf("%s (%s-bit)", [18:03:28.322] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [18:03:28.322] os = base::paste(base::Sys.info()[base::c("sysname", [18:03:28.322] "release", "version")], collapse = " "), [18:03:28.322] hostname = base::Sys.info()[["nodename"]]) [18:03:28.322] info <- base::sprintf("%s: %s", base::names(info), [18:03:28.322] info) [18:03:28.322] info <- base::paste(info, collapse = "; ") [18:03:28.322] if (!has_future) { [18:03:28.322] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [18:03:28.322] info) [18:03:28.322] } [18:03:28.322] else { [18:03:28.322] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [18:03:28.322] info, version) [18:03:28.322] } [18:03:28.322] base::stop(msg) [18:03:28.322] } [18:03:28.322] }) [18:03:28.322] } [18:03:28.322] options(future.plan = NULL) [18:03:28.322] Sys.unsetenv("R_FUTURE_PLAN") [18:03:28.322] future::plan("default", .cleanup = FALSE, .init = FALSE) [18:03:28.322] } [18:03:28.322] ...future.workdir <- getwd() [18:03:28.322] } [18:03:28.322] ...future.oldOptions <- base::as.list(base::.Options) [18:03:28.322] ...future.oldEnvVars <- base::Sys.getenv() [18:03:28.322] } [18:03:28.322] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [18:03:28.322] future.globals.maxSize = NULL, future.globals.method = NULL, [18:03:28.322] future.globals.onMissing = NULL, future.globals.onReference = NULL, [18:03:28.322] future.globals.resolve = NULL, future.resolve.recursive = NULL, [18:03:28.322] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [18:03:28.322] future.stdout.windows.reencode = NULL, width = 80L) [18:03:28.322] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [18:03:28.322] base::names(...future.oldOptions)) [18:03:28.322] } [18:03:28.322] if (FALSE) { [18:03:28.322] } [18:03:28.322] else { [18:03:28.322] if (TRUE) { [18:03:28.322] ...future.stdout <- base::rawConnection(base::raw(0L), [18:03:28.322] open = "w") [18:03:28.322] } [18:03:28.322] else { [18:03:28.322] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [18:03:28.322] windows = "NUL", "/dev/null"), open = "w") [18:03:28.322] } [18:03:28.322] base::sink(...future.stdout, type = "output", split = FALSE) [18:03:28.322] base::on.exit(if (!base::is.null(...future.stdout)) { [18:03:28.322] base::sink(type = "output", split = FALSE) [18:03:28.322] base::close(...future.stdout) [18:03:28.322] }, add = TRUE) [18:03:28.322] } [18:03:28.322] ...future.frame <- base::sys.nframe() [18:03:28.322] ...future.conditions <- base::list() [18:03:28.322] ...future.rng <- base::globalenv()$.Random.seed [18:03:28.322] if (FALSE) { [18:03:28.322] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [18:03:28.322] "...future.value", "...future.globalenv.names", ".Random.seed") [18:03:28.322] } [18:03:28.322] ...future.result <- base::tryCatch({ [18:03:28.322] base::withCallingHandlers({ [18:03:28.322] ...future.value <- base::withVisible(base::local({ [18:03:28.322] ...future.makeSendCondition <- local({ [18:03:28.322] sendCondition <- NULL [18:03:28.322] function(frame = 1L) { [18:03:28.322] if (is.function(sendCondition)) [18:03:28.322] return(sendCondition) [18:03:28.322] ns <- getNamespace("parallel") [18:03:28.322] if (exists("sendData", mode = "function", [18:03:28.322] envir = ns)) { [18:03:28.322] parallel_sendData <- get("sendData", mode = "function", [18:03:28.322] envir = ns) [18:03:28.322] envir <- sys.frame(frame) [18:03:28.322] master <- NULL [18:03:28.322] while (!identical(envir, .GlobalEnv) && [18:03:28.322] !identical(envir, emptyenv())) { [18:03:28.322] if (exists("master", mode = "list", envir = envir, [18:03:28.322] inherits = FALSE)) { [18:03:28.322] master <- get("master", mode = "list", [18:03:28.322] envir = envir, inherits = FALSE) [18:03:28.322] if (inherits(master, c("SOCKnode", [18:03:28.322] "SOCK0node"))) { [18:03:28.322] sendCondition <<- function(cond) { [18:03:28.322] data <- list(type = "VALUE", value = cond, [18:03:28.322] success = TRUE) [18:03:28.322] parallel_sendData(master, data) [18:03:28.322] } [18:03:28.322] return(sendCondition) [18:03:28.322] } [18:03:28.322] } [18:03:28.322] frame <- frame + 1L [18:03:28.322] envir <- sys.frame(frame) [18:03:28.322] } [18:03:28.322] } [18:03:28.322] sendCondition <<- function(cond) NULL [18:03:28.322] } [18:03:28.322] }) [18:03:28.322] withCallingHandlers({ [18:03:28.322] NA [18:03:28.322] }, immediateCondition = function(cond) { [18:03:28.322] sendCondition <- ...future.makeSendCondition() [18:03:28.322] sendCondition(cond) [18:03:28.322] muffleCondition <- function (cond, pattern = "^muffle") [18:03:28.322] { [18:03:28.322] inherits <- base::inherits [18:03:28.322] invokeRestart <- base::invokeRestart [18:03:28.322] is.null <- base::is.null [18:03:28.322] muffled <- FALSE [18:03:28.322] if (inherits(cond, "message")) { [18:03:28.322] muffled <- grepl(pattern, "muffleMessage") [18:03:28.322] if (muffled) [18:03:28.322] invokeRestart("muffleMessage") [18:03:28.322] } [18:03:28.322] else if (inherits(cond, "warning")) { [18:03:28.322] muffled <- grepl(pattern, "muffleWarning") [18:03:28.322] if (muffled) [18:03:28.322] invokeRestart("muffleWarning") [18:03:28.322] } [18:03:28.322] else if (inherits(cond, "condition")) { [18:03:28.322] if (!is.null(pattern)) { [18:03:28.322] computeRestarts <- base::computeRestarts [18:03:28.322] grepl <- base::grepl [18:03:28.322] restarts <- computeRestarts(cond) [18:03:28.322] for (restart in restarts) { [18:03:28.322] name <- restart$name [18:03:28.322] if (is.null(name)) [18:03:28.322] next [18:03:28.322] if (!grepl(pattern, name)) [18:03:28.322] next [18:03:28.322] invokeRestart(restart) [18:03:28.322] muffled <- TRUE [18:03:28.322] break [18:03:28.322] } [18:03:28.322] } [18:03:28.322] } [18:03:28.322] invisible(muffled) [18:03:28.322] } [18:03:28.322] muffleCondition(cond) [18:03:28.322] }) [18:03:28.322] })) [18:03:28.322] future::FutureResult(value = ...future.value$value, [18:03:28.322] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [18:03:28.322] ...future.rng), globalenv = if (FALSE) [18:03:28.322] list(added = base::setdiff(base::names(base::.GlobalEnv), [18:03:28.322] ...future.globalenv.names)) [18:03:28.322] else NULL, started = ...future.startTime, version = "1.8") [18:03:28.322] }, condition = base::local({ [18:03:28.322] c <- base::c [18:03:28.322] inherits <- base::inherits [18:03:28.322] invokeRestart <- base::invokeRestart [18:03:28.322] length <- base::length [18:03:28.322] list <- base::list [18:03:28.322] seq.int <- base::seq.int [18:03:28.322] signalCondition <- base::signalCondition [18:03:28.322] sys.calls <- base::sys.calls [18:03:28.322] `[[` <- base::`[[` [18:03:28.322] `+` <- base::`+` [18:03:28.322] `<<-` <- base::`<<-` [18:03:28.322] sysCalls <- function(calls = sys.calls(), from = 1L) { [18:03:28.322] calls[seq.int(from = from + 12L, to = length(calls) - [18:03:28.322] 3L)] [18:03:28.322] } [18:03:28.322] function(cond) { [18:03:28.322] is_error <- inherits(cond, "error") [18:03:28.322] ignore <- !is_error && !is.null(NULL) && inherits(cond, [18:03:28.322] NULL) [18:03:28.322] if (is_error) { [18:03:28.322] sessionInformation <- function() { [18:03:28.322] list(r = base::R.Version(), locale = base::Sys.getlocale(), [18:03:28.322] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [18:03:28.322] search = base::search(), system = base::Sys.info()) [18:03:28.322] } [18:03:28.322] ...future.conditions[[length(...future.conditions) + [18:03:28.322] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [18:03:28.322] cond$call), session = sessionInformation(), [18:03:28.322] timestamp = base::Sys.time(), signaled = 0L) [18:03:28.322] signalCondition(cond) [18:03:28.322] } [18:03:28.322] else if (!ignore && TRUE && inherits(cond, c("condition", [18:03:28.322] "immediateCondition"))) { [18:03:28.322] signal <- TRUE && inherits(cond, "immediateCondition") [18:03:28.322] ...future.conditions[[length(...future.conditions) + [18:03:28.322] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [18:03:28.322] if (TRUE && !signal) { [18:03:28.322] muffleCondition <- function (cond, pattern = "^muffle") [18:03:28.322] { [18:03:28.322] inherits <- base::inherits [18:03:28.322] invokeRestart <- base::invokeRestart [18:03:28.322] is.null <- base::is.null [18:03:28.322] muffled <- FALSE [18:03:28.322] if (inherits(cond, "message")) { [18:03:28.322] muffled <- grepl(pattern, "muffleMessage") [18:03:28.322] if (muffled) [18:03:28.322] invokeRestart("muffleMessage") [18:03:28.322] } [18:03:28.322] else if (inherits(cond, "warning")) { [18:03:28.322] muffled <- grepl(pattern, "muffleWarning") [18:03:28.322] if (muffled) [18:03:28.322] invokeRestart("muffleWarning") [18:03:28.322] } [18:03:28.322] else if (inherits(cond, "condition")) { [18:03:28.322] if (!is.null(pattern)) { [18:03:28.322] computeRestarts <- base::computeRestarts [18:03:28.322] grepl <- base::grepl [18:03:28.322] restarts <- computeRestarts(cond) [18:03:28.322] for (restart in restarts) { [18:03:28.322] name <- restart$name [18:03:28.322] if (is.null(name)) [18:03:28.322] next [18:03:28.322] if (!grepl(pattern, name)) [18:03:28.322] next [18:03:28.322] invokeRestart(restart) [18:03:28.322] muffled <- TRUE [18:03:28.322] break [18:03:28.322] } [18:03:28.322] } [18:03:28.322] } [18:03:28.322] invisible(muffled) [18:03:28.322] } [18:03:28.322] muffleCondition(cond, pattern = "^muffle") [18:03:28.322] } [18:03:28.322] } [18:03:28.322] else { [18:03:28.322] if (TRUE) { [18:03:28.322] muffleCondition <- function (cond, pattern = "^muffle") [18:03:28.322] { [18:03:28.322] inherits <- base::inherits [18:03:28.322] invokeRestart <- base::invokeRestart [18:03:28.322] is.null <- base::is.null [18:03:28.322] muffled <- FALSE [18:03:28.322] if (inherits(cond, "message")) { [18:03:28.322] muffled <- grepl(pattern, "muffleMessage") [18:03:28.322] if (muffled) [18:03:28.322] invokeRestart("muffleMessage") [18:03:28.322] } [18:03:28.322] else if (inherits(cond, "warning")) { [18:03:28.322] muffled <- grepl(pattern, "muffleWarning") [18:03:28.322] if (muffled) [18:03:28.322] invokeRestart("muffleWarning") [18:03:28.322] } [18:03:28.322] else if (inherits(cond, "condition")) { [18:03:28.322] if (!is.null(pattern)) { [18:03:28.322] computeRestarts <- base::computeRestarts [18:03:28.322] grepl <- base::grepl [18:03:28.322] restarts <- computeRestarts(cond) [18:03:28.322] for (restart in restarts) { [18:03:28.322] name <- restart$name [18:03:28.322] if (is.null(name)) [18:03:28.322] next [18:03:28.322] if (!grepl(pattern, name)) [18:03:28.322] next [18:03:28.322] invokeRestart(restart) [18:03:28.322] muffled <- TRUE [18:03:28.322] break [18:03:28.322] } [18:03:28.322] } [18:03:28.322] } [18:03:28.322] invisible(muffled) [18:03:28.322] } [18:03:28.322] muffleCondition(cond, pattern = "^muffle") [18:03:28.322] } [18:03:28.322] } [18:03:28.322] } [18:03:28.322] })) [18:03:28.322] }, error = function(ex) { [18:03:28.322] base::structure(base::list(value = NULL, visible = NULL, [18:03:28.322] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [18:03:28.322] ...future.rng), started = ...future.startTime, [18:03:28.322] finished = Sys.time(), session_uuid = NA_character_, [18:03:28.322] version = "1.8"), class = "FutureResult") [18:03:28.322] }, finally = { [18:03:28.322] if (!identical(...future.workdir, getwd())) [18:03:28.322] setwd(...future.workdir) [18:03:28.322] { [18:03:28.322] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [18:03:28.322] ...future.oldOptions$nwarnings <- NULL [18:03:28.322] } [18:03:28.322] base::options(...future.oldOptions) [18:03:28.322] if (.Platform$OS.type == "windows") { [18:03:28.322] old_names <- names(...future.oldEnvVars) [18:03:28.322] envs <- base::Sys.getenv() [18:03:28.322] names <- names(envs) [18:03:28.322] common <- intersect(names, old_names) [18:03:28.322] added <- setdiff(names, old_names) [18:03:28.322] removed <- setdiff(old_names, names) [18:03:28.322] changed <- common[...future.oldEnvVars[common] != [18:03:28.322] envs[common]] [18:03:28.322] NAMES <- toupper(changed) [18:03:28.322] args <- list() [18:03:28.322] for (kk in seq_along(NAMES)) { [18:03:28.322] name <- changed[[kk]] [18:03:28.322] NAME <- NAMES[[kk]] [18:03:28.322] if (name != NAME && is.element(NAME, old_names)) [18:03:28.322] next [18:03:28.322] args[[name]] <- ...future.oldEnvVars[[name]] [18:03:28.322] } [18:03:28.322] NAMES <- toupper(added) [18:03:28.322] for (kk in seq_along(NAMES)) { [18:03:28.322] name <- added[[kk]] [18:03:28.322] NAME <- NAMES[[kk]] [18:03:28.322] if (name != NAME && is.element(NAME, old_names)) [18:03:28.322] next [18:03:28.322] args[[name]] <- "" [18:03:28.322] } [18:03:28.322] NAMES <- toupper(removed) [18:03:28.322] for (kk in seq_along(NAMES)) { [18:03:28.322] name <- removed[[kk]] [18:03:28.322] NAME <- NAMES[[kk]] [18:03:28.322] if (name != NAME && is.element(NAME, old_names)) [18:03:28.322] next [18:03:28.322] args[[name]] <- ...future.oldEnvVars[[name]] [18:03:28.322] } [18:03:28.322] if (length(args) > 0) [18:03:28.322] base::do.call(base::Sys.setenv, args = args) [18:03:28.322] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [18:03:28.322] } [18:03:28.322] else { [18:03:28.322] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [18:03:28.322] } [18:03:28.322] { [18:03:28.322] if (base::length(...future.futureOptionsAdded) > [18:03:28.322] 0L) { [18:03:28.322] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [18:03:28.322] base::names(opts) <- ...future.futureOptionsAdded [18:03:28.322] base::options(opts) [18:03:28.322] } [18:03:28.322] { [18:03:28.322] NULL [18:03:28.322] options(future.plan = NULL) [18:03:28.322] if (is.na(NA_character_)) [18:03:28.322] Sys.unsetenv("R_FUTURE_PLAN") [18:03:28.322] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [18:03:28.322] future::plan(list(function (..., workers = list( [18:03:28.322] list(con = 4L, host = "localhost", rank = 0L, [18:03:28.322] session_info = list(r = list(platform = "x86_64-w64-mingw32", [18:03:28.322] arch = "x86_64", os = "mingw32", crt = "ucrt", [18:03:28.322] system = "x86_64, mingw32", status = "Under development (unstable)", [18:03:28.322] major = "4", minor = "4.0", year = "2023", [18:03:28.322] month = "06", day = "30", `svn rev` = "84625", [18:03:28.322] language = "R", version.string = "R Under development (unstable) (2023-06-30 r84625 ucrt)", [18:03:28.322] nickname = "Unsuffered Consequences", [18:03:28.322] os.type = "windows"), system = list(sysname = "Windows", [18:03:28.322] release = "Server x64", version = "build 20348", [18:03:28.322] nodename = "CRANWIN3", machine = "x86-64", [18:03:28.322] login = "CRAN", user = "CRAN", effective_user = "CRAN"), [18:03:28.322] libs = c("D:/temp/Rtmp67Lu9b/RLIBS_19fe819742e2c", [18:03:28.322] "D:/RCompile/recent/R/library"), pkgs = NULL, [18:03:28.322] pwd = "d:/RCompile/CRANincoming/R-devel/future.Rcheck/tests", [18:03:28.322] process = list(pid = 119656L)))), envir = parent.frame()) [18:03:28.322] strategy(..., workers = workers, envir = envir)), [18:03:28.322] .cleanup = FALSE, .init = FALSE) [18:03:28.322] } [18:03:28.322] } [18:03:28.322] } [18:03:28.322] }) [18:03:28.322] if (TRUE) { [18:03:28.322] base::sink(type = "output", split = FALSE) [18:03:28.322] if (TRUE) { [18:03:28.322] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [18:03:28.322] } [18:03:28.322] else { [18:03:28.322] ...future.result["stdout"] <- base::list(NULL) [18:03:28.322] } [18:03:28.322] base::close(...future.stdout) [18:03:28.322] ...future.stdout <- NULL [18:03:28.322] } [18:03:28.322] ...future.result$conditions <- ...future.conditions [18:03:28.322] ...future.result$finished <- base::Sys.time() [18:03:28.322] ...future.result [18:03:28.322] } [18:03:28.417] ClusterFuture started [18:03:28.418] result() for ClusterFuture ... [18:03:28.419] receiveMessageFromWorker() for ClusterFuture ... [18:03:28.419] - Validating connection of ClusterFuture [18:03:28.476] - received message: FutureResult [18:03:28.476] - Received FutureResult [18:03:28.480] - Erased future from FutureRegistry [18:03:28.481] result() for ClusterFuture ... [18:03:28.481] - result already collected: FutureResult [18:03:28.481] result() for ClusterFuture ... done [18:03:28.481] receiveMessageFromWorker() for ClusterFuture ... done [18:03:28.481] result() for ClusterFuture ... done [18:03:28.482] result() for ClusterFuture ... [18:03:28.482] - result already collected: FutureResult [18:03:28.482] result() for ClusterFuture ... done [18:03:28.482] plan(): plan_init() of 'tweaked', 'cluster', 'multiprocess', 'future', 'function' ... DONE [18:03:28.483] plan(): nbrOfWorkers() = 1 [18:03:28.484] plan(): Setting new future strategy stack: [18:03:28.484] List of future strategies: [18:03:28.484] 1. sequential: [18:03:28.484] - args: function (..., envir = parent.frame()) [18:03:28.484] - tweaked: FALSE [18:03:28.484] - call: future::plan("sequential") [18:03:28.485] plan(): nbrOfWorkers() = 1 > > message("*** plan() - tweak without introducting package dependencies ... DONE") *** plan() - tweak without introducting package dependencies ... DONE > > > message("*** y %<-% { expr } %tweak% tweaks ...") *** y %<-% { expr } %tweak% tweaks ... > > plan(sequential) [18:03:28.485] plan(): Setting new future strategy stack: [18:03:28.486] List of future strategies: [18:03:28.486] 1. sequential: [18:03:28.486] - args: function (..., envir = parent.frame()) [18:03:28.486] - tweaked: FALSE [18:03:28.486] - call: plan(sequential) [18:03:28.486] plan(): nbrOfWorkers() = 1 > > a <- 0 > x %<-% { a <- 1; a } [18:03:28.488] getGlobalsAndPackages() ... [18:03:28.488] Searching for globals... [18:03:28.497] - globals found: [2] '{', '<-' [18:03:28.498] Searching for globals ... DONE [18:03:28.498] Resolving globals: FALSE [18:03:28.499] [18:03:28.499] [18:03:28.499] getGlobalsAndPackages() ... DONE [18:03:28.499] run() for 'Future' ... [18:03:28.500] - state: 'created' [18:03:28.500] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [18:03:28.500] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [18:03:28.500] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [18:03:28.501] - Field: 'label' [18:03:28.501] - Field: 'local' [18:03:28.501] - Field: 'owner' [18:03:28.501] - Field: 'envir' [18:03:28.501] - Field: 'packages' [18:03:28.502] - Field: 'gc' [18:03:28.502] - Field: 'conditions' [18:03:28.502] - Field: 'expr' [18:03:28.502] - Field: 'uuid' [18:03:28.502] - Field: 'seed' [18:03:28.502] - Field: 'version' [18:03:28.503] - Field: 'result' [18:03:28.503] - Field: 'asynchronous' [18:03:28.503] - Field: 'calls' [18:03:28.503] - Field: 'globals' [18:03:28.503] - Field: 'stdout' [18:03:28.504] - Field: 'earlySignal' [18:03:28.504] - Field: 'lazy' [18:03:28.504] - Field: 'state' [18:03:28.504] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [18:03:28.504] - Launch lazy future ... [18:03:28.505] Packages needed by the future expression (n = 0): [18:03:28.505] Packages needed by future strategies (n = 0): [18:03:28.506] { [18:03:28.506] { [18:03:28.506] { [18:03:28.506] ...future.startTime <- base::Sys.time() [18:03:28.506] { [18:03:28.506] { [18:03:28.506] { [18:03:28.506] base::local({ [18:03:28.506] has_future <- base::requireNamespace("future", [18:03:28.506] quietly = TRUE) [18:03:28.506] if (has_future) { [18:03:28.506] ns <- base::getNamespace("future") [18:03:28.506] version <- ns[[".package"]][["version"]] [18:03:28.506] if (is.null(version)) [18:03:28.506] version <- utils::packageVersion("future") [18:03:28.506] } [18:03:28.506] else { [18:03:28.506] version <- NULL [18:03:28.506] } [18:03:28.506] if (!has_future || version < "1.8.0") { [18:03:28.506] info <- base::c(r_version = base::gsub("R version ", [18:03:28.506] "", base::R.version$version.string), [18:03:28.506] platform = base::sprintf("%s (%s-bit)", [18:03:28.506] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [18:03:28.506] os = base::paste(base::Sys.info()[base::c("sysname", [18:03:28.506] "release", "version")], collapse = " "), [18:03:28.506] hostname = base::Sys.info()[["nodename"]]) [18:03:28.506] info <- base::sprintf("%s: %s", base::names(info), [18:03:28.506] info) [18:03:28.506] info <- base::paste(info, collapse = "; ") [18:03:28.506] if (!has_future) { [18:03:28.506] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [18:03:28.506] info) [18:03:28.506] } [18:03:28.506] else { [18:03:28.506] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [18:03:28.506] info, version) [18:03:28.506] } [18:03:28.506] base::stop(msg) [18:03:28.506] } [18:03:28.506] }) [18:03:28.506] } [18:03:28.506] options(future.plan = NULL) [18:03:28.506] Sys.unsetenv("R_FUTURE_PLAN") [18:03:28.506] future::plan("default", .cleanup = FALSE, .init = FALSE) [18:03:28.506] } [18:03:28.506] ...future.workdir <- getwd() [18:03:28.506] } [18:03:28.506] ...future.oldOptions <- base::as.list(base::.Options) [18:03:28.506] ...future.oldEnvVars <- base::Sys.getenv() [18:03:28.506] } [18:03:28.506] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [18:03:28.506] future.globals.maxSize = NULL, future.globals.method = NULL, [18:03:28.506] future.globals.onMissing = NULL, future.globals.onReference = NULL, [18:03:28.506] future.globals.resolve = NULL, future.resolve.recursive = NULL, [18:03:28.506] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [18:03:28.506] future.stdout.windows.reencode = NULL, width = 80L) [18:03:28.506] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [18:03:28.506] base::names(...future.oldOptions)) [18:03:28.506] } [18:03:28.506] if (FALSE) { [18:03:28.506] } [18:03:28.506] else { [18:03:28.506] if (TRUE) { [18:03:28.506] ...future.stdout <- base::rawConnection(base::raw(0L), [18:03:28.506] open = "w") [18:03:28.506] } [18:03:28.506] else { [18:03:28.506] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [18:03:28.506] windows = "NUL", "/dev/null"), open = "w") [18:03:28.506] } [18:03:28.506] base::sink(...future.stdout, type = "output", split = FALSE) [18:03:28.506] base::on.exit(if (!base::is.null(...future.stdout)) { [18:03:28.506] base::sink(type = "output", split = FALSE) [18:03:28.506] base::close(...future.stdout) [18:03:28.506] }, add = TRUE) [18:03:28.506] } [18:03:28.506] ...future.frame <- base::sys.nframe() [18:03:28.506] ...future.conditions <- base::list() [18:03:28.506] ...future.rng <- base::globalenv()$.Random.seed [18:03:28.506] if (FALSE) { [18:03:28.506] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [18:03:28.506] "...future.value", "...future.globalenv.names", ".Random.seed") [18:03:28.506] } [18:03:28.506] ...future.result <- base::tryCatch({ [18:03:28.506] base::withCallingHandlers({ [18:03:28.506] ...future.value <- base::withVisible(base::local({ [18:03:28.506] a <- 1 [18:03:28.506] a [18:03:28.506] })) [18:03:28.506] future::FutureResult(value = ...future.value$value, [18:03:28.506] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [18:03:28.506] ...future.rng), globalenv = if (FALSE) [18:03:28.506] list(added = base::setdiff(base::names(base::.GlobalEnv), [18:03:28.506] ...future.globalenv.names)) [18:03:28.506] else NULL, started = ...future.startTime, version = "1.8") [18:03:28.506] }, condition = base::local({ [18:03:28.506] c <- base::c [18:03:28.506] inherits <- base::inherits [18:03:28.506] invokeRestart <- base::invokeRestart [18:03:28.506] length <- base::length [18:03:28.506] list <- base::list [18:03:28.506] seq.int <- base::seq.int [18:03:28.506] signalCondition <- base::signalCondition [18:03:28.506] sys.calls <- base::sys.calls [18:03:28.506] `[[` <- base::`[[` [18:03:28.506] `+` <- base::`+` [18:03:28.506] `<<-` <- base::`<<-` [18:03:28.506] sysCalls <- function(calls = sys.calls(), from = 1L) { [18:03:28.506] calls[seq.int(from = from + 12L, to = length(calls) - [18:03:28.506] 3L)] [18:03:28.506] } [18:03:28.506] function(cond) { [18:03:28.506] is_error <- inherits(cond, "error") [18:03:28.506] ignore <- !is_error && !is.null(NULL) && inherits(cond, [18:03:28.506] NULL) [18:03:28.506] if (is_error) { [18:03:28.506] sessionInformation <- function() { [18:03:28.506] list(r = base::R.Version(), locale = base::Sys.getlocale(), [18:03:28.506] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [18:03:28.506] search = base::search(), system = base::Sys.info()) [18:03:28.506] } [18:03:28.506] ...future.conditions[[length(...future.conditions) + [18:03:28.506] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [18:03:28.506] cond$call), session = sessionInformation(), [18:03:28.506] timestamp = base::Sys.time(), signaled = 0L) [18:03:28.506] signalCondition(cond) [18:03:28.506] } [18:03:28.506] else if (!ignore && TRUE && inherits(cond, c("condition", [18:03:28.506] "immediateCondition"))) { [18:03:28.506] signal <- TRUE && inherits(cond, "immediateCondition") [18:03:28.506] ...future.conditions[[length(...future.conditions) + [18:03:28.506] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [18:03:28.506] if (TRUE && !signal) { [18:03:28.506] muffleCondition <- function (cond, pattern = "^muffle") [18:03:28.506] { [18:03:28.506] inherits <- base::inherits [18:03:28.506] invokeRestart <- base::invokeRestart [18:03:28.506] is.null <- base::is.null [18:03:28.506] muffled <- FALSE [18:03:28.506] if (inherits(cond, "message")) { [18:03:28.506] muffled <- grepl(pattern, "muffleMessage") [18:03:28.506] if (muffled) [18:03:28.506] invokeRestart("muffleMessage") [18:03:28.506] } [18:03:28.506] else if (inherits(cond, "warning")) { [18:03:28.506] muffled <- grepl(pattern, "muffleWarning") [18:03:28.506] if (muffled) [18:03:28.506] invokeRestart("muffleWarning") [18:03:28.506] } [18:03:28.506] else if (inherits(cond, "condition")) { [18:03:28.506] if (!is.null(pattern)) { [18:03:28.506] computeRestarts <- base::computeRestarts [18:03:28.506] grepl <- base::grepl [18:03:28.506] restarts <- computeRestarts(cond) [18:03:28.506] for (restart in restarts) { [18:03:28.506] name <- restart$name [18:03:28.506] if (is.null(name)) [18:03:28.506] next [18:03:28.506] if (!grepl(pattern, name)) [18:03:28.506] next [18:03:28.506] invokeRestart(restart) [18:03:28.506] muffled <- TRUE [18:03:28.506] break [18:03:28.506] } [18:03:28.506] } [18:03:28.506] } [18:03:28.506] invisible(muffled) [18:03:28.506] } [18:03:28.506] muffleCondition(cond, pattern = "^muffle") [18:03:28.506] } [18:03:28.506] } [18:03:28.506] else { [18:03:28.506] if (TRUE) { [18:03:28.506] muffleCondition <- function (cond, pattern = "^muffle") [18:03:28.506] { [18:03:28.506] inherits <- base::inherits [18:03:28.506] invokeRestart <- base::invokeRestart [18:03:28.506] is.null <- base::is.null [18:03:28.506] muffled <- FALSE [18:03:28.506] if (inherits(cond, "message")) { [18:03:28.506] muffled <- grepl(pattern, "muffleMessage") [18:03:28.506] if (muffled) [18:03:28.506] invokeRestart("muffleMessage") [18:03:28.506] } [18:03:28.506] else if (inherits(cond, "warning")) { [18:03:28.506] muffled <- grepl(pattern, "muffleWarning") [18:03:28.506] if (muffled) [18:03:28.506] invokeRestart("muffleWarning") [18:03:28.506] } [18:03:28.506] else if (inherits(cond, "condition")) { [18:03:28.506] if (!is.null(pattern)) { [18:03:28.506] computeRestarts <- base::computeRestarts [18:03:28.506] grepl <- base::grepl [18:03:28.506] restarts <- computeRestarts(cond) [18:03:28.506] for (restart in restarts) { [18:03:28.506] name <- restart$name [18:03:28.506] if (is.null(name)) [18:03:28.506] next [18:03:28.506] if (!grepl(pattern, name)) [18:03:28.506] next [18:03:28.506] invokeRestart(restart) [18:03:28.506] muffled <- TRUE [18:03:28.506] break [18:03:28.506] } [18:03:28.506] } [18:03:28.506] } [18:03:28.506] invisible(muffled) [18:03:28.506] } [18:03:28.506] muffleCondition(cond, pattern = "^muffle") [18:03:28.506] } [18:03:28.506] } [18:03:28.506] } [18:03:28.506] })) [18:03:28.506] }, error = function(ex) { [18:03:28.506] base::structure(base::list(value = NULL, visible = NULL, [18:03:28.506] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [18:03:28.506] ...future.rng), started = ...future.startTime, [18:03:28.506] finished = Sys.time(), session_uuid = NA_character_, [18:03:28.506] version = "1.8"), class = "FutureResult") [18:03:28.506] }, finally = { [18:03:28.506] if (!identical(...future.workdir, getwd())) [18:03:28.506] setwd(...future.workdir) [18:03:28.506] { [18:03:28.506] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [18:03:28.506] ...future.oldOptions$nwarnings <- NULL [18:03:28.506] } [18:03:28.506] base::options(...future.oldOptions) [18:03:28.506] if (.Platform$OS.type == "windows") { [18:03:28.506] old_names <- names(...future.oldEnvVars) [18:03:28.506] envs <- base::Sys.getenv() [18:03:28.506] names <- names(envs) [18:03:28.506] common <- intersect(names, old_names) [18:03:28.506] added <- setdiff(names, old_names) [18:03:28.506] removed <- setdiff(old_names, names) [18:03:28.506] changed <- common[...future.oldEnvVars[common] != [18:03:28.506] envs[common]] [18:03:28.506] NAMES <- toupper(changed) [18:03:28.506] args <- list() [18:03:28.506] for (kk in seq_along(NAMES)) { [18:03:28.506] name <- changed[[kk]] [18:03:28.506] NAME <- NAMES[[kk]] [18:03:28.506] if (name != NAME && is.element(NAME, old_names)) [18:03:28.506] next [18:03:28.506] args[[name]] <- ...future.oldEnvVars[[name]] [18:03:28.506] } [18:03:28.506] NAMES <- toupper(added) [18:03:28.506] for (kk in seq_along(NAMES)) { [18:03:28.506] name <- added[[kk]] [18:03:28.506] NAME <- NAMES[[kk]] [18:03:28.506] if (name != NAME && is.element(NAME, old_names)) [18:03:28.506] next [18:03:28.506] args[[name]] <- "" [18:03:28.506] } [18:03:28.506] NAMES <- toupper(removed) [18:03:28.506] for (kk in seq_along(NAMES)) { [18:03:28.506] name <- removed[[kk]] [18:03:28.506] NAME <- NAMES[[kk]] [18:03:28.506] if (name != NAME && is.element(NAME, old_names)) [18:03:28.506] next [18:03:28.506] args[[name]] <- ...future.oldEnvVars[[name]] [18:03:28.506] } [18:03:28.506] if (length(args) > 0) [18:03:28.506] base::do.call(base::Sys.setenv, args = args) [18:03:28.506] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [18:03:28.506] } [18:03:28.506] else { [18:03:28.506] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [18:03:28.506] } [18:03:28.506] { [18:03:28.506] if (base::length(...future.futureOptionsAdded) > [18:03:28.506] 0L) { [18:03:28.506] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [18:03:28.506] base::names(opts) <- ...future.futureOptionsAdded [18:03:28.506] base::options(opts) [18:03:28.506] } [18:03:28.506] { [18:03:28.506] { [18:03:28.506] NULL [18:03:28.506] RNGkind("Mersenne-Twister") [18:03:28.506] base::rm(list = ".Random.seed", envir = base::globalenv(), [18:03:28.506] inherits = FALSE) [18:03:28.506] } [18:03:28.506] options(future.plan = NULL) [18:03:28.506] if (is.na(NA_character_)) [18:03:28.506] Sys.unsetenv("R_FUTURE_PLAN") [18:03:28.506] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [18:03:28.506] future::plan(list(function (..., envir = parent.frame()) [18:03:28.506] { [18:03:28.506] future <- SequentialFuture(..., envir = envir) [18:03:28.506] if (!future$lazy) [18:03:28.506] future <- run(future) [18:03:28.506] invisible(future) [18:03:28.506] }), .cleanup = FALSE, .init = FALSE) [18:03:28.506] } [18:03:28.506] } [18:03:28.506] } [18:03:28.506] }) [18:03:28.506] if (TRUE) { [18:03:28.506] base::sink(type = "output", split = FALSE) [18:03:28.506] if (TRUE) { [18:03:28.506] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [18:03:28.506] } [18:03:28.506] else { [18:03:28.506] ...future.result["stdout"] <- base::list(NULL) [18:03:28.506] } [18:03:28.506] base::close(...future.stdout) [18:03:28.506] ...future.stdout <- NULL [18:03:28.506] } [18:03:28.506] ...future.result$conditions <- ...future.conditions [18:03:28.506] ...future.result$finished <- base::Sys.time() [18:03:28.506] ...future.result [18:03:28.506] } [18:03:28.510] plan(): Setting new future strategy stack: [18:03:28.510] List of future strategies: [18:03:28.510] 1. sequential: [18:03:28.510] - args: function (..., envir = parent.frame()) [18:03:28.510] - tweaked: FALSE [18:03:28.510] - call: NULL [18:03:28.510] plan(): nbrOfWorkers() = 1 [18:03:28.512] plan(): Setting new future strategy stack: [18:03:28.512] List of future strategies: [18:03:28.512] 1. sequential: [18:03:28.512] - args: function (..., envir = parent.frame()) [18:03:28.512] - tweaked: FALSE [18:03:28.512] - call: plan(sequential) [18:03:28.513] plan(): nbrOfWorkers() = 1 [18:03:28.513] SequentialFuture started (and completed) [18:03:28.513] - Launch lazy future ... done [18:03:28.514] run() for 'SequentialFuture' ... done > print(x) [1] 1 > stopifnot(a == 0, x == 1) > > > plan(sequential, abc = FALSE) Warning: Detected 1 unknown future arguments: 'abc' [18:03:28.515] plan(): Setting new future strategy stack: [18:03:28.515] List of future strategies: [18:03:28.515] 1. sequential: [18:03:28.515] - args: function (..., abc = FALSE, envir = parent.frame()) [18:03:28.515] - tweaked: TRUE [18:03:28.515] - call: plan(sequential, abc = FALSE) [18:03:28.515] plan(): nbrOfWorkers() = 1 > > a <- 0 > x %<-% { a <- 1; a } [18:03:28.516] getGlobalsAndPackages() ... [18:03:28.516] Searching for globals... [18:03:28.517] - globals found: [2] '{', '<-' [18:03:28.517] Searching for globals ... DONE [18:03:28.518] Resolving globals: FALSE [18:03:28.518] [18:03:28.518] [18:03:28.518] getGlobalsAndPackages() ... DONE [18:03:28.519] run() for 'Future' ... [18:03:28.519] - state: 'created' [18:03:28.519] - Future backend: 'FutureStrategy', 'tweaked', 'sequential', 'uniprocess', 'future', 'function' [18:03:28.519] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [18:03:28.520] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [18:03:28.520] - Field: 'label' [18:03:28.520] - Field: 'local' [18:03:28.520] - Field: 'owner' [18:03:28.520] - Field: 'envir' [18:03:28.520] - Field: 'packages' [18:03:28.521] - Field: 'gc' [18:03:28.521] - Field: 'conditions' [18:03:28.521] - Field: 'expr' [18:03:28.521] - Field: 'uuid' [18:03:28.521] - Field: 'seed' [18:03:28.522] - Field: 'version' [18:03:28.522] - Field: 'result' [18:03:28.522] - Field: 'asynchronous' [18:03:28.522] - Field: 'calls' [18:03:28.522] - Field: 'abc' [18:03:28.522] - Field: 'globals' [18:03:28.523] - Field: 'stdout' [18:03:28.523] - Field: 'earlySignal' [18:03:28.523] - Field: 'lazy' [18:03:28.523] - Field: 'state' [18:03:28.523] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [18:03:28.524] - Launch lazy future ... [18:03:28.524] Packages needed by the future expression (n = 0): [18:03:28.524] Packages needed by future strategies (n = 0): [18:03:28.525] { [18:03:28.525] { [18:03:28.525] { [18:03:28.525] ...future.startTime <- base::Sys.time() [18:03:28.525] { [18:03:28.525] { [18:03:28.525] { [18:03:28.525] base::local({ [18:03:28.525] has_future <- base::requireNamespace("future", [18:03:28.525] quietly = TRUE) [18:03:28.525] if (has_future) { [18:03:28.525] ns <- base::getNamespace("future") [18:03:28.525] version <- ns[[".package"]][["version"]] [18:03:28.525] if (is.null(version)) [18:03:28.525] version <- utils::packageVersion("future") [18:03:28.525] } [18:03:28.525] else { [18:03:28.525] version <- NULL [18:03:28.525] } [18:03:28.525] if (!has_future || version < "1.8.0") { [18:03:28.525] info <- base::c(r_version = base::gsub("R version ", [18:03:28.525] "", base::R.version$version.string), [18:03:28.525] platform = base::sprintf("%s (%s-bit)", [18:03:28.525] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [18:03:28.525] os = base::paste(base::Sys.info()[base::c("sysname", [18:03:28.525] "release", "version")], collapse = " "), [18:03:28.525] hostname = base::Sys.info()[["nodename"]]) [18:03:28.525] info <- base::sprintf("%s: %s", base::names(info), [18:03:28.525] info) [18:03:28.525] info <- base::paste(info, collapse = "; ") [18:03:28.525] if (!has_future) { [18:03:28.525] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [18:03:28.525] info) [18:03:28.525] } [18:03:28.525] else { [18:03:28.525] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [18:03:28.525] info, version) [18:03:28.525] } [18:03:28.525] base::stop(msg) [18:03:28.525] } [18:03:28.525] }) [18:03:28.525] } [18:03:28.525] options(future.plan = NULL) [18:03:28.525] Sys.unsetenv("R_FUTURE_PLAN") [18:03:28.525] future::plan("default", .cleanup = FALSE, .init = FALSE) [18:03:28.525] } [18:03:28.525] ...future.workdir <- getwd() [18:03:28.525] } [18:03:28.525] ...future.oldOptions <- base::as.list(base::.Options) [18:03:28.525] ...future.oldEnvVars <- base::Sys.getenv() [18:03:28.525] } [18:03:28.525] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [18:03:28.525] future.globals.maxSize = NULL, future.globals.method = NULL, [18:03:28.525] future.globals.onMissing = NULL, future.globals.onReference = NULL, [18:03:28.525] future.globals.resolve = NULL, future.resolve.recursive = NULL, [18:03:28.525] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [18:03:28.525] future.stdout.windows.reencode = NULL, width = 80L) [18:03:28.525] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [18:03:28.525] base::names(...future.oldOptions)) [18:03:28.525] } [18:03:28.525] if (FALSE) { [18:03:28.525] } [18:03:28.525] else { [18:03:28.525] if (TRUE) { [18:03:28.525] ...future.stdout <- base::rawConnection(base::raw(0L), [18:03:28.525] open = "w") [18:03:28.525] } [18:03:28.525] else { [18:03:28.525] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [18:03:28.525] windows = "NUL", "/dev/null"), open = "w") [18:03:28.525] } [18:03:28.525] base::sink(...future.stdout, type = "output", split = FALSE) [18:03:28.525] base::on.exit(if (!base::is.null(...future.stdout)) { [18:03:28.525] base::sink(type = "output", split = FALSE) [18:03:28.525] base::close(...future.stdout) [18:03:28.525] }, add = TRUE) [18:03:28.525] } [18:03:28.525] ...future.frame <- base::sys.nframe() [18:03:28.525] ...future.conditions <- base::list() [18:03:28.525] ...future.rng <- base::globalenv()$.Random.seed [18:03:28.525] if (FALSE) { [18:03:28.525] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [18:03:28.525] "...future.value", "...future.globalenv.names", ".Random.seed") [18:03:28.525] } [18:03:28.525] ...future.result <- base::tryCatch({ [18:03:28.525] base::withCallingHandlers({ [18:03:28.525] ...future.value <- base::withVisible(base::local({ [18:03:28.525] a <- 1 [18:03:28.525] a [18:03:28.525] })) [18:03:28.525] future::FutureResult(value = ...future.value$value, [18:03:28.525] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [18:03:28.525] ...future.rng), globalenv = if (FALSE) [18:03:28.525] list(added = base::setdiff(base::names(base::.GlobalEnv), [18:03:28.525] ...future.globalenv.names)) [18:03:28.525] else NULL, started = ...future.startTime, version = "1.8") [18:03:28.525] }, condition = base::local({ [18:03:28.525] c <- base::c [18:03:28.525] inherits <- base::inherits [18:03:28.525] invokeRestart <- base::invokeRestart [18:03:28.525] length <- base::length [18:03:28.525] list <- base::list [18:03:28.525] seq.int <- base::seq.int [18:03:28.525] signalCondition <- base::signalCondition [18:03:28.525] sys.calls <- base::sys.calls [18:03:28.525] `[[` <- base::`[[` [18:03:28.525] `+` <- base::`+` [18:03:28.525] `<<-` <- base::`<<-` [18:03:28.525] sysCalls <- function(calls = sys.calls(), from = 1L) { [18:03:28.525] calls[seq.int(from = from + 12L, to = length(calls) - [18:03:28.525] 3L)] [18:03:28.525] } [18:03:28.525] function(cond) { [18:03:28.525] is_error <- inherits(cond, "error") [18:03:28.525] ignore <- !is_error && !is.null(NULL) && inherits(cond, [18:03:28.525] NULL) [18:03:28.525] if (is_error) { [18:03:28.525] sessionInformation <- function() { [18:03:28.525] list(r = base::R.Version(), locale = base::Sys.getlocale(), [18:03:28.525] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [18:03:28.525] search = base::search(), system = base::Sys.info()) [18:03:28.525] } [18:03:28.525] ...future.conditions[[length(...future.conditions) + [18:03:28.525] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [18:03:28.525] cond$call), session = sessionInformation(), [18:03:28.525] timestamp = base::Sys.time(), signaled = 0L) [18:03:28.525] signalCondition(cond) [18:03:28.525] } [18:03:28.525] else if (!ignore && TRUE && inherits(cond, c("condition", [18:03:28.525] "immediateCondition"))) { [18:03:28.525] signal <- TRUE && inherits(cond, "immediateCondition") [18:03:28.525] ...future.conditions[[length(...future.conditions) + [18:03:28.525] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [18:03:28.525] if (TRUE && !signal) { [18:03:28.525] muffleCondition <- function (cond, pattern = "^muffle") [18:03:28.525] { [18:03:28.525] inherits <- base::inherits [18:03:28.525] invokeRestart <- base::invokeRestart [18:03:28.525] is.null <- base::is.null [18:03:28.525] muffled <- FALSE [18:03:28.525] if (inherits(cond, "message")) { [18:03:28.525] muffled <- grepl(pattern, "muffleMessage") [18:03:28.525] if (muffled) [18:03:28.525] invokeRestart("muffleMessage") [18:03:28.525] } [18:03:28.525] else if (inherits(cond, "warning")) { [18:03:28.525] muffled <- grepl(pattern, "muffleWarning") [18:03:28.525] if (muffled) [18:03:28.525] invokeRestart("muffleWarning") [18:03:28.525] } [18:03:28.525] else if (inherits(cond, "condition")) { [18:03:28.525] if (!is.null(pattern)) { [18:03:28.525] computeRestarts <- base::computeRestarts [18:03:28.525] grepl <- base::grepl [18:03:28.525] restarts <- computeRestarts(cond) [18:03:28.525] for (restart in restarts) { [18:03:28.525] name <- restart$name [18:03:28.525] if (is.null(name)) [18:03:28.525] next [18:03:28.525] if (!grepl(pattern, name)) [18:03:28.525] next [18:03:28.525] invokeRestart(restart) [18:03:28.525] muffled <- TRUE [18:03:28.525] break [18:03:28.525] } [18:03:28.525] } [18:03:28.525] } [18:03:28.525] invisible(muffled) [18:03:28.525] } [18:03:28.525] muffleCondition(cond, pattern = "^muffle") [18:03:28.525] } [18:03:28.525] } [18:03:28.525] else { [18:03:28.525] if (TRUE) { [18:03:28.525] muffleCondition <- function (cond, pattern = "^muffle") [18:03:28.525] { [18:03:28.525] inherits <- base::inherits [18:03:28.525] invokeRestart <- base::invokeRestart [18:03:28.525] is.null <- base::is.null [18:03:28.525] muffled <- FALSE [18:03:28.525] if (inherits(cond, "message")) { [18:03:28.525] muffled <- grepl(pattern, "muffleMessage") [18:03:28.525] if (muffled) [18:03:28.525] invokeRestart("muffleMessage") [18:03:28.525] } [18:03:28.525] else if (inherits(cond, "warning")) { [18:03:28.525] muffled <- grepl(pattern, "muffleWarning") [18:03:28.525] if (muffled) [18:03:28.525] invokeRestart("muffleWarning") [18:03:28.525] } [18:03:28.525] else if (inherits(cond, "condition")) { [18:03:28.525] if (!is.null(pattern)) { [18:03:28.525] computeRestarts <- base::computeRestarts [18:03:28.525] grepl <- base::grepl [18:03:28.525] restarts <- computeRestarts(cond) [18:03:28.525] for (restart in restarts) { [18:03:28.525] name <- restart$name [18:03:28.525] if (is.null(name)) [18:03:28.525] next [18:03:28.525] if (!grepl(pattern, name)) [18:03:28.525] next [18:03:28.525] invokeRestart(restart) [18:03:28.525] muffled <- TRUE [18:03:28.525] break [18:03:28.525] } [18:03:28.525] } [18:03:28.525] } [18:03:28.525] invisible(muffled) [18:03:28.525] } [18:03:28.525] muffleCondition(cond, pattern = "^muffle") [18:03:28.525] } [18:03:28.525] } [18:03:28.525] } [18:03:28.525] })) [18:03:28.525] }, error = function(ex) { [18:03:28.525] base::structure(base::list(value = NULL, visible = NULL, [18:03:28.525] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [18:03:28.525] ...future.rng), started = ...future.startTime, [18:03:28.525] finished = Sys.time(), session_uuid = NA_character_, [18:03:28.525] version = "1.8"), class = "FutureResult") [18:03:28.525] }, finally = { [18:03:28.525] if (!identical(...future.workdir, getwd())) [18:03:28.525] setwd(...future.workdir) [18:03:28.525] { [18:03:28.525] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [18:03:28.525] ...future.oldOptions$nwarnings <- NULL [18:03:28.525] } [18:03:28.525] base::options(...future.oldOptions) [18:03:28.525] if (.Platform$OS.type == "windows") { [18:03:28.525] old_names <- names(...future.oldEnvVars) [18:03:28.525] envs <- base::Sys.getenv() [18:03:28.525] names <- names(envs) [18:03:28.525] common <- intersect(names, old_names) [18:03:28.525] added <- setdiff(names, old_names) [18:03:28.525] removed <- setdiff(old_names, names) [18:03:28.525] changed <- common[...future.oldEnvVars[common] != [18:03:28.525] envs[common]] [18:03:28.525] NAMES <- toupper(changed) [18:03:28.525] args <- list() [18:03:28.525] for (kk in seq_along(NAMES)) { [18:03:28.525] name <- changed[[kk]] [18:03:28.525] NAME <- NAMES[[kk]] [18:03:28.525] if (name != NAME && is.element(NAME, old_names)) [18:03:28.525] next [18:03:28.525] args[[name]] <- ...future.oldEnvVars[[name]] [18:03:28.525] } [18:03:28.525] NAMES <- toupper(added) [18:03:28.525] for (kk in seq_along(NAMES)) { [18:03:28.525] name <- added[[kk]] [18:03:28.525] NAME <- NAMES[[kk]] [18:03:28.525] if (name != NAME && is.element(NAME, old_names)) [18:03:28.525] next [18:03:28.525] args[[name]] <- "" [18:03:28.525] } [18:03:28.525] NAMES <- toupper(removed) [18:03:28.525] for (kk in seq_along(NAMES)) { [18:03:28.525] name <- removed[[kk]] [18:03:28.525] NAME <- NAMES[[kk]] [18:03:28.525] if (name != NAME && is.element(NAME, old_names)) [18:03:28.525] next [18:03:28.525] args[[name]] <- ...future.oldEnvVars[[name]] [18:03:28.525] } [18:03:28.525] if (length(args) > 0) [18:03:28.525] base::do.call(base::Sys.setenv, args = args) [18:03:28.525] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [18:03:28.525] } [18:03:28.525] else { [18:03:28.525] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [18:03:28.525] } [18:03:28.525] { [18:03:28.525] if (base::length(...future.futureOptionsAdded) > [18:03:28.525] 0L) { [18:03:28.525] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [18:03:28.525] base::names(opts) <- ...future.futureOptionsAdded [18:03:28.525] base::options(opts) [18:03:28.525] } [18:03:28.525] { [18:03:28.525] { [18:03:28.525] NULL [18:03:28.525] RNGkind("Mersenne-Twister") [18:03:28.525] base::rm(list = ".Random.seed", envir = base::globalenv(), [18:03:28.525] inherits = FALSE) [18:03:28.525] } [18:03:28.525] options(future.plan = NULL) [18:03:28.525] if (is.na(NA_character_)) [18:03:28.525] Sys.unsetenv("R_FUTURE_PLAN") [18:03:28.525] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [18:03:28.525] future::plan(list(function (..., abc = FALSE, [18:03:28.525] envir = parent.frame()) [18:03:28.525] strategy(..., abc = abc, envir = envir)), .cleanup = FALSE, [18:03:28.525] .init = FALSE) [18:03:28.525] } [18:03:28.525] } [18:03:28.525] } [18:03:28.525] }) [18:03:28.525] if (TRUE) { [18:03:28.525] base::sink(type = "output", split = FALSE) [18:03:28.525] if (TRUE) { [18:03:28.525] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [18:03:28.525] } [18:03:28.525] else { [18:03:28.525] ...future.result["stdout"] <- base::list(NULL) [18:03:28.525] } [18:03:28.525] base::close(...future.stdout) [18:03:28.525] ...future.stdout <- NULL [18:03:28.525] } [18:03:28.525] ...future.result$conditions <- ...future.conditions [18:03:28.525] ...future.result$finished <- base::Sys.time() [18:03:28.525] ...future.result [18:03:28.525] } [18:03:28.529] plan(): Setting new future strategy stack: [18:03:28.529] List of future strategies: [18:03:28.529] 1. sequential: [18:03:28.529] - args: function (..., envir = parent.frame()) [18:03:28.529] - tweaked: FALSE [18:03:28.529] - call: NULL [18:03:28.529] plan(): nbrOfWorkers() = 1 [18:03:28.530] plan(): Setting new future strategy stack: [18:03:28.531] List of future strategies: [18:03:28.531] 1. sequential: [18:03:28.531] - args: function (..., abc = FALSE, envir = parent.frame()) [18:03:28.531] - tweaked: TRUE [18:03:28.531] - call: plan(sequential, abc = FALSE) [18:03:28.531] plan(): nbrOfWorkers() = 1 [18:03:28.531] SequentialFuture started (and completed) [18:03:28.532] - Launch lazy future ... done [18:03:28.532] run() for 'SequentialFuture' ... done > print(x) [1] 1 > stopifnot(a == 0, x == 1) > > x %<-% { a <- 2; a } %tweak% list(abc = TRUE) [18:03:28.533] plan(): Setting new future strategy stack: [18:03:28.533] List of future strategies: [18:03:28.533] 1. sequential: [18:03:28.533] - args: function (..., abc = TRUE, envir = parent.frame()) [18:03:28.533] - tweaked: TRUE [18:03:28.533] - call: plan(sequential, abc = FALSE) [18:03:28.533] plan(): nbrOfWorkers() = 1 [18:03:28.534] getGlobalsAndPackages() ... [18:03:28.534] Searching for globals... [18:03:28.535] - globals found: [2] '{', '<-' [18:03:28.535] Searching for globals ... DONE [18:03:28.535] Resolving globals: FALSE [18:03:28.536] [18:03:28.536] [18:03:28.536] getGlobalsAndPackages() ... DONE [18:03:28.536] run() for 'Future' ... [18:03:28.537] - state: 'created' [18:03:28.537] - Future backend: 'FutureStrategy', 'tweaked', 'tweaked', 'sequential', 'uniprocess', 'future', 'function' [18:03:28.537] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [18:03:28.537] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [18:03:28.538] - Field: 'label' [18:03:28.538] - Field: 'local' [18:03:28.538] - Field: 'owner' [18:03:28.538] - Field: 'envir' [18:03:28.538] - Field: 'packages' [18:03:28.539] - Field: 'gc' [18:03:28.539] - Field: 'conditions' [18:03:28.539] - Field: 'expr' [18:03:28.539] - Field: 'uuid' [18:03:28.539] - Field: 'seed' [18:03:28.539] - Field: 'version' [18:03:28.540] - Field: 'result' [18:03:28.540] - Field: 'asynchronous' [18:03:28.540] - Field: 'calls' [18:03:28.540] - Field: 'abc' [18:03:28.540] - Field: 'globals' [18:03:28.541] - Field: 'stdout' [18:03:28.541] - Field: 'earlySignal' [18:03:28.541] - Field: 'lazy' [18:03:28.541] - Field: 'state' [18:03:28.541] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [18:03:28.541] - Launch lazy future ... [18:03:28.542] Packages needed by the future expression (n = 0): [18:03:28.542] Packages needed by future strategies (n = 0): [18:03:28.543] { [18:03:28.543] { [18:03:28.543] { [18:03:28.543] ...future.startTime <- base::Sys.time() [18:03:28.543] { [18:03:28.543] { [18:03:28.543] { [18:03:28.543] base::local({ [18:03:28.543] has_future <- base::requireNamespace("future", [18:03:28.543] quietly = TRUE) [18:03:28.543] if (has_future) { [18:03:28.543] ns <- base::getNamespace("future") [18:03:28.543] version <- ns[[".package"]][["version"]] [18:03:28.543] if (is.null(version)) [18:03:28.543] version <- utils::packageVersion("future") [18:03:28.543] } [18:03:28.543] else { [18:03:28.543] version <- NULL [18:03:28.543] } [18:03:28.543] if (!has_future || version < "1.8.0") { [18:03:28.543] info <- base::c(r_version = base::gsub("R version ", [18:03:28.543] "", base::R.version$version.string), [18:03:28.543] platform = base::sprintf("%s (%s-bit)", [18:03:28.543] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [18:03:28.543] os = base::paste(base::Sys.info()[base::c("sysname", [18:03:28.543] "release", "version")], collapse = " "), [18:03:28.543] hostname = base::Sys.info()[["nodename"]]) [18:03:28.543] info <- base::sprintf("%s: %s", base::names(info), [18:03:28.543] info) [18:03:28.543] info <- base::paste(info, collapse = "; ") [18:03:28.543] if (!has_future) { [18:03:28.543] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [18:03:28.543] info) [18:03:28.543] } [18:03:28.543] else { [18:03:28.543] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [18:03:28.543] info, version) [18:03:28.543] } [18:03:28.543] base::stop(msg) [18:03:28.543] } [18:03:28.543] }) [18:03:28.543] } [18:03:28.543] options(future.plan = NULL) [18:03:28.543] Sys.unsetenv("R_FUTURE_PLAN") [18:03:28.543] future::plan("default", .cleanup = FALSE, .init = FALSE) [18:03:28.543] } [18:03:28.543] ...future.workdir <- getwd() [18:03:28.543] } [18:03:28.543] ...future.oldOptions <- base::as.list(base::.Options) [18:03:28.543] ...future.oldEnvVars <- base::Sys.getenv() [18:03:28.543] } [18:03:28.543] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [18:03:28.543] future.globals.maxSize = NULL, future.globals.method = NULL, [18:03:28.543] future.globals.onMissing = NULL, future.globals.onReference = NULL, [18:03:28.543] future.globals.resolve = NULL, future.resolve.recursive = NULL, [18:03:28.543] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [18:03:28.543] future.stdout.windows.reencode = NULL, width = 80L) [18:03:28.543] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [18:03:28.543] base::names(...future.oldOptions)) [18:03:28.543] } [18:03:28.543] if (FALSE) { [18:03:28.543] } [18:03:28.543] else { [18:03:28.543] if (TRUE) { [18:03:28.543] ...future.stdout <- base::rawConnection(base::raw(0L), [18:03:28.543] open = "w") [18:03:28.543] } [18:03:28.543] else { [18:03:28.543] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [18:03:28.543] windows = "NUL", "/dev/null"), open = "w") [18:03:28.543] } [18:03:28.543] base::sink(...future.stdout, type = "output", split = FALSE) [18:03:28.543] base::on.exit(if (!base::is.null(...future.stdout)) { [18:03:28.543] base::sink(type = "output", split = FALSE) [18:03:28.543] base::close(...future.stdout) [18:03:28.543] }, add = TRUE) [18:03:28.543] } [18:03:28.543] ...future.frame <- base::sys.nframe() [18:03:28.543] ...future.conditions <- base::list() [18:03:28.543] ...future.rng <- base::globalenv()$.Random.seed [18:03:28.543] if (FALSE) { [18:03:28.543] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [18:03:28.543] "...future.value", "...future.globalenv.names", ".Random.seed") [18:03:28.543] } [18:03:28.543] ...future.result <- base::tryCatch({ [18:03:28.543] base::withCallingHandlers({ [18:03:28.543] ...future.value <- base::withVisible(base::local({ [18:03:28.543] a <- 2 [18:03:28.543] a [18:03:28.543] })) [18:03:28.543] future::FutureResult(value = ...future.value$value, [18:03:28.543] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [18:03:28.543] ...future.rng), globalenv = if (FALSE) [18:03:28.543] list(added = base::setdiff(base::names(base::.GlobalEnv), [18:03:28.543] ...future.globalenv.names)) [18:03:28.543] else NULL, started = ...future.startTime, version = "1.8") [18:03:28.543] }, condition = base::local({ [18:03:28.543] c <- base::c [18:03:28.543] inherits <- base::inherits [18:03:28.543] invokeRestart <- base::invokeRestart [18:03:28.543] length <- base::length [18:03:28.543] list <- base::list [18:03:28.543] seq.int <- base::seq.int [18:03:28.543] signalCondition <- base::signalCondition [18:03:28.543] sys.calls <- base::sys.calls [18:03:28.543] `[[` <- base::`[[` [18:03:28.543] `+` <- base::`+` [18:03:28.543] `<<-` <- base::`<<-` [18:03:28.543] sysCalls <- function(calls = sys.calls(), from = 1L) { [18:03:28.543] calls[seq.int(from = from + 12L, to = length(calls) - [18:03:28.543] 3L)] [18:03:28.543] } [18:03:28.543] function(cond) { [18:03:28.543] is_error <- inherits(cond, "error") [18:03:28.543] ignore <- !is_error && !is.null(NULL) && inherits(cond, [18:03:28.543] NULL) [18:03:28.543] if (is_error) { [18:03:28.543] sessionInformation <- function() { [18:03:28.543] list(r = base::R.Version(), locale = base::Sys.getlocale(), [18:03:28.543] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [18:03:28.543] search = base::search(), system = base::Sys.info()) [18:03:28.543] } [18:03:28.543] ...future.conditions[[length(...future.conditions) + [18:03:28.543] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [18:03:28.543] cond$call), session = sessionInformation(), [18:03:28.543] timestamp = base::Sys.time(), signaled = 0L) [18:03:28.543] signalCondition(cond) [18:03:28.543] } [18:03:28.543] else if (!ignore && TRUE && inherits(cond, c("condition", [18:03:28.543] "immediateCondition"))) { [18:03:28.543] signal <- TRUE && inherits(cond, "immediateCondition") [18:03:28.543] ...future.conditions[[length(...future.conditions) + [18:03:28.543] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [18:03:28.543] if (TRUE && !signal) { [18:03:28.543] muffleCondition <- function (cond, pattern = "^muffle") [18:03:28.543] { [18:03:28.543] inherits <- base::inherits [18:03:28.543] invokeRestart <- base::invokeRestart [18:03:28.543] is.null <- base::is.null [18:03:28.543] muffled <- FALSE [18:03:28.543] if (inherits(cond, "message")) { [18:03:28.543] muffled <- grepl(pattern, "muffleMessage") [18:03:28.543] if (muffled) [18:03:28.543] invokeRestart("muffleMessage") [18:03:28.543] } [18:03:28.543] else if (inherits(cond, "warning")) { [18:03:28.543] muffled <- grepl(pattern, "muffleWarning") [18:03:28.543] if (muffled) [18:03:28.543] invokeRestart("muffleWarning") [18:03:28.543] } [18:03:28.543] else if (inherits(cond, "condition")) { [18:03:28.543] if (!is.null(pattern)) { [18:03:28.543] computeRestarts <- base::computeRestarts [18:03:28.543] grepl <- base::grepl [18:03:28.543] restarts <- computeRestarts(cond) [18:03:28.543] for (restart in restarts) { [18:03:28.543] name <- restart$name [18:03:28.543] if (is.null(name)) [18:03:28.543] next [18:03:28.543] if (!grepl(pattern, name)) [18:03:28.543] next [18:03:28.543] invokeRestart(restart) [18:03:28.543] muffled <- TRUE [18:03:28.543] break [18:03:28.543] } [18:03:28.543] } [18:03:28.543] } [18:03:28.543] invisible(muffled) [18:03:28.543] } [18:03:28.543] muffleCondition(cond, pattern = "^muffle") [18:03:28.543] } [18:03:28.543] } [18:03:28.543] else { [18:03:28.543] if (TRUE) { [18:03:28.543] muffleCondition <- function (cond, pattern = "^muffle") [18:03:28.543] { [18:03:28.543] inherits <- base::inherits [18:03:28.543] invokeRestart <- base::invokeRestart [18:03:28.543] is.null <- base::is.null [18:03:28.543] muffled <- FALSE [18:03:28.543] if (inherits(cond, "message")) { [18:03:28.543] muffled <- grepl(pattern, "muffleMessage") [18:03:28.543] if (muffled) [18:03:28.543] invokeRestart("muffleMessage") [18:03:28.543] } [18:03:28.543] else if (inherits(cond, "warning")) { [18:03:28.543] muffled <- grepl(pattern, "muffleWarning") [18:03:28.543] if (muffled) [18:03:28.543] invokeRestart("muffleWarning") [18:03:28.543] } [18:03:28.543] else if (inherits(cond, "condition")) { [18:03:28.543] if (!is.null(pattern)) { [18:03:28.543] computeRestarts <- base::computeRestarts [18:03:28.543] grepl <- base::grepl [18:03:28.543] restarts <- computeRestarts(cond) [18:03:28.543] for (restart in restarts) { [18:03:28.543] name <- restart$name [18:03:28.543] if (is.null(name)) [18:03:28.543] next [18:03:28.543] if (!grepl(pattern, name)) [18:03:28.543] next [18:03:28.543] invokeRestart(restart) [18:03:28.543] muffled <- TRUE [18:03:28.543] break [18:03:28.543] } [18:03:28.543] } [18:03:28.543] } [18:03:28.543] invisible(muffled) [18:03:28.543] } [18:03:28.543] muffleCondition(cond, pattern = "^muffle") [18:03:28.543] } [18:03:28.543] } [18:03:28.543] } [18:03:28.543] })) [18:03:28.543] }, error = function(ex) { [18:03:28.543] base::structure(base::list(value = NULL, visible = NULL, [18:03:28.543] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [18:03:28.543] ...future.rng), started = ...future.startTime, [18:03:28.543] finished = Sys.time(), session_uuid = NA_character_, [18:03:28.543] version = "1.8"), class = "FutureResult") [18:03:28.543] }, finally = { [18:03:28.543] if (!identical(...future.workdir, getwd())) [18:03:28.543] setwd(...future.workdir) [18:03:28.543] { [18:03:28.543] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [18:03:28.543] ...future.oldOptions$nwarnings <- NULL [18:03:28.543] } [18:03:28.543] base::options(...future.oldOptions) [18:03:28.543] if (.Platform$OS.type == "windows") { [18:03:28.543] old_names <- names(...future.oldEnvVars) [18:03:28.543] envs <- base::Sys.getenv() [18:03:28.543] names <- names(envs) [18:03:28.543] common <- intersect(names, old_names) [18:03:28.543] added <- setdiff(names, old_names) [18:03:28.543] removed <- setdiff(old_names, names) [18:03:28.543] changed <- common[...future.oldEnvVars[common] != [18:03:28.543] envs[common]] [18:03:28.543] NAMES <- toupper(changed) [18:03:28.543] args <- list() [18:03:28.543] for (kk in seq_along(NAMES)) { [18:03:28.543] name <- changed[[kk]] [18:03:28.543] NAME <- NAMES[[kk]] [18:03:28.543] if (name != NAME && is.element(NAME, old_names)) [18:03:28.543] next [18:03:28.543] args[[name]] <- ...future.oldEnvVars[[name]] [18:03:28.543] } [18:03:28.543] NAMES <- toupper(added) [18:03:28.543] for (kk in seq_along(NAMES)) { [18:03:28.543] name <- added[[kk]] [18:03:28.543] NAME <- NAMES[[kk]] [18:03:28.543] if (name != NAME && is.element(NAME, old_names)) [18:03:28.543] next [18:03:28.543] args[[name]] <- "" [18:03:28.543] } [18:03:28.543] NAMES <- toupper(removed) [18:03:28.543] for (kk in seq_along(NAMES)) { [18:03:28.543] name <- removed[[kk]] [18:03:28.543] NAME <- NAMES[[kk]] [18:03:28.543] if (name != NAME && is.element(NAME, old_names)) [18:03:28.543] next [18:03:28.543] args[[name]] <- ...future.oldEnvVars[[name]] [18:03:28.543] } [18:03:28.543] if (length(args) > 0) [18:03:28.543] base::do.call(base::Sys.setenv, args = args) [18:03:28.543] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [18:03:28.543] } [18:03:28.543] else { [18:03:28.543] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [18:03:28.543] } [18:03:28.543] { [18:03:28.543] if (base::length(...future.futureOptionsAdded) > [18:03:28.543] 0L) { [18:03:28.543] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [18:03:28.543] base::names(opts) <- ...future.futureOptionsAdded [18:03:28.543] base::options(opts) [18:03:28.543] } [18:03:28.543] { [18:03:28.543] { [18:03:28.543] NULL [18:03:28.543] RNGkind("Mersenne-Twister") [18:03:28.543] base::rm(list = ".Random.seed", envir = base::globalenv(), [18:03:28.543] inherits = FALSE) [18:03:28.543] } [18:03:28.543] options(future.plan = NULL) [18:03:28.543] if (is.na(NA_character_)) [18:03:28.543] Sys.unsetenv("R_FUTURE_PLAN") [18:03:28.543] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [18:03:28.543] future::plan(list(function (..., abc = TRUE, [18:03:28.543] envir = parent.frame()) [18:03:28.543] strategy(..., abc = abc, envir = envir)), .cleanup = FALSE, [18:03:28.543] .init = FALSE) [18:03:28.543] } [18:03:28.543] } [18:03:28.543] } [18:03:28.543] }) [18:03:28.543] if (TRUE) { [18:03:28.543] base::sink(type = "output", split = FALSE) [18:03:28.543] if (TRUE) { [18:03:28.543] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [18:03:28.543] } [18:03:28.543] else { [18:03:28.543] ...future.result["stdout"] <- base::list(NULL) [18:03:28.543] } [18:03:28.543] base::close(...future.stdout) [18:03:28.543] ...future.stdout <- NULL [18:03:28.543] } [18:03:28.543] ...future.result$conditions <- ...future.conditions [18:03:28.543] ...future.result$finished <- base::Sys.time() [18:03:28.543] ...future.result [18:03:28.543] } [18:03:28.547] plan(): Setting new future strategy stack: [18:03:28.547] List of future strategies: [18:03:28.547] 1. sequential: [18:03:28.547] - args: function (..., envir = parent.frame()) [18:03:28.547] - tweaked: FALSE [18:03:28.547] - call: NULL [18:03:28.547] plan(): nbrOfWorkers() = 1 [18:03:28.548] plan(): Setting new future strategy stack: [18:03:28.549] List of future strategies: [18:03:28.549] 1. sequential: [18:03:28.549] - args: function (..., abc = TRUE, envir = parent.frame()) [18:03:28.549] - tweaked: TRUE [18:03:28.549] - call: plan(sequential, abc = FALSE) [18:03:28.549] plan(): nbrOfWorkers() = 1 [18:03:28.549] SequentialFuture started (and completed) [18:03:28.550] - Launch lazy future ... done [18:03:28.550] run() for 'SequentialFuture' ... done [18:03:28.550] plan(): Setting new future strategy stack: [18:03:28.550] List of future strategies: [18:03:28.550] 1. sequential: [18:03:28.550] - args: function (..., abc = FALSE, envir = parent.frame()) [18:03:28.550] - tweaked: TRUE [18:03:28.550] - call: plan(sequential, abc = FALSE) [18:03:28.551] plan(): nbrOfWorkers() = 1 > print(x) [1] 2 > stopifnot(a == 0, x == 2) > > > # Preserve nested futures > plan(list(A = sequential, B = tweak(sequential, abc = FALSE))) Warning: Detected 1 unknown future arguments: 'abc' [18:03:28.551] plan(): Setting new future strategy stack: [18:03:28.552] List of future strategies: [18:03:28.552] 1. sequential: [18:03:28.552] - args: function (..., envir = parent.frame()) [18:03:28.552] - tweaked: FALSE [18:03:28.552] - call: plan(list(A = sequential, B = tweak(sequential, abc = FALSE))) [18:03:28.552] 2. sequential: [18:03:28.552] - args: function (..., abc = FALSE, envir = parent.frame()) [18:03:28.552] - tweaked: TRUE [18:03:28.552] - call: plan(list(A = sequential, B = tweak(sequential, abc = FALSE))) [18:03:28.552] plan(): nbrOfWorkers() = 1 > a <- 0 > > x %<-% { + stopifnot(identical(names(plan("list")), "B")) + a <- 1 + a + } [18:03:28.553] getGlobalsAndPackages() ... [18:03:28.553] Searching for globals... [18:03:28.557] - globals found: [6] '{', 'stopifnot', 'identical', 'names', 'plan', '<-' [18:03:28.558] Searching for globals ... DONE [18:03:28.558] Resolving globals: FALSE [18:03:28.559] The total size of the 1 globals is 403.23 KiB (412912 bytes) [18:03:28.560] The total size of the 1 globals exported for future expression ('{; stopifnot(identical(names(plan("list")), "B")); a <- 1; a; }') is 403.23 KiB.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'plan' (403.23 KiB of class 'function') [18:03:28.560] - globals: [1] 'plan' [18:03:28.560] [18:03:28.560] getGlobalsAndPackages() ... DONE [18:03:28.561] run() for 'Future' ... [18:03:28.561] - state: 'created' [18:03:28.561] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [18:03:28.561] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [18:03:28.562] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [18:03:28.562] - Field: 'label' [18:03:28.562] - Field: 'local' [18:03:28.562] - Field: 'owner' [18:03:28.562] - Field: 'envir' [18:03:28.563] - Field: 'packages' [18:03:28.563] - Field: 'gc' [18:03:28.563] - Field: 'conditions' [18:03:28.563] - Field: 'expr' [18:03:28.563] - Field: 'uuid' [18:03:28.564] - Field: 'seed' [18:03:28.564] - Field: 'version' [18:03:28.564] - Field: 'result' [18:03:28.564] - Field: 'asynchronous' [18:03:28.564] - Field: 'calls' [18:03:28.564] - Field: 'globals' [18:03:28.565] - Field: 'stdout' [18:03:28.565] - Field: 'earlySignal' [18:03:28.565] - Field: 'lazy' [18:03:28.565] - Field: 'state' [18:03:28.565] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [18:03:28.566] - Launch lazy future ... [18:03:28.566] Packages needed by the future expression (n = 0): [18:03:28.566] Packages needed by future strategies (n = 0): [18:03:28.567] { [18:03:28.567] { [18:03:28.567] { [18:03:28.567] ...future.startTime <- base::Sys.time() [18:03:28.567] { [18:03:28.567] { [18:03:28.567] { [18:03:28.567] base::local({ [18:03:28.567] has_future <- base::requireNamespace("future", [18:03:28.567] quietly = TRUE) [18:03:28.567] if (has_future) { [18:03:28.567] ns <- base::getNamespace("future") [18:03:28.567] version <- ns[[".package"]][["version"]] [18:03:28.567] if (is.null(version)) [18:03:28.567] version <- utils::packageVersion("future") [18:03:28.567] } [18:03:28.567] else { [18:03:28.567] version <- NULL [18:03:28.567] } [18:03:28.567] if (!has_future || version < "1.8.0") { [18:03:28.567] info <- base::c(r_version = base::gsub("R version ", [18:03:28.567] "", base::R.version$version.string), [18:03:28.567] platform = base::sprintf("%s (%s-bit)", [18:03:28.567] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [18:03:28.567] os = base::paste(base::Sys.info()[base::c("sysname", [18:03:28.567] "release", "version")], collapse = " "), [18:03:28.567] hostname = base::Sys.info()[["nodename"]]) [18:03:28.567] info <- base::sprintf("%s: %s", base::names(info), [18:03:28.567] info) [18:03:28.567] info <- base::paste(info, collapse = "; ") [18:03:28.567] if (!has_future) { [18:03:28.567] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [18:03:28.567] info) [18:03:28.567] } [18:03:28.567] else { [18:03:28.567] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [18:03:28.567] info, version) [18:03:28.567] } [18:03:28.567] base::stop(msg) [18:03:28.567] } [18:03:28.567] }) [18:03:28.567] } [18:03:28.567] options(future.plan = NULL) [18:03:28.567] Sys.unsetenv("R_FUTURE_PLAN") [18:03:28.567] future::plan(list(B = function (..., abc = FALSE, [18:03:28.567] envir = parent.frame()) [18:03:28.567] strategy(..., abc = abc, envir = envir)), .cleanup = FALSE, [18:03:28.567] .init = FALSE) [18:03:28.567] } [18:03:28.567] ...future.workdir <- getwd() [18:03:28.567] } [18:03:28.567] ...future.oldOptions <- base::as.list(base::.Options) [18:03:28.567] ...future.oldEnvVars <- base::Sys.getenv() [18:03:28.567] } [18:03:28.567] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [18:03:28.567] future.globals.maxSize = NULL, future.globals.method = NULL, [18:03:28.567] future.globals.onMissing = NULL, future.globals.onReference = NULL, [18:03:28.567] future.globals.resolve = NULL, future.resolve.recursive = NULL, [18:03:28.567] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [18:03:28.567] future.stdout.windows.reencode = NULL, width = 80L) [18:03:28.567] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [18:03:28.567] base::names(...future.oldOptions)) [18:03:28.567] } [18:03:28.567] if (FALSE) { [18:03:28.567] } [18:03:28.567] else { [18:03:28.567] if (TRUE) { [18:03:28.567] ...future.stdout <- base::rawConnection(base::raw(0L), [18:03:28.567] open = "w") [18:03:28.567] } [18:03:28.567] else { [18:03:28.567] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [18:03:28.567] windows = "NUL", "/dev/null"), open = "w") [18:03:28.567] } [18:03:28.567] base::sink(...future.stdout, type = "output", split = FALSE) [18:03:28.567] base::on.exit(if (!base::is.null(...future.stdout)) { [18:03:28.567] base::sink(type = "output", split = FALSE) [18:03:28.567] base::close(...future.stdout) [18:03:28.567] }, add = TRUE) [18:03:28.567] } [18:03:28.567] ...future.frame <- base::sys.nframe() [18:03:28.567] ...future.conditions <- base::list() [18:03:28.567] ...future.rng <- base::globalenv()$.Random.seed [18:03:28.567] if (FALSE) { [18:03:28.567] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [18:03:28.567] "...future.value", "...future.globalenv.names", ".Random.seed") [18:03:28.567] } [18:03:28.567] ...future.result <- base::tryCatch({ [18:03:28.567] base::withCallingHandlers({ [18:03:28.567] ...future.value <- base::withVisible(base::local({ [18:03:28.567] stopifnot(identical(names(plan("list")), "B")) [18:03:28.567] a <- 1 [18:03:28.567] a [18:03:28.567] })) [18:03:28.567] future::FutureResult(value = ...future.value$value, [18:03:28.567] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [18:03:28.567] ...future.rng), globalenv = if (FALSE) [18:03:28.567] list(added = base::setdiff(base::names(base::.GlobalEnv), [18:03:28.567] ...future.globalenv.names)) [18:03:28.567] else NULL, started = ...future.startTime, version = "1.8") [18:03:28.567] }, condition = base::local({ [18:03:28.567] c <- base::c [18:03:28.567] inherits <- base::inherits [18:03:28.567] invokeRestart <- base::invokeRestart [18:03:28.567] length <- base::length [18:03:28.567] list <- base::list [18:03:28.567] seq.int <- base::seq.int [18:03:28.567] signalCondition <- base::signalCondition [18:03:28.567] sys.calls <- base::sys.calls [18:03:28.567] `[[` <- base::`[[` [18:03:28.567] `+` <- base::`+` [18:03:28.567] `<<-` <- base::`<<-` [18:03:28.567] sysCalls <- function(calls = sys.calls(), from = 1L) { [18:03:28.567] calls[seq.int(from = from + 12L, to = length(calls) - [18:03:28.567] 3L)] [18:03:28.567] } [18:03:28.567] function(cond) { [18:03:28.567] is_error <- inherits(cond, "error") [18:03:28.567] ignore <- !is_error && !is.null(NULL) && inherits(cond, [18:03:28.567] NULL) [18:03:28.567] if (is_error) { [18:03:28.567] sessionInformation <- function() { [18:03:28.567] list(r = base::R.Version(), locale = base::Sys.getlocale(), [18:03:28.567] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [18:03:28.567] search = base::search(), system = base::Sys.info()) [18:03:28.567] } [18:03:28.567] ...future.conditions[[length(...future.conditions) + [18:03:28.567] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [18:03:28.567] cond$call), session = sessionInformation(), [18:03:28.567] timestamp = base::Sys.time(), signaled = 0L) [18:03:28.567] signalCondition(cond) [18:03:28.567] } [18:03:28.567] else if (!ignore && TRUE && inherits(cond, c("condition", [18:03:28.567] "immediateCondition"))) { [18:03:28.567] signal <- TRUE && inherits(cond, "immediateCondition") [18:03:28.567] ...future.conditions[[length(...future.conditions) + [18:03:28.567] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [18:03:28.567] if (TRUE && !signal) { [18:03:28.567] muffleCondition <- function (cond, pattern = "^muffle") [18:03:28.567] { [18:03:28.567] inherits <- base::inherits [18:03:28.567] invokeRestart <- base::invokeRestart [18:03:28.567] is.null <- base::is.null [18:03:28.567] muffled <- FALSE [18:03:28.567] if (inherits(cond, "message")) { [18:03:28.567] muffled <- grepl(pattern, "muffleMessage") [18:03:28.567] if (muffled) [18:03:28.567] invokeRestart("muffleMessage") [18:03:28.567] } [18:03:28.567] else if (inherits(cond, "warning")) { [18:03:28.567] muffled <- grepl(pattern, "muffleWarning") [18:03:28.567] if (muffled) [18:03:28.567] invokeRestart("muffleWarning") [18:03:28.567] } [18:03:28.567] else if (inherits(cond, "condition")) { [18:03:28.567] if (!is.null(pattern)) { [18:03:28.567] computeRestarts <- base::computeRestarts [18:03:28.567] grepl <- base::grepl [18:03:28.567] restarts <- computeRestarts(cond) [18:03:28.567] for (restart in restarts) { [18:03:28.567] name <- restart$name [18:03:28.567] if (is.null(name)) [18:03:28.567] next [18:03:28.567] if (!grepl(pattern, name)) [18:03:28.567] next [18:03:28.567] invokeRestart(restart) [18:03:28.567] muffled <- TRUE [18:03:28.567] break [18:03:28.567] } [18:03:28.567] } [18:03:28.567] } [18:03:28.567] invisible(muffled) [18:03:28.567] } [18:03:28.567] muffleCondition(cond, pattern = "^muffle") [18:03:28.567] } [18:03:28.567] } [18:03:28.567] else { [18:03:28.567] if (TRUE) { [18:03:28.567] muffleCondition <- function (cond, pattern = "^muffle") [18:03:28.567] { [18:03:28.567] inherits <- base::inherits [18:03:28.567] invokeRestart <- base::invokeRestart [18:03:28.567] is.null <- base::is.null [18:03:28.567] muffled <- FALSE [18:03:28.567] if (inherits(cond, "message")) { [18:03:28.567] muffled <- grepl(pattern, "muffleMessage") [18:03:28.567] if (muffled) [18:03:28.567] invokeRestart("muffleMessage") [18:03:28.567] } [18:03:28.567] else if (inherits(cond, "warning")) { [18:03:28.567] muffled <- grepl(pattern, "muffleWarning") [18:03:28.567] if (muffled) [18:03:28.567] invokeRestart("muffleWarning") [18:03:28.567] } [18:03:28.567] else if (inherits(cond, "condition")) { [18:03:28.567] if (!is.null(pattern)) { [18:03:28.567] computeRestarts <- base::computeRestarts [18:03:28.567] grepl <- base::grepl [18:03:28.567] restarts <- computeRestarts(cond) [18:03:28.567] for (restart in restarts) { [18:03:28.567] name <- restart$name [18:03:28.567] if (is.null(name)) [18:03:28.567] next [18:03:28.567] if (!grepl(pattern, name)) [18:03:28.567] next [18:03:28.567] invokeRestart(restart) [18:03:28.567] muffled <- TRUE [18:03:28.567] break [18:03:28.567] } [18:03:28.567] } [18:03:28.567] } [18:03:28.567] invisible(muffled) [18:03:28.567] } [18:03:28.567] muffleCondition(cond, pattern = "^muffle") [18:03:28.567] } [18:03:28.567] } [18:03:28.567] } [18:03:28.567] })) [18:03:28.567] }, error = function(ex) { [18:03:28.567] base::structure(base::list(value = NULL, visible = NULL, [18:03:28.567] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [18:03:28.567] ...future.rng), started = ...future.startTime, [18:03:28.567] finished = Sys.time(), session_uuid = NA_character_, [18:03:28.567] version = "1.8"), class = "FutureResult") [18:03:28.567] }, finally = { [18:03:28.567] if (!identical(...future.workdir, getwd())) [18:03:28.567] setwd(...future.workdir) [18:03:28.567] { [18:03:28.567] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [18:03:28.567] ...future.oldOptions$nwarnings <- NULL [18:03:28.567] } [18:03:28.567] base::options(...future.oldOptions) [18:03:28.567] if (.Platform$OS.type == "windows") { [18:03:28.567] old_names <- names(...future.oldEnvVars) [18:03:28.567] envs <- base::Sys.getenv() [18:03:28.567] names <- names(envs) [18:03:28.567] common <- intersect(names, old_names) [18:03:28.567] added <- setdiff(names, old_names) [18:03:28.567] removed <- setdiff(old_names, names) [18:03:28.567] changed <- common[...future.oldEnvVars[common] != [18:03:28.567] envs[common]] [18:03:28.567] NAMES <- toupper(changed) [18:03:28.567] args <- list() [18:03:28.567] for (kk in seq_along(NAMES)) { [18:03:28.567] name <- changed[[kk]] [18:03:28.567] NAME <- NAMES[[kk]] [18:03:28.567] if (name != NAME && is.element(NAME, old_names)) [18:03:28.567] next [18:03:28.567] args[[name]] <- ...future.oldEnvVars[[name]] [18:03:28.567] } [18:03:28.567] NAMES <- toupper(added) [18:03:28.567] for (kk in seq_along(NAMES)) { [18:03:28.567] name <- added[[kk]] [18:03:28.567] NAME <- NAMES[[kk]] [18:03:28.567] if (name != NAME && is.element(NAME, old_names)) [18:03:28.567] next [18:03:28.567] args[[name]] <- "" [18:03:28.567] } [18:03:28.567] NAMES <- toupper(removed) [18:03:28.567] for (kk in seq_along(NAMES)) { [18:03:28.567] name <- removed[[kk]] [18:03:28.567] NAME <- NAMES[[kk]] [18:03:28.567] if (name != NAME && is.element(NAME, old_names)) [18:03:28.567] next [18:03:28.567] args[[name]] <- ...future.oldEnvVars[[name]] [18:03:28.567] } [18:03:28.567] if (length(args) > 0) [18:03:28.567] base::do.call(base::Sys.setenv, args = args) [18:03:28.567] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [18:03:28.567] } [18:03:28.567] else { [18:03:28.567] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [18:03:28.567] } [18:03:28.567] { [18:03:28.567] if (base::length(...future.futureOptionsAdded) > [18:03:28.567] 0L) { [18:03:28.567] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [18:03:28.567] base::names(opts) <- ...future.futureOptionsAdded [18:03:28.567] base::options(opts) [18:03:28.567] } [18:03:28.567] { [18:03:28.567] { [18:03:28.567] NULL [18:03:28.567] RNGkind("Mersenne-Twister") [18:03:28.567] base::rm(list = ".Random.seed", envir = base::globalenv(), [18:03:28.567] inherits = FALSE) [18:03:28.567] } [18:03:28.567] options(future.plan = NULL) [18:03:28.567] if (is.na(NA_character_)) [18:03:28.567] Sys.unsetenv("R_FUTURE_PLAN") [18:03:28.567] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [18:03:28.567] future::plan(list(A = function (..., envir = parent.frame()) [18:03:28.567] { [18:03:28.567] future <- SequentialFuture(..., envir = envir) [18:03:28.567] if (!future$lazy) [18:03:28.567] future <- run(future) [18:03:28.567] invisible(future) [18:03:28.567] }, B = function (..., abc = FALSE, envir = parent.frame()) [18:03:28.567] strategy(..., abc = abc, envir = envir)), .cleanup = FALSE, [18:03:28.567] .init = FALSE) [18:03:28.567] } [18:03:28.567] } [18:03:28.567] } [18:03:28.567] }) [18:03:28.567] if (TRUE) { [18:03:28.567] base::sink(type = "output", split = FALSE) [18:03:28.567] if (TRUE) { [18:03:28.567] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [18:03:28.567] } [18:03:28.567] else { [18:03:28.567] ...future.result["stdout"] <- base::list(NULL) [18:03:28.567] } [18:03:28.567] base::close(...future.stdout) [18:03:28.567] ...future.stdout <- NULL [18:03:28.567] } [18:03:28.567] ...future.result$conditions <- ...future.conditions [18:03:28.567] ...future.result$finished <- base::Sys.time() [18:03:28.567] ...future.result [18:03:28.567] } [18:03:28.571] assign_globals() ... [18:03:28.571] List of 1 [18:03:28.571] $ plan:function (strategy = NULL, ..., substitute = TRUE, .skip = FALSE, .call = TRUE, [18:03:28.571] .cleanup = TRUE, .init = TRUE) [18:03:28.571] - attr(*, "where")=List of 1 [18:03:28.571] ..$ plan: [18:03:28.571] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list" [18:03:28.571] - attr(*, "resolved")= logi FALSE [18:03:28.571] - attr(*, "total_size")= num 412912 [18:03:28.571] - attr(*, "already-done")= logi TRUE [18:03:28.574] - copied 'plan' to environment [18:03:28.574] assign_globals() ... done [18:03:28.575] plan(): Setting new future strategy stack: [18:03:28.575] List of future strategies: [18:03:28.575] 1. sequential: [18:03:28.575] - args: function (..., abc = FALSE, envir = parent.frame()) [18:03:28.575] - tweaked: TRUE [18:03:28.575] - call: plan(list(A = sequential, B = tweak(sequential, abc = FALSE))) [18:03:28.575] plan(): nbrOfWorkers() = 1 [18:03:28.577] plan(): Setting new future strategy stack: [18:03:28.577] List of future strategies: [18:03:28.577] 1. sequential: [18:03:28.577] - args: function (..., envir = parent.frame()) [18:03:28.577] - tweaked: FALSE [18:03:28.577] - call: plan(list(A = sequential, B = tweak(sequential, abc = FALSE))) [18:03:28.577] 2. sequential: [18:03:28.577] - args: function (..., abc = FALSE, envir = parent.frame()) [18:03:28.577] - tweaked: TRUE [18:03:28.577] - call: plan(list(A = sequential, B = tweak(sequential, abc = FALSE))) [18:03:28.577] plan(): nbrOfWorkers() = 1 [18:03:28.578] SequentialFuture started (and completed) [18:03:28.578] - Launch lazy future ... done [18:03:28.578] run() for 'SequentialFuture' ... done > print(x) [1] 1 > stopifnot(a == 0, x == 1) > > > message("*** y %<-% { expr } %tweak% tweaks ... DONE") *** y %<-% { expr } %tweak% tweaks ... DONE > > > message("*** tweak() - abc = TRUE ...") *** tweak() - abc = TRUE ... > > res <- tryCatch(tweak(multisession, gc = TRUE), condition = identity) > stopifnot(inherits(res, "tweaked")) > > ## Argument 'gc' is unknown > res <- tryCatch(tweak(sequential, abc = TRUE), condition = identity) > stopifnot(inherits(res, "warning")) > > res <- tryCatch(tweak(multicore, abc = TRUE), condition = identity) > stopifnot(inherits(res, "warning")) > > message("*** tweak() - abc = TRUE ... DONE") *** tweak() - abc = TRUE ... DONE > > > message("*** tweak() - odds and ends ...") *** tweak() - odds and ends ... > > ## BUG: getGlobalsAndPackages(Formula::Formula(~ x)) would produce > ## "the condition has length > 1" warnings. > ## https://github.com/HenrikBengtsson/future/issues/395 > length.Formula <- function(x) c(1L, 1L) > expr <- structure(y ~ x, class = "Formula") > stopifnot(length(length(expr)) == 2L) > gp <- future::getGlobalsAndPackages(expr) [18:03:28.580] getGlobalsAndPackages() ... [18:03:28.580] Searching for globals... [18:03:28.583] - globals found: [4] '{', 'y', 'x', '~' [18:03:28.583] Searching for globals ... DONE [18:03:28.583] Resolving globals: FALSE [18:03:28.584] The total size of the 1 globals is 56 bytes (56 bytes) [18:03:28.584] The total size of the 1 globals exported for future expression ('y ~ x') is 56 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'x' (56 bytes of class 'numeric') [18:03:28.584] - globals: [1] 'x' [18:03:28.585] [18:03:28.585] getGlobalsAndPackages() ... DONE > stopifnot( + !inherits(gp, "error"), + is.list(gp), + all(c("expr", "globals", "packages") %in% names(gp)) + ) > > message("*** tweak() - odds and ends ... DONE") *** tweak() - odds and ends ... DONE > > > message("*** tweak() - exceptions ...") *** tweak() - exceptions ... > > res <- try(tweak(""), silent = TRUE) > stopifnot(inherits(res, "try-error")) > > res <- try(tweak(base::eval), silent = TRUE) > stopifnot(inherits(res, "try-error")) > > res <- try(tweak(sequential, "unnamed-argument"), silent = TRUE) > stopifnot(inherits(res, "try-error")) > > ## Arguments that must not be tweaked > res <- try(tweak(sequential, lazy = TRUE), silent = TRUE) > stopifnot(inherits(res, "try-error")) > > res <- try(tweak(sequential, asynchronous = FALSE), silent = TRUE) > stopifnot(inherits(res, "try-error")) > > res <- try(tweak(sequential, seed = 42L), silent = TRUE) > stopifnot(inherits(res, "try-error")) > > message("*** tweak() - exceptions ... DONE") *** tweak() - exceptions ... DONE > > > message("*** Tweaking future strategies ... DONE") *** Tweaking future strategies ... DONE > > source("incl/end.R") [18:03:28.632] plan(): Setting new future strategy stack: [18:03:28.632] List of future strategies: [18:03:28.632] 1. FutureStrategy: [18:03:28.632] - args: function (..., envir = parent.frame()) [18:03:28.632] - tweaked: FALSE [18:03:28.632] - call: future::plan(oplan) [18:03:28.633] plan(): nbrOfWorkers() = 1 Failed to undo environment variables: - Expected environment variables: [n=201] '!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', 'OMP_THREAD_LIMIT', 'OS', 'PATH', 'PATHEXT', 'PROCESSOR_ARCHITECTURE', 'PROCESSOR_IDENTIFIER', 'PROCESSOR_LEVEL', 'PROCESSOR_REVISION', 'PROGRAMFILES', 'PROMPT', 'PSModulePath', 'PUBLIC', 'PWD', 'ProgramData', 'ProgramFiles(x86)', 'ProgramW6432', 'RETICULATE_AUTOCONFIGURE', 'RTOOLS43_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_RTOOLS43_PATH', 'R_SCRIPT_LEGACY', 'R_SHARE_DIR', '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_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_MATRIX_DATA_', '_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_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_SUBDIRS_STRICT_', '_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_USE_ALIASES_FROM_CRAN_', '_R_CLASS_MATRIX_ARRAY_', '_R_INSTALL_TIME_PATCHES_', '_R_S3_METHOD_LOOKUP_BASEENV_AFTER_GLOBALENV_', '_R_SHLIB_BUILD_OBJECTS_SYMBOL_TABLES_', 'maj.version', 'nextArg--timingsnextArg--install' - Environment variables still there: [n=0] - Environment variables missing: [n=1] 'MAKEFLAGS' Differences environment variable by environment variable: List of 3 $ name : chr "MAKEFLAGS" $ expected: 'Dlist' chr "" $ actual : 'Dlist' chr NA > > proc.time() user system elapsed 0.50 0.10 1.35