R Under development (unstable) (2023-12-20 r85713 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") [01:29:39.708] plan(): Setting new future strategy stack: [01:29:39.710] List of future strategies: [01:29:39.710] 1. sequential: [01:29:39.710] - args: function (..., envir = parent.frame(), workers = "") [01:29:39.710] - tweaked: FALSE [01:29:39.710] - call: future::plan("sequential") [01:29:39.739] 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") [01:29:39.755] Option 'future.startup.script': TRUE [01:29:39.755] Future startup scripts considered: '.future.R', '~/.future.R' [01:29:39.755] 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 [01:29:39.783] [local output] makeClusterPSOCK() ... [01:29:39.851] [local output] Workers: [n = 1] 'localhost' [01:29:39.858] [local output] Base port: 27464 [01:29:39.858] [local output] Getting setup options for 1 cluster nodes ... [01:29:39.859] [local output] - Node 1 of 1 ... [01:29:39.859] [local output] localMachine=TRUE => revtunnel=FALSE [01:29:39.861] Testing if worker's PID can be inferred: '"D:/RCompile/recent/R/bin/x64/Rscript" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpiauStq/worker.rank=1.parallelly.parent=5224.1468372c37.pid\")), silent = TRUE)" -e "file.exists(\"D:/temp/RtmpiauStq/worker.rank=1.parallelly.parent=5224.1468372c37.pid\")"' [01:29:40.082] - Possible to infer worker's PID: TRUE [01:29:40.082] [local output] Rscript port: 27464 [01:29:40.083] [local output] Getting setup options for 1 cluster nodes ... done [01:29:40.083] [local output] - Parallel setup requested for some PSOCK nodes [01:29:40.084] [local output] Setting up PSOCK nodes in parallel [01:29:40.085] List of 36 [01:29:40.085] $ worker : chr "localhost" [01:29:40.085] ..- attr(*, "localhost")= logi TRUE [01:29:40.085] $ master : chr "localhost" [01:29:40.085] $ port : int 27464 [01:29:40.085] $ connectTimeout : num 120 [01:29:40.085] $ timeout : num 120 [01:29:40.085] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [01:29:40.085] $ homogeneous : logi TRUE [01:29:40.085] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=tweak.R:5224:CRANWIN3:CRAN\" -e "| __truncated__ [01:29:40.085] $ rscript_envs : NULL [01:29:40.085] $ rscript_libs : NULL [01:29:40.085] $ rscript_startup : NULL [01:29:40.085] $ rscript_sh : chr "cmd" [01:29:40.085] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [01:29:40.085] $ methods : logi TRUE [01:29:40.085] $ socketOptions : chr "no-delay" [01:29:40.085] $ useXDR : logi FALSE [01:29:40.085] $ outfile : chr "/dev/null" [01:29:40.085] $ renice : int NA [01:29:40.085] $ rshcmd : NULL [01:29:40.085] $ user : chr(0) [01:29:40.085] $ revtunnel : logi FALSE [01:29:40.085] $ rshlogfile : NULL [01:29:40.085] $ rshopts : chr(0) [01:29:40.085] $ rank : int 1 [01:29:40.085] $ manual : logi FALSE [01:29:40.085] $ dryrun : logi FALSE [01:29:40.085] $ quiet : logi FALSE [01:29:40.085] $ setup_strategy : chr "parallel" [01:29:40.085] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [01:29:40.085] $ pidfile : chr "D:/temp/RtmpiauStq/worker.rank=1.parallelly.parent=5224.1468372c37.pid" [01:29:40.085] $ rshcmd_label : NULL [01:29:40.085] $ rsh_call : NULL [01:29:40.085] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [01:29:40.085] $ localMachine : logi TRUE [01:29:40.085] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [01:29:40.085] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [01:29:40.085] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [01:29:40.085] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [01:29:40.085] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [01:29:40.085] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [01:29:40.085] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [01:29:40.085] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [01:29:40.085] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [01:29:40.085] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [01:29:40.085] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [01:29:40.085] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [01:29:40.085] "parallel"), action = c("launch", "options"), verbose = FALSE) [01:29:40.085] $ arguments :List of 28 [01:29:40.085] ..$ worker : chr "localhost" [01:29:40.085] ..$ master : NULL [01:29:40.085] ..$ port : int 27464 [01:29:40.085] ..$ connectTimeout : num 120 [01:29:40.085] ..$ timeout : num 120 [01:29:40.085] ..$ rscript : NULL [01:29:40.085] ..$ homogeneous : NULL [01:29:40.085] ..$ rscript_args : NULL [01:29:40.085] ..$ rscript_envs : NULL [01:29:40.085] ..$ rscript_libs : NULL [01:29:40.085] ..$ rscript_startup : NULL [01:29:40.085] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [01:29:40.085] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [01:29:40.085] ..$ methods : logi TRUE [01:29:40.085] ..$ socketOptions : chr "no-delay" [01:29:40.085] ..$ useXDR : logi FALSE [01:29:40.085] ..$ outfile : chr "/dev/null" [01:29:40.085] ..$ renice : int NA [01:29:40.085] ..$ rshcmd : NULL [01:29:40.085] ..$ user : NULL [01:29:40.085] ..$ revtunnel : logi NA [01:29:40.085] ..$ rshlogfile : NULL [01:29:40.085] ..$ rshopts : NULL [01:29:40.085] ..$ rank : int 1 [01:29:40.085] ..$ manual : logi FALSE [01:29:40.085] ..$ dryrun : logi FALSE [01:29:40.085] ..$ quiet : logi FALSE [01:29:40.085] ..$ setup_strategy : chr "parallel" [01:29:40.085] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [01:29:40.113] [local output] System call to launch all workers: [01:29:40.114] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=tweak.R:5224:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpiauStq/worker.rank=1.parallelly.parent=5224.1468372c37.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=27464 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [01:29:40.114] [local output] Starting PSOCK main server [01:29:40.118] [local output] Workers launched [01:29:40.118] [local output] Waiting for workers to connect back [01:29:40.118] - [local output] 0 workers out of 1 ready [01:29:40.295] - [local output] 0 workers out of 1 ready [01:29:40.296] - [local output] 1 workers out of 1 ready [01:29:40.296] [local output] Launching of workers completed [01:29:40.296] [local output] Collecting session information from workers [01:29:40.297] [local output] - Worker #1 of 1 [01:29:40.297] [local output] makeClusterPSOCK() ... done [01:29:40.298] plan(): Setting new future strategy stack: [01:29:40.298] List of future strategies: [01:29:40.298] 1. cluster: [01:29:40.298] - args: function (..., workers = "", envir = parent.frame()) [01:29:40.298] - tweaked: TRUE [01:29:40.298] - call: future::plan(future::cluster, workers = cl) [01:29:40.319] plan(): plan_init() of 'tweaked', 'cluster', 'multiprocess', 'future', 'function' ... [01:29:40.319] cluster: [01:29:40.319] - args: function (..., workers = "", envir = parent.frame()) [01:29:40.319] - tweaked: TRUE [01:29:40.319] - call: future::plan(future::cluster, workers = cl) [01:29:40.323] getGlobalsAndPackages() ... [01:29:40.323] Not searching for globals [01:29:40.324] - globals: [0] [01:29:40.324] getGlobalsAndPackages() ... DONE [01:29:40.332] Packages needed by the future expression (n = 0): [01:29:40.332] Packages needed by future strategies (n = 0): [01:29:40.334] { [01:29:40.334] { [01:29:40.334] { [01:29:40.334] ...future.startTime <- base::Sys.time() [01:29:40.334] { [01:29:40.334] { [01:29:40.334] { [01:29:40.334] base::local({ [01:29:40.334] has_future <- base::requireNamespace("future", [01:29:40.334] quietly = TRUE) [01:29:40.334] if (has_future) { [01:29:40.334] ns <- base::getNamespace("future") [01:29:40.334] version <- ns[[".package"]][["version"]] [01:29:40.334] if (is.null(version)) [01:29:40.334] version <- utils::packageVersion("future") [01:29:40.334] } [01:29:40.334] else { [01:29:40.334] version <- NULL [01:29:40.334] } [01:29:40.334] if (!has_future || version < "1.8.0") { [01:29:40.334] info <- base::c(r_version = base::gsub("R version ", [01:29:40.334] "", base::R.version$version.string), [01:29:40.334] platform = base::sprintf("%s (%s-bit)", [01:29:40.334] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:29:40.334] os = base::paste(base::Sys.info()[base::c("sysname", [01:29:40.334] "release", "version")], collapse = " "), [01:29:40.334] hostname = base::Sys.info()[["nodename"]]) [01:29:40.334] info <- base::sprintf("%s: %s", base::names(info), [01:29:40.334] info) [01:29:40.334] info <- base::paste(info, collapse = "; ") [01:29:40.334] if (!has_future) { [01:29:40.334] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:29:40.334] info) [01:29:40.334] } [01:29:40.334] else { [01:29:40.334] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:29:40.334] info, version) [01:29:40.334] } [01:29:40.334] base::stop(msg) [01:29:40.334] } [01:29:40.334] }) [01:29:40.334] } [01:29:40.334] options(future.plan = NULL) [01:29:40.334] Sys.unsetenv("R_FUTURE_PLAN") [01:29:40.334] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:29:40.334] } [01:29:40.334] ...future.workdir <- getwd() [01:29:40.334] } [01:29:40.334] ...future.oldOptions <- base::as.list(base::.Options) [01:29:40.334] ...future.oldEnvVars <- base::Sys.getenv() [01:29:40.334] } [01:29:40.334] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:29:40.334] future.globals.maxSize = NULL, future.globals.method = NULL, [01:29:40.334] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:29:40.334] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:29:40.334] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:29:40.334] future.stdout.windows.reencode = NULL, width = 80L) [01:29:40.334] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:29:40.334] base::names(...future.oldOptions)) [01:29:40.334] } [01:29:40.334] if (FALSE) { [01:29:40.334] } [01:29:40.334] else { [01:29:40.334] if (TRUE) { [01:29:40.334] ...future.stdout <- base::rawConnection(base::raw(0L), [01:29:40.334] open = "w") [01:29:40.334] } [01:29:40.334] else { [01:29:40.334] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:29:40.334] windows = "NUL", "/dev/null"), open = "w") [01:29:40.334] } [01:29:40.334] base::sink(...future.stdout, type = "output", split = FALSE) [01:29:40.334] base::on.exit(if (!base::is.null(...future.stdout)) { [01:29:40.334] base::sink(type = "output", split = FALSE) [01:29:40.334] base::close(...future.stdout) [01:29:40.334] }, add = TRUE) [01:29:40.334] } [01:29:40.334] ...future.frame <- base::sys.nframe() [01:29:40.334] ...future.conditions <- base::list() [01:29:40.334] ...future.rng <- base::globalenv()$.Random.seed [01:29:40.334] if (FALSE) { [01:29:40.334] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:29:40.334] "...future.value", "...future.globalenv.names", ".Random.seed") [01:29:40.334] } [01:29:40.334] ...future.result <- base::tryCatch({ [01:29:40.334] base::withCallingHandlers({ [01:29:40.334] ...future.value <- base::withVisible(base::local({ [01:29:40.334] ...future.makeSendCondition <- base::local({ [01:29:40.334] sendCondition <- NULL [01:29:40.334] function(frame = 1L) { [01:29:40.334] if (is.function(sendCondition)) [01:29:40.334] return(sendCondition) [01:29:40.334] ns <- getNamespace("parallel") [01:29:40.334] if (exists("sendData", mode = "function", [01:29:40.334] envir = ns)) { [01:29:40.334] parallel_sendData <- get("sendData", mode = "function", [01:29:40.334] envir = ns) [01:29:40.334] envir <- sys.frame(frame) [01:29:40.334] master <- NULL [01:29:40.334] while (!identical(envir, .GlobalEnv) && [01:29:40.334] !identical(envir, emptyenv())) { [01:29:40.334] if (exists("master", mode = "list", envir = envir, [01:29:40.334] inherits = FALSE)) { [01:29:40.334] master <- get("master", mode = "list", [01:29:40.334] envir = envir, inherits = FALSE) [01:29:40.334] if (inherits(master, c("SOCKnode", [01:29:40.334] "SOCK0node"))) { [01:29:40.334] sendCondition <<- function(cond) { [01:29:40.334] data <- list(type = "VALUE", value = cond, [01:29:40.334] success = TRUE) [01:29:40.334] parallel_sendData(master, data) [01:29:40.334] } [01:29:40.334] return(sendCondition) [01:29:40.334] } [01:29:40.334] } [01:29:40.334] frame <- frame + 1L [01:29:40.334] envir <- sys.frame(frame) [01:29:40.334] } [01:29:40.334] } [01:29:40.334] sendCondition <<- function(cond) NULL [01:29:40.334] } [01:29:40.334] }) [01:29:40.334] withCallingHandlers({ [01:29:40.334] NA [01:29:40.334] }, immediateCondition = function(cond) { [01:29:40.334] sendCondition <- ...future.makeSendCondition() [01:29:40.334] sendCondition(cond) [01:29:40.334] muffleCondition <- function (cond, pattern = "^muffle") [01:29:40.334] { [01:29:40.334] inherits <- base::inherits [01:29:40.334] invokeRestart <- base::invokeRestart [01:29:40.334] is.null <- base::is.null [01:29:40.334] muffled <- FALSE [01:29:40.334] if (inherits(cond, "message")) { [01:29:40.334] muffled <- grepl(pattern, "muffleMessage") [01:29:40.334] if (muffled) [01:29:40.334] invokeRestart("muffleMessage") [01:29:40.334] } [01:29:40.334] else if (inherits(cond, "warning")) { [01:29:40.334] muffled <- grepl(pattern, "muffleWarning") [01:29:40.334] if (muffled) [01:29:40.334] invokeRestart("muffleWarning") [01:29:40.334] } [01:29:40.334] else if (inherits(cond, "condition")) { [01:29:40.334] if (!is.null(pattern)) { [01:29:40.334] computeRestarts <- base::computeRestarts [01:29:40.334] grepl <- base::grepl [01:29:40.334] restarts <- computeRestarts(cond) [01:29:40.334] for (restart in restarts) { [01:29:40.334] name <- restart$name [01:29:40.334] if (is.null(name)) [01:29:40.334] next [01:29:40.334] if (!grepl(pattern, name)) [01:29:40.334] next [01:29:40.334] invokeRestart(restart) [01:29:40.334] muffled <- TRUE [01:29:40.334] break [01:29:40.334] } [01:29:40.334] } [01:29:40.334] } [01:29:40.334] invisible(muffled) [01:29:40.334] } [01:29:40.334] muffleCondition(cond) [01:29:40.334] }) [01:29:40.334] })) [01:29:40.334] future::FutureResult(value = ...future.value$value, [01:29:40.334] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:29:40.334] ...future.rng), globalenv = if (FALSE) [01:29:40.334] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:29:40.334] ...future.globalenv.names)) [01:29:40.334] else NULL, started = ...future.startTime, version = "1.8") [01:29:40.334] }, condition = base::local({ [01:29:40.334] c <- base::c [01:29:40.334] inherits <- base::inherits [01:29:40.334] invokeRestart <- base::invokeRestart [01:29:40.334] length <- base::length [01:29:40.334] list <- base::list [01:29:40.334] seq.int <- base::seq.int [01:29:40.334] signalCondition <- base::signalCondition [01:29:40.334] sys.calls <- base::sys.calls [01:29:40.334] `[[` <- base::`[[` [01:29:40.334] `+` <- base::`+` [01:29:40.334] `<<-` <- base::`<<-` [01:29:40.334] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:29:40.334] calls[seq.int(from = from + 12L, to = length(calls) - [01:29:40.334] 3L)] [01:29:40.334] } [01:29:40.334] function(cond) { [01:29:40.334] is_error <- inherits(cond, "error") [01:29:40.334] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:29:40.334] NULL) [01:29:40.334] if (is_error) { [01:29:40.334] sessionInformation <- function() { [01:29:40.334] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:29:40.334] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:29:40.334] search = base::search(), system = base::Sys.info()) [01:29:40.334] } [01:29:40.334] ...future.conditions[[length(...future.conditions) + [01:29:40.334] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:29:40.334] cond$call), session = sessionInformation(), [01:29:40.334] timestamp = base::Sys.time(), signaled = 0L) [01:29:40.334] signalCondition(cond) [01:29:40.334] } [01:29:40.334] else if (!ignore && TRUE && inherits(cond, c("condition", [01:29:40.334] "immediateCondition"))) { [01:29:40.334] signal <- TRUE && inherits(cond, "immediateCondition") [01:29:40.334] ...future.conditions[[length(...future.conditions) + [01:29:40.334] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:29:40.334] if (TRUE && !signal) { [01:29:40.334] muffleCondition <- function (cond, pattern = "^muffle") [01:29:40.334] { [01:29:40.334] inherits <- base::inherits [01:29:40.334] invokeRestart <- base::invokeRestart [01:29:40.334] is.null <- base::is.null [01:29:40.334] muffled <- FALSE [01:29:40.334] if (inherits(cond, "message")) { [01:29:40.334] muffled <- grepl(pattern, "muffleMessage") [01:29:40.334] if (muffled) [01:29:40.334] invokeRestart("muffleMessage") [01:29:40.334] } [01:29:40.334] else if (inherits(cond, "warning")) { [01:29:40.334] muffled <- grepl(pattern, "muffleWarning") [01:29:40.334] if (muffled) [01:29:40.334] invokeRestart("muffleWarning") [01:29:40.334] } [01:29:40.334] else if (inherits(cond, "condition")) { [01:29:40.334] if (!is.null(pattern)) { [01:29:40.334] computeRestarts <- base::computeRestarts [01:29:40.334] grepl <- base::grepl [01:29:40.334] restarts <- computeRestarts(cond) [01:29:40.334] for (restart in restarts) { [01:29:40.334] name <- restart$name [01:29:40.334] if (is.null(name)) [01:29:40.334] next [01:29:40.334] if (!grepl(pattern, name)) [01:29:40.334] next [01:29:40.334] invokeRestart(restart) [01:29:40.334] muffled <- TRUE [01:29:40.334] break [01:29:40.334] } [01:29:40.334] } [01:29:40.334] } [01:29:40.334] invisible(muffled) [01:29:40.334] } [01:29:40.334] muffleCondition(cond, pattern = "^muffle") [01:29:40.334] } [01:29:40.334] } [01:29:40.334] else { [01:29:40.334] if (TRUE) { [01:29:40.334] muffleCondition <- function (cond, pattern = "^muffle") [01:29:40.334] { [01:29:40.334] inherits <- base::inherits [01:29:40.334] invokeRestart <- base::invokeRestart [01:29:40.334] is.null <- base::is.null [01:29:40.334] muffled <- FALSE [01:29:40.334] if (inherits(cond, "message")) { [01:29:40.334] muffled <- grepl(pattern, "muffleMessage") [01:29:40.334] if (muffled) [01:29:40.334] invokeRestart("muffleMessage") [01:29:40.334] } [01:29:40.334] else if (inherits(cond, "warning")) { [01:29:40.334] muffled <- grepl(pattern, "muffleWarning") [01:29:40.334] if (muffled) [01:29:40.334] invokeRestart("muffleWarning") [01:29:40.334] } [01:29:40.334] else if (inherits(cond, "condition")) { [01:29:40.334] if (!is.null(pattern)) { [01:29:40.334] computeRestarts <- base::computeRestarts [01:29:40.334] grepl <- base::grepl [01:29:40.334] restarts <- computeRestarts(cond) [01:29:40.334] for (restart in restarts) { [01:29:40.334] name <- restart$name [01:29:40.334] if (is.null(name)) [01:29:40.334] next [01:29:40.334] if (!grepl(pattern, name)) [01:29:40.334] next [01:29:40.334] invokeRestart(restart) [01:29:40.334] muffled <- TRUE [01:29:40.334] break [01:29:40.334] } [01:29:40.334] } [01:29:40.334] } [01:29:40.334] invisible(muffled) [01:29:40.334] } [01:29:40.334] muffleCondition(cond, pattern = "^muffle") [01:29:40.334] } [01:29:40.334] } [01:29:40.334] } [01:29:40.334] })) [01:29:40.334] }, error = function(ex) { [01:29:40.334] base::structure(base::list(value = NULL, visible = NULL, [01:29:40.334] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:29:40.334] ...future.rng), started = ...future.startTime, [01:29:40.334] finished = Sys.time(), session_uuid = NA_character_, [01:29:40.334] version = "1.8"), class = "FutureResult") [01:29:40.334] }, finally = { [01:29:40.334] if (!identical(...future.workdir, getwd())) [01:29:40.334] setwd(...future.workdir) [01:29:40.334] { [01:29:40.334] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:29:40.334] ...future.oldOptions$nwarnings <- NULL [01:29:40.334] } [01:29:40.334] base::options(...future.oldOptions) [01:29:40.334] if (.Platform$OS.type == "windows") { [01:29:40.334] old_names <- names(...future.oldEnvVars) [01:29:40.334] envs <- base::Sys.getenv() [01:29:40.334] names <- names(envs) [01:29:40.334] common <- intersect(names, old_names) [01:29:40.334] added <- setdiff(names, old_names) [01:29:40.334] removed <- setdiff(old_names, names) [01:29:40.334] changed <- common[...future.oldEnvVars[common] != [01:29:40.334] envs[common]] [01:29:40.334] NAMES <- toupper(changed) [01:29:40.334] args <- list() [01:29:40.334] for (kk in seq_along(NAMES)) { [01:29:40.334] name <- changed[[kk]] [01:29:40.334] NAME <- NAMES[[kk]] [01:29:40.334] if (name != NAME && is.element(NAME, old_names)) [01:29:40.334] next [01:29:40.334] args[[name]] <- ...future.oldEnvVars[[name]] [01:29:40.334] } [01:29:40.334] NAMES <- toupper(added) [01:29:40.334] for (kk in seq_along(NAMES)) { [01:29:40.334] name <- added[[kk]] [01:29:40.334] NAME <- NAMES[[kk]] [01:29:40.334] if (name != NAME && is.element(NAME, old_names)) [01:29:40.334] next [01:29:40.334] args[[name]] <- "" [01:29:40.334] } [01:29:40.334] NAMES <- toupper(removed) [01:29:40.334] for (kk in seq_along(NAMES)) { [01:29:40.334] name <- removed[[kk]] [01:29:40.334] NAME <- NAMES[[kk]] [01:29:40.334] if (name != NAME && is.element(NAME, old_names)) [01:29:40.334] next [01:29:40.334] args[[name]] <- ...future.oldEnvVars[[name]] [01:29:40.334] } [01:29:40.334] if (length(args) > 0) [01:29:40.334] base::do.call(base::Sys.setenv, args = args) [01:29:40.334] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:29:40.334] } [01:29:40.334] else { [01:29:40.334] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:29:40.334] } [01:29:40.334] { [01:29:40.334] if (base::length(...future.futureOptionsAdded) > [01:29:40.334] 0L) { [01:29:40.334] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:29:40.334] base::names(opts) <- ...future.futureOptionsAdded [01:29:40.334] base::options(opts) [01:29:40.334] } [01:29:40.334] { [01:29:40.334] NULL [01:29:40.334] options(future.plan = NULL) [01:29:40.334] if (is.na(NA_character_)) [01:29:40.334] Sys.unsetenv("R_FUTURE_PLAN") [01:29:40.334] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:29:40.334] future::plan(list(function (..., workers = list( [01:29:40.334] list(con = 4L, host = "localhost", rank = 0L, [01:29:40.334] session_info = list(r = list(platform = "x86_64-w64-mingw32", [01:29:40.334] arch = "x86_64", os = "mingw32", crt = "ucrt", [01:29:40.334] system = "x86_64, mingw32", status = "Under development (unstable)", [01:29:40.334] major = "4", minor = "4.0", year = "2023", [01:29:40.334] month = "12", day = "20", `svn rev` = "85713", [01:29:40.334] language = "R", version.string = "R Under development (unstable) (2023-12-20 r85713 ucrt)", [01:29:40.334] nickname = "Unsuffered Consequences", [01:29:40.334] os.type = "windows"), system = list(sysname = "Windows", [01:29:40.334] release = "Server x64", version = "build 20348", [01:29:40.334] nodename = "CRANWIN3", machine = "x86-64", [01:29:40.334] login = "CRAN", user = "CRAN", effective_user = "CRAN"), [01:29:40.334] libs = c("D:/temp/RtmpCIb4qz/RLIBS_32fc52ae7b47", [01:29:40.334] "D:/RCompile/recent/R/library"), pkgs = NULL, [01:29:40.334] pwd = "d:/RCompile/CRANincoming/R-devel/future.Rcheck/tests", [01:29:40.334] process = list(pid = 12068L)))), envir = parent.frame()) [01:29:40.334] strategy(..., workers = workers, envir = envir)), [01:29:40.334] .cleanup = FALSE, .init = FALSE) [01:29:40.334] } [01:29:40.334] } [01:29:40.334] } [01:29:40.334] }) [01:29:40.334] if (TRUE) { [01:29:40.334] base::sink(type = "output", split = FALSE) [01:29:40.334] if (TRUE) { [01:29:40.334] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:29:40.334] } [01:29:40.334] else { [01:29:40.334] ...future.result["stdout"] <- base::list(NULL) [01:29:40.334] } [01:29:40.334] base::close(...future.stdout) [01:29:40.334] ...future.stdout <- NULL [01:29:40.334] } [01:29:40.334] ...future.result$conditions <- ...future.conditions [01:29:40.334] ...future.result$finished <- base::Sys.time() [01:29:40.334] ...future.result [01:29:40.334] } [01:29:40.419] ClusterFuture started [01:29:40.419] result() for ClusterFuture ... [01:29:40.420] receiveMessageFromWorker() for ClusterFuture ... [01:29:40.420] - Validating connection of ClusterFuture [01:29:40.473] - received message: FutureResult [01:29:40.474] - Received FutureResult [01:29:40.477] - Erased future from FutureRegistry [01:29:40.477] result() for ClusterFuture ... [01:29:40.478] - result already collected: FutureResult [01:29:40.478] result() for ClusterFuture ... done [01:29:40.478] receiveMessageFromWorker() for ClusterFuture ... done [01:29:40.478] result() for ClusterFuture ... done [01:29:40.478] result() for ClusterFuture ... [01:29:40.479] - result already collected: FutureResult [01:29:40.479] result() for ClusterFuture ... done [01:29:40.479] plan(): plan_init() of 'tweaked', 'cluster', 'multiprocess', 'future', 'function' ... DONE [01:29:40.479] plan(): nbrOfWorkers() = 1 [01:29:40.480] plan(): Setting new future strategy stack: [01:29:40.480] List of future strategies: [01:29:40.480] 1. sequential: [01:29:40.480] - args: function (..., envir = parent.frame(), workers = "") [01:29:40.480] - tweaked: FALSE [01:29:40.480] - call: future::plan("sequential") [01:29:40.481] 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) [01:29:40.482] plan(): Setting new future strategy stack: [01:29:40.482] List of future strategies: [01:29:40.482] 1. sequential: [01:29:40.482] - args: function (..., envir = parent.frame(), workers = "") [01:29:40.482] - tweaked: FALSE [01:29:40.482] - call: plan(sequential) [01:29:40.483] plan(): nbrOfWorkers() = 1 > > a <- 0 > x %<-% { a <- 1; a } [01:29:40.484] getGlobalsAndPackages() ... [01:29:40.485] Searching for globals... [01:29:40.491] - globals found: [2] '{', '<-' [01:29:40.492] Searching for globals ... DONE [01:29:40.492] Resolving globals: FALSE [01:29:40.493] [01:29:40.497] [01:29:40.497] getGlobalsAndPackages() ... DONE [01:29:40.497] run() for 'Future' ... [01:29:40.498] - state: 'created' [01:29:40.498] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [01:29:40.498] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [01:29:40.499] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [01:29:40.499] - Field: 'label' [01:29:40.499] - Field: 'local' [01:29:40.499] - Field: 'owner' [01:29:40.499] - Field: 'envir' [01:29:40.499] - Field: 'packages' [01:29:40.500] - Field: 'gc' [01:29:40.500] - Field: 'conditions' [01:29:40.500] - Field: 'expr' [01:29:40.500] - Field: 'uuid' [01:29:40.500] - Field: 'seed' [01:29:40.501] - Field: 'version' [01:29:40.501] - Field: 'result' [01:29:40.501] - Field: 'asynchronous' [01:29:40.501] - Field: 'calls' [01:29:40.501] - Field: 'globals' [01:29:40.501] - Field: 'stdout' [01:29:40.502] - Field: 'earlySignal' [01:29:40.502] - Field: 'lazy' [01:29:40.502] - Field: 'state' [01:29:40.502] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [01:29:40.502] - Launch lazy future ... [01:29:40.503] Packages needed by the future expression (n = 0): [01:29:40.503] Packages needed by future strategies (n = 0): [01:29:40.504] { [01:29:40.504] { [01:29:40.504] { [01:29:40.504] ...future.startTime <- base::Sys.time() [01:29:40.504] { [01:29:40.504] { [01:29:40.504] { [01:29:40.504] base::local({ [01:29:40.504] has_future <- base::requireNamespace("future", [01:29:40.504] quietly = TRUE) [01:29:40.504] if (has_future) { [01:29:40.504] ns <- base::getNamespace("future") [01:29:40.504] version <- ns[[".package"]][["version"]] [01:29:40.504] if (is.null(version)) [01:29:40.504] version <- utils::packageVersion("future") [01:29:40.504] } [01:29:40.504] else { [01:29:40.504] version <- NULL [01:29:40.504] } [01:29:40.504] if (!has_future || version < "1.8.0") { [01:29:40.504] info <- base::c(r_version = base::gsub("R version ", [01:29:40.504] "", base::R.version$version.string), [01:29:40.504] platform = base::sprintf("%s (%s-bit)", [01:29:40.504] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:29:40.504] os = base::paste(base::Sys.info()[base::c("sysname", [01:29:40.504] "release", "version")], collapse = " "), [01:29:40.504] hostname = base::Sys.info()[["nodename"]]) [01:29:40.504] info <- base::sprintf("%s: %s", base::names(info), [01:29:40.504] info) [01:29:40.504] info <- base::paste(info, collapse = "; ") [01:29:40.504] if (!has_future) { [01:29:40.504] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:29:40.504] info) [01:29:40.504] } [01:29:40.504] else { [01:29:40.504] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:29:40.504] info, version) [01:29:40.504] } [01:29:40.504] base::stop(msg) [01:29:40.504] } [01:29:40.504] }) [01:29:40.504] } [01:29:40.504] options(future.plan = NULL) [01:29:40.504] Sys.unsetenv("R_FUTURE_PLAN") [01:29:40.504] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:29:40.504] } [01:29:40.504] ...future.workdir <- getwd() [01:29:40.504] } [01:29:40.504] ...future.oldOptions <- base::as.list(base::.Options) [01:29:40.504] ...future.oldEnvVars <- base::Sys.getenv() [01:29:40.504] } [01:29:40.504] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:29:40.504] future.globals.maxSize = NULL, future.globals.method = NULL, [01:29:40.504] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:29:40.504] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:29:40.504] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:29:40.504] future.stdout.windows.reencode = NULL, width = 80L) [01:29:40.504] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:29:40.504] base::names(...future.oldOptions)) [01:29:40.504] } [01:29:40.504] if (FALSE) { [01:29:40.504] } [01:29:40.504] else { [01:29:40.504] if (TRUE) { [01:29:40.504] ...future.stdout <- base::rawConnection(base::raw(0L), [01:29:40.504] open = "w") [01:29:40.504] } [01:29:40.504] else { [01:29:40.504] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:29:40.504] windows = "NUL", "/dev/null"), open = "w") [01:29:40.504] } [01:29:40.504] base::sink(...future.stdout, type = "output", split = FALSE) [01:29:40.504] base::on.exit(if (!base::is.null(...future.stdout)) { [01:29:40.504] base::sink(type = "output", split = FALSE) [01:29:40.504] base::close(...future.stdout) [01:29:40.504] }, add = TRUE) [01:29:40.504] } [01:29:40.504] ...future.frame <- base::sys.nframe() [01:29:40.504] ...future.conditions <- base::list() [01:29:40.504] ...future.rng <- base::globalenv()$.Random.seed [01:29:40.504] if (FALSE) { [01:29:40.504] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:29:40.504] "...future.value", "...future.globalenv.names", ".Random.seed") [01:29:40.504] } [01:29:40.504] ...future.result <- base::tryCatch({ [01:29:40.504] base::withCallingHandlers({ [01:29:40.504] ...future.value <- base::withVisible(base::local({ [01:29:40.504] a <- 1 [01:29:40.504] a [01:29:40.504] })) [01:29:40.504] future::FutureResult(value = ...future.value$value, [01:29:40.504] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:29:40.504] ...future.rng), globalenv = if (FALSE) [01:29:40.504] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:29:40.504] ...future.globalenv.names)) [01:29:40.504] else NULL, started = ...future.startTime, version = "1.8") [01:29:40.504] }, condition = base::local({ [01:29:40.504] c <- base::c [01:29:40.504] inherits <- base::inherits [01:29:40.504] invokeRestart <- base::invokeRestart [01:29:40.504] length <- base::length [01:29:40.504] list <- base::list [01:29:40.504] seq.int <- base::seq.int [01:29:40.504] signalCondition <- base::signalCondition [01:29:40.504] sys.calls <- base::sys.calls [01:29:40.504] `[[` <- base::`[[` [01:29:40.504] `+` <- base::`+` [01:29:40.504] `<<-` <- base::`<<-` [01:29:40.504] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:29:40.504] calls[seq.int(from = from + 12L, to = length(calls) - [01:29:40.504] 3L)] [01:29:40.504] } [01:29:40.504] function(cond) { [01:29:40.504] is_error <- inherits(cond, "error") [01:29:40.504] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:29:40.504] NULL) [01:29:40.504] if (is_error) { [01:29:40.504] sessionInformation <- function() { [01:29:40.504] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:29:40.504] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:29:40.504] search = base::search(), system = base::Sys.info()) [01:29:40.504] } [01:29:40.504] ...future.conditions[[length(...future.conditions) + [01:29:40.504] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:29:40.504] cond$call), session = sessionInformation(), [01:29:40.504] timestamp = base::Sys.time(), signaled = 0L) [01:29:40.504] signalCondition(cond) [01:29:40.504] } [01:29:40.504] else if (!ignore && TRUE && inherits(cond, c("condition", [01:29:40.504] "immediateCondition"))) { [01:29:40.504] signal <- TRUE && inherits(cond, "immediateCondition") [01:29:40.504] ...future.conditions[[length(...future.conditions) + [01:29:40.504] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:29:40.504] if (TRUE && !signal) { [01:29:40.504] muffleCondition <- function (cond, pattern = "^muffle") [01:29:40.504] { [01:29:40.504] inherits <- base::inherits [01:29:40.504] invokeRestart <- base::invokeRestart [01:29:40.504] is.null <- base::is.null [01:29:40.504] muffled <- FALSE [01:29:40.504] if (inherits(cond, "message")) { [01:29:40.504] muffled <- grepl(pattern, "muffleMessage") [01:29:40.504] if (muffled) [01:29:40.504] invokeRestart("muffleMessage") [01:29:40.504] } [01:29:40.504] else if (inherits(cond, "warning")) { [01:29:40.504] muffled <- grepl(pattern, "muffleWarning") [01:29:40.504] if (muffled) [01:29:40.504] invokeRestart("muffleWarning") [01:29:40.504] } [01:29:40.504] else if (inherits(cond, "condition")) { [01:29:40.504] if (!is.null(pattern)) { [01:29:40.504] computeRestarts <- base::computeRestarts [01:29:40.504] grepl <- base::grepl [01:29:40.504] restarts <- computeRestarts(cond) [01:29:40.504] for (restart in restarts) { [01:29:40.504] name <- restart$name [01:29:40.504] if (is.null(name)) [01:29:40.504] next [01:29:40.504] if (!grepl(pattern, name)) [01:29:40.504] next [01:29:40.504] invokeRestart(restart) [01:29:40.504] muffled <- TRUE [01:29:40.504] break [01:29:40.504] } [01:29:40.504] } [01:29:40.504] } [01:29:40.504] invisible(muffled) [01:29:40.504] } [01:29:40.504] muffleCondition(cond, pattern = "^muffle") [01:29:40.504] } [01:29:40.504] } [01:29:40.504] else { [01:29:40.504] if (TRUE) { [01:29:40.504] muffleCondition <- function (cond, pattern = "^muffle") [01:29:40.504] { [01:29:40.504] inherits <- base::inherits [01:29:40.504] invokeRestart <- base::invokeRestart [01:29:40.504] is.null <- base::is.null [01:29:40.504] muffled <- FALSE [01:29:40.504] if (inherits(cond, "message")) { [01:29:40.504] muffled <- grepl(pattern, "muffleMessage") [01:29:40.504] if (muffled) [01:29:40.504] invokeRestart("muffleMessage") [01:29:40.504] } [01:29:40.504] else if (inherits(cond, "warning")) { [01:29:40.504] muffled <- grepl(pattern, "muffleWarning") [01:29:40.504] if (muffled) [01:29:40.504] invokeRestart("muffleWarning") [01:29:40.504] } [01:29:40.504] else if (inherits(cond, "condition")) { [01:29:40.504] if (!is.null(pattern)) { [01:29:40.504] computeRestarts <- base::computeRestarts [01:29:40.504] grepl <- base::grepl [01:29:40.504] restarts <- computeRestarts(cond) [01:29:40.504] for (restart in restarts) { [01:29:40.504] name <- restart$name [01:29:40.504] if (is.null(name)) [01:29:40.504] next [01:29:40.504] if (!grepl(pattern, name)) [01:29:40.504] next [01:29:40.504] invokeRestart(restart) [01:29:40.504] muffled <- TRUE [01:29:40.504] break [01:29:40.504] } [01:29:40.504] } [01:29:40.504] } [01:29:40.504] invisible(muffled) [01:29:40.504] } [01:29:40.504] muffleCondition(cond, pattern = "^muffle") [01:29:40.504] } [01:29:40.504] } [01:29:40.504] } [01:29:40.504] })) [01:29:40.504] }, error = function(ex) { [01:29:40.504] base::structure(base::list(value = NULL, visible = NULL, [01:29:40.504] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:29:40.504] ...future.rng), started = ...future.startTime, [01:29:40.504] finished = Sys.time(), session_uuid = NA_character_, [01:29:40.504] version = "1.8"), class = "FutureResult") [01:29:40.504] }, finally = { [01:29:40.504] if (!identical(...future.workdir, getwd())) [01:29:40.504] setwd(...future.workdir) [01:29:40.504] { [01:29:40.504] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:29:40.504] ...future.oldOptions$nwarnings <- NULL [01:29:40.504] } [01:29:40.504] base::options(...future.oldOptions) [01:29:40.504] if (.Platform$OS.type == "windows") { [01:29:40.504] old_names <- names(...future.oldEnvVars) [01:29:40.504] envs <- base::Sys.getenv() [01:29:40.504] names <- names(envs) [01:29:40.504] common <- intersect(names, old_names) [01:29:40.504] added <- setdiff(names, old_names) [01:29:40.504] removed <- setdiff(old_names, names) [01:29:40.504] changed <- common[...future.oldEnvVars[common] != [01:29:40.504] envs[common]] [01:29:40.504] NAMES <- toupper(changed) [01:29:40.504] args <- list() [01:29:40.504] for (kk in seq_along(NAMES)) { [01:29:40.504] name <- changed[[kk]] [01:29:40.504] NAME <- NAMES[[kk]] [01:29:40.504] if (name != NAME && is.element(NAME, old_names)) [01:29:40.504] next [01:29:40.504] args[[name]] <- ...future.oldEnvVars[[name]] [01:29:40.504] } [01:29:40.504] NAMES <- toupper(added) [01:29:40.504] for (kk in seq_along(NAMES)) { [01:29:40.504] name <- added[[kk]] [01:29:40.504] NAME <- NAMES[[kk]] [01:29:40.504] if (name != NAME && is.element(NAME, old_names)) [01:29:40.504] next [01:29:40.504] args[[name]] <- "" [01:29:40.504] } [01:29:40.504] NAMES <- toupper(removed) [01:29:40.504] for (kk in seq_along(NAMES)) { [01:29:40.504] name <- removed[[kk]] [01:29:40.504] NAME <- NAMES[[kk]] [01:29:40.504] if (name != NAME && is.element(NAME, old_names)) [01:29:40.504] next [01:29:40.504] args[[name]] <- ...future.oldEnvVars[[name]] [01:29:40.504] } [01:29:40.504] if (length(args) > 0) [01:29:40.504] base::do.call(base::Sys.setenv, args = args) [01:29:40.504] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:29:40.504] } [01:29:40.504] else { [01:29:40.504] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:29:40.504] } [01:29:40.504] { [01:29:40.504] if (base::length(...future.futureOptionsAdded) > [01:29:40.504] 0L) { [01:29:40.504] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:29:40.504] base::names(opts) <- ...future.futureOptionsAdded [01:29:40.504] base::options(opts) [01:29:40.504] } [01:29:40.504] { [01:29:40.504] { [01:29:40.504] NULL [01:29:40.504] RNGkind("Mersenne-Twister") [01:29:40.504] base::rm(list = ".Random.seed", envir = base::globalenv(), [01:29:40.504] inherits = FALSE) [01:29:40.504] } [01:29:40.504] options(future.plan = NULL) [01:29:40.504] if (is.na(NA_character_)) [01:29:40.504] Sys.unsetenv("R_FUTURE_PLAN") [01:29:40.504] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:29:40.504] future::plan(list(function (..., envir = parent.frame()) [01:29:40.504] { [01:29:40.504] future <- SequentialFuture(..., envir = envir) [01:29:40.504] if (!future$lazy) [01:29:40.504] future <- run(future) [01:29:40.504] invisible(future) [01:29:40.504] }), .cleanup = FALSE, .init = FALSE) [01:29:40.504] } [01:29:40.504] } [01:29:40.504] } [01:29:40.504] }) [01:29:40.504] if (TRUE) { [01:29:40.504] base::sink(type = "output", split = FALSE) [01:29:40.504] if (TRUE) { [01:29:40.504] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:29:40.504] } [01:29:40.504] else { [01:29:40.504] ...future.result["stdout"] <- base::list(NULL) [01:29:40.504] } [01:29:40.504] base::close(...future.stdout) [01:29:40.504] ...future.stdout <- NULL [01:29:40.504] } [01:29:40.504] ...future.result$conditions <- ...future.conditions [01:29:40.504] ...future.result$finished <- base::Sys.time() [01:29:40.504] ...future.result [01:29:40.504] } [01:29:40.508] plan(): Setting new future strategy stack: [01:29:40.508] List of future strategies: [01:29:40.508] 1. sequential: [01:29:40.508] - args: function (..., envir = parent.frame(), workers = "") [01:29:40.508] - tweaked: FALSE [01:29:40.508] - call: NULL [01:29:40.509] plan(): nbrOfWorkers() = 1 [01:29:40.511] plan(): Setting new future strategy stack: [01:29:40.511] List of future strategies: [01:29:40.511] 1. sequential: [01:29:40.511] - args: function (..., envir = parent.frame(), workers = "") [01:29:40.511] - tweaked: FALSE [01:29:40.511] - call: plan(sequential) [01:29:40.512] plan(): nbrOfWorkers() = 1 [01:29:40.512] SequentialFuture started (and completed) [01:29:40.512] - Launch lazy future ... done [01:29:40.512] run() for 'SequentialFuture' ... done > print(x) [1] 1 > stopifnot(a == 0, x == 1) > > > plan(sequential, abc = FALSE) Warning: Detected 1 unknown future arguments: 'abc' [01:29:40.513] plan(): Setting new future strategy stack: [01:29:40.513] List of future strategies: [01:29:40.513] 1. sequential: [01:29:40.513] - args: function (..., abc = FALSE, envir = parent.frame(), workers = "") [01:29:40.513] - tweaked: TRUE [01:29:40.513] - call: plan(sequential, abc = FALSE) [01:29:40.514] plan(): nbrOfWorkers() = 1 > > a <- 0 > x %<-% { a <- 1; a } [01:29:40.515] getGlobalsAndPackages() ... [01:29:40.515] Searching for globals... [01:29:40.516] - globals found: [2] '{', '<-' [01:29:40.516] Searching for globals ... DONE [01:29:40.516] Resolving globals: FALSE [01:29:40.517] [01:29:40.517] [01:29:40.517] getGlobalsAndPackages() ... DONE [01:29:40.517] run() for 'Future' ... [01:29:40.518] - state: 'created' [01:29:40.518] - Future backend: 'FutureStrategy', 'tweaked', 'sequential', 'uniprocess', 'future', 'function' [01:29:40.518] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [01:29:40.518] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [01:29:40.519] - Field: 'label' [01:29:40.519] - Field: 'local' [01:29:40.519] - Field: 'owner' [01:29:40.519] - Field: 'envir' [01:29:40.519] - Field: 'packages' [01:29:40.520] - Field: 'gc' [01:29:40.520] - Field: 'conditions' [01:29:40.520] - Field: 'expr' [01:29:40.520] - Field: 'uuid' [01:29:40.520] - Field: 'seed' [01:29:40.520] - Field: 'version' [01:29:40.521] - Field: 'result' [01:29:40.521] - Field: 'asynchronous' [01:29:40.521] - Field: 'calls' [01:29:40.521] - Field: 'abc' [01:29:40.521] - Field: 'globals' [01:29:40.522] - Field: 'stdout' [01:29:40.522] - Field: 'earlySignal' [01:29:40.522] - Field: 'lazy' [01:29:40.522] - Field: 'state' [01:29:40.522] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [01:29:40.522] - Launch lazy future ... [01:29:40.523] Packages needed by the future expression (n = 0): [01:29:40.523] Packages needed by future strategies (n = 0): [01:29:40.523] { [01:29:40.523] { [01:29:40.523] { [01:29:40.523] ...future.startTime <- base::Sys.time() [01:29:40.523] { [01:29:40.523] { [01:29:40.523] { [01:29:40.523] base::local({ [01:29:40.523] has_future <- base::requireNamespace("future", [01:29:40.523] quietly = TRUE) [01:29:40.523] if (has_future) { [01:29:40.523] ns <- base::getNamespace("future") [01:29:40.523] version <- ns[[".package"]][["version"]] [01:29:40.523] if (is.null(version)) [01:29:40.523] version <- utils::packageVersion("future") [01:29:40.523] } [01:29:40.523] else { [01:29:40.523] version <- NULL [01:29:40.523] } [01:29:40.523] if (!has_future || version < "1.8.0") { [01:29:40.523] info <- base::c(r_version = base::gsub("R version ", [01:29:40.523] "", base::R.version$version.string), [01:29:40.523] platform = base::sprintf("%s (%s-bit)", [01:29:40.523] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:29:40.523] os = base::paste(base::Sys.info()[base::c("sysname", [01:29:40.523] "release", "version")], collapse = " "), [01:29:40.523] hostname = base::Sys.info()[["nodename"]]) [01:29:40.523] info <- base::sprintf("%s: %s", base::names(info), [01:29:40.523] info) [01:29:40.523] info <- base::paste(info, collapse = "; ") [01:29:40.523] if (!has_future) { [01:29:40.523] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:29:40.523] info) [01:29:40.523] } [01:29:40.523] else { [01:29:40.523] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:29:40.523] info, version) [01:29:40.523] } [01:29:40.523] base::stop(msg) [01:29:40.523] } [01:29:40.523] }) [01:29:40.523] } [01:29:40.523] options(future.plan = NULL) [01:29:40.523] Sys.unsetenv("R_FUTURE_PLAN") [01:29:40.523] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:29:40.523] } [01:29:40.523] ...future.workdir <- getwd() [01:29:40.523] } [01:29:40.523] ...future.oldOptions <- base::as.list(base::.Options) [01:29:40.523] ...future.oldEnvVars <- base::Sys.getenv() [01:29:40.523] } [01:29:40.523] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:29:40.523] future.globals.maxSize = NULL, future.globals.method = NULL, [01:29:40.523] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:29:40.523] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:29:40.523] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:29:40.523] future.stdout.windows.reencode = NULL, width = 80L) [01:29:40.523] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:29:40.523] base::names(...future.oldOptions)) [01:29:40.523] } [01:29:40.523] if (FALSE) { [01:29:40.523] } [01:29:40.523] else { [01:29:40.523] if (TRUE) { [01:29:40.523] ...future.stdout <- base::rawConnection(base::raw(0L), [01:29:40.523] open = "w") [01:29:40.523] } [01:29:40.523] else { [01:29:40.523] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:29:40.523] windows = "NUL", "/dev/null"), open = "w") [01:29:40.523] } [01:29:40.523] base::sink(...future.stdout, type = "output", split = FALSE) [01:29:40.523] base::on.exit(if (!base::is.null(...future.stdout)) { [01:29:40.523] base::sink(type = "output", split = FALSE) [01:29:40.523] base::close(...future.stdout) [01:29:40.523] }, add = TRUE) [01:29:40.523] } [01:29:40.523] ...future.frame <- base::sys.nframe() [01:29:40.523] ...future.conditions <- base::list() [01:29:40.523] ...future.rng <- base::globalenv()$.Random.seed [01:29:40.523] if (FALSE) { [01:29:40.523] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:29:40.523] "...future.value", "...future.globalenv.names", ".Random.seed") [01:29:40.523] } [01:29:40.523] ...future.result <- base::tryCatch({ [01:29:40.523] base::withCallingHandlers({ [01:29:40.523] ...future.value <- base::withVisible(base::local({ [01:29:40.523] a <- 1 [01:29:40.523] a [01:29:40.523] })) [01:29:40.523] future::FutureResult(value = ...future.value$value, [01:29:40.523] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:29:40.523] ...future.rng), globalenv = if (FALSE) [01:29:40.523] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:29:40.523] ...future.globalenv.names)) [01:29:40.523] else NULL, started = ...future.startTime, version = "1.8") [01:29:40.523] }, condition = base::local({ [01:29:40.523] c <- base::c [01:29:40.523] inherits <- base::inherits [01:29:40.523] invokeRestart <- base::invokeRestart [01:29:40.523] length <- base::length [01:29:40.523] list <- base::list [01:29:40.523] seq.int <- base::seq.int [01:29:40.523] signalCondition <- base::signalCondition [01:29:40.523] sys.calls <- base::sys.calls [01:29:40.523] `[[` <- base::`[[` [01:29:40.523] `+` <- base::`+` [01:29:40.523] `<<-` <- base::`<<-` [01:29:40.523] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:29:40.523] calls[seq.int(from = from + 12L, to = length(calls) - [01:29:40.523] 3L)] [01:29:40.523] } [01:29:40.523] function(cond) { [01:29:40.523] is_error <- inherits(cond, "error") [01:29:40.523] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:29:40.523] NULL) [01:29:40.523] if (is_error) { [01:29:40.523] sessionInformation <- function() { [01:29:40.523] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:29:40.523] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:29:40.523] search = base::search(), system = base::Sys.info()) [01:29:40.523] } [01:29:40.523] ...future.conditions[[length(...future.conditions) + [01:29:40.523] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:29:40.523] cond$call), session = sessionInformation(), [01:29:40.523] timestamp = base::Sys.time(), signaled = 0L) [01:29:40.523] signalCondition(cond) [01:29:40.523] } [01:29:40.523] else if (!ignore && TRUE && inherits(cond, c("condition", [01:29:40.523] "immediateCondition"))) { [01:29:40.523] signal <- TRUE && inherits(cond, "immediateCondition") [01:29:40.523] ...future.conditions[[length(...future.conditions) + [01:29:40.523] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:29:40.523] if (TRUE && !signal) { [01:29:40.523] muffleCondition <- function (cond, pattern = "^muffle") [01:29:40.523] { [01:29:40.523] inherits <- base::inherits [01:29:40.523] invokeRestart <- base::invokeRestart [01:29:40.523] is.null <- base::is.null [01:29:40.523] muffled <- FALSE [01:29:40.523] if (inherits(cond, "message")) { [01:29:40.523] muffled <- grepl(pattern, "muffleMessage") [01:29:40.523] if (muffled) [01:29:40.523] invokeRestart("muffleMessage") [01:29:40.523] } [01:29:40.523] else if (inherits(cond, "warning")) { [01:29:40.523] muffled <- grepl(pattern, "muffleWarning") [01:29:40.523] if (muffled) [01:29:40.523] invokeRestart("muffleWarning") [01:29:40.523] } [01:29:40.523] else if (inherits(cond, "condition")) { [01:29:40.523] if (!is.null(pattern)) { [01:29:40.523] computeRestarts <- base::computeRestarts [01:29:40.523] grepl <- base::grepl [01:29:40.523] restarts <- computeRestarts(cond) [01:29:40.523] for (restart in restarts) { [01:29:40.523] name <- restart$name [01:29:40.523] if (is.null(name)) [01:29:40.523] next [01:29:40.523] if (!grepl(pattern, name)) [01:29:40.523] next [01:29:40.523] invokeRestart(restart) [01:29:40.523] muffled <- TRUE [01:29:40.523] break [01:29:40.523] } [01:29:40.523] } [01:29:40.523] } [01:29:40.523] invisible(muffled) [01:29:40.523] } [01:29:40.523] muffleCondition(cond, pattern = "^muffle") [01:29:40.523] } [01:29:40.523] } [01:29:40.523] else { [01:29:40.523] if (TRUE) { [01:29:40.523] muffleCondition <- function (cond, pattern = "^muffle") [01:29:40.523] { [01:29:40.523] inherits <- base::inherits [01:29:40.523] invokeRestart <- base::invokeRestart [01:29:40.523] is.null <- base::is.null [01:29:40.523] muffled <- FALSE [01:29:40.523] if (inherits(cond, "message")) { [01:29:40.523] muffled <- grepl(pattern, "muffleMessage") [01:29:40.523] if (muffled) [01:29:40.523] invokeRestart("muffleMessage") [01:29:40.523] } [01:29:40.523] else if (inherits(cond, "warning")) { [01:29:40.523] muffled <- grepl(pattern, "muffleWarning") [01:29:40.523] if (muffled) [01:29:40.523] invokeRestart("muffleWarning") [01:29:40.523] } [01:29:40.523] else if (inherits(cond, "condition")) { [01:29:40.523] if (!is.null(pattern)) { [01:29:40.523] computeRestarts <- base::computeRestarts [01:29:40.523] grepl <- base::grepl [01:29:40.523] restarts <- computeRestarts(cond) [01:29:40.523] for (restart in restarts) { [01:29:40.523] name <- restart$name [01:29:40.523] if (is.null(name)) [01:29:40.523] next [01:29:40.523] if (!grepl(pattern, name)) [01:29:40.523] next [01:29:40.523] invokeRestart(restart) [01:29:40.523] muffled <- TRUE [01:29:40.523] break [01:29:40.523] } [01:29:40.523] } [01:29:40.523] } [01:29:40.523] invisible(muffled) [01:29:40.523] } [01:29:40.523] muffleCondition(cond, pattern = "^muffle") [01:29:40.523] } [01:29:40.523] } [01:29:40.523] } [01:29:40.523] })) [01:29:40.523] }, error = function(ex) { [01:29:40.523] base::structure(base::list(value = NULL, visible = NULL, [01:29:40.523] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:29:40.523] ...future.rng), started = ...future.startTime, [01:29:40.523] finished = Sys.time(), session_uuid = NA_character_, [01:29:40.523] version = "1.8"), class = "FutureResult") [01:29:40.523] }, finally = { [01:29:40.523] if (!identical(...future.workdir, getwd())) [01:29:40.523] setwd(...future.workdir) [01:29:40.523] { [01:29:40.523] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:29:40.523] ...future.oldOptions$nwarnings <- NULL [01:29:40.523] } [01:29:40.523] base::options(...future.oldOptions) [01:29:40.523] if (.Platform$OS.type == "windows") { [01:29:40.523] old_names <- names(...future.oldEnvVars) [01:29:40.523] envs <- base::Sys.getenv() [01:29:40.523] names <- names(envs) [01:29:40.523] common <- intersect(names, old_names) [01:29:40.523] added <- setdiff(names, old_names) [01:29:40.523] removed <- setdiff(old_names, names) [01:29:40.523] changed <- common[...future.oldEnvVars[common] != [01:29:40.523] envs[common]] [01:29:40.523] NAMES <- toupper(changed) [01:29:40.523] args <- list() [01:29:40.523] for (kk in seq_along(NAMES)) { [01:29:40.523] name <- changed[[kk]] [01:29:40.523] NAME <- NAMES[[kk]] [01:29:40.523] if (name != NAME && is.element(NAME, old_names)) [01:29:40.523] next [01:29:40.523] args[[name]] <- ...future.oldEnvVars[[name]] [01:29:40.523] } [01:29:40.523] NAMES <- toupper(added) [01:29:40.523] for (kk in seq_along(NAMES)) { [01:29:40.523] name <- added[[kk]] [01:29:40.523] NAME <- NAMES[[kk]] [01:29:40.523] if (name != NAME && is.element(NAME, old_names)) [01:29:40.523] next [01:29:40.523] args[[name]] <- "" [01:29:40.523] } [01:29:40.523] NAMES <- toupper(removed) [01:29:40.523] for (kk in seq_along(NAMES)) { [01:29:40.523] name <- removed[[kk]] [01:29:40.523] NAME <- NAMES[[kk]] [01:29:40.523] if (name != NAME && is.element(NAME, old_names)) [01:29:40.523] next [01:29:40.523] args[[name]] <- ...future.oldEnvVars[[name]] [01:29:40.523] } [01:29:40.523] if (length(args) > 0) [01:29:40.523] base::do.call(base::Sys.setenv, args = args) [01:29:40.523] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:29:40.523] } [01:29:40.523] else { [01:29:40.523] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:29:40.523] } [01:29:40.523] { [01:29:40.523] if (base::length(...future.futureOptionsAdded) > [01:29:40.523] 0L) { [01:29:40.523] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:29:40.523] base::names(opts) <- ...future.futureOptionsAdded [01:29:40.523] base::options(opts) [01:29:40.523] } [01:29:40.523] { [01:29:40.523] { [01:29:40.523] NULL [01:29:40.523] RNGkind("Mersenne-Twister") [01:29:40.523] base::rm(list = ".Random.seed", envir = base::globalenv(), [01:29:40.523] inherits = FALSE) [01:29:40.523] } [01:29:40.523] options(future.plan = NULL) [01:29:40.523] if (is.na(NA_character_)) [01:29:40.523] Sys.unsetenv("R_FUTURE_PLAN") [01:29:40.523] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:29:40.523] future::plan(list(function (..., abc = FALSE, [01:29:40.523] envir = parent.frame()) [01:29:40.523] strategy(..., abc = abc, envir = envir)), .cleanup = FALSE, [01:29:40.523] .init = FALSE) [01:29:40.523] } [01:29:40.523] } [01:29:40.523] } [01:29:40.523] }) [01:29:40.523] if (TRUE) { [01:29:40.523] base::sink(type = "output", split = FALSE) [01:29:40.523] if (TRUE) { [01:29:40.523] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:29:40.523] } [01:29:40.523] else { [01:29:40.523] ...future.result["stdout"] <- base::list(NULL) [01:29:40.523] } [01:29:40.523] base::close(...future.stdout) [01:29:40.523] ...future.stdout <- NULL [01:29:40.523] } [01:29:40.523] ...future.result$conditions <- ...future.conditions [01:29:40.523] ...future.result$finished <- base::Sys.time() [01:29:40.523] ...future.result [01:29:40.523] } [01:29:40.528] plan(): Setting new future strategy stack: [01:29:40.528] List of future strategies: [01:29:40.528] 1. sequential: [01:29:40.528] - args: function (..., envir = parent.frame(), workers = "") [01:29:40.528] - tweaked: FALSE [01:29:40.528] - call: NULL [01:29:40.528] plan(): nbrOfWorkers() = 1 [01:29:40.530] plan(): Setting new future strategy stack: [01:29:40.530] List of future strategies: [01:29:40.530] 1. sequential: [01:29:40.530] - args: function (..., abc = FALSE, envir = parent.frame(), workers = "") [01:29:40.530] - tweaked: TRUE [01:29:40.530] - call: plan(sequential, abc = FALSE) [01:29:40.530] plan(): nbrOfWorkers() = 1 [01:29:40.531] SequentialFuture started (and completed) [01:29:40.531] - Launch lazy future ... done [01:29:40.531] run() for 'SequentialFuture' ... done > print(x) [1] 1 > stopifnot(a == 0, x == 1) > > x %<-% { a <- 2; a } %tweak% list(abc = TRUE) [01:29:40.532] plan(): Setting new future strategy stack: [01:29:40.532] List of future strategies: [01:29:40.532] 1. sequential: [01:29:40.532] - args: function (..., abc = TRUE, envir = parent.frame(), workers = "") [01:29:40.532] - tweaked: TRUE [01:29:40.532] - call: plan(sequential, abc = FALSE) [01:29:40.533] plan(): nbrOfWorkers() = 1 [01:29:40.533] getGlobalsAndPackages() ... [01:29:40.533] Searching for globals... [01:29:40.535] - globals found: [2] '{', '<-' [01:29:40.535] Searching for globals ... DONE [01:29:40.535] Resolving globals: FALSE [01:29:40.535] [01:29:40.536] [01:29:40.536] getGlobalsAndPackages() ... DONE [01:29:40.536] run() for 'Future' ... [01:29:40.536] - state: 'created' [01:29:40.536] - Future backend: 'FutureStrategy', 'tweaked', 'tweaked', 'sequential', 'uniprocess', 'future', 'function' [01:29:40.537] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [01:29:40.537] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [01:29:40.537] - Field: 'label' [01:29:40.537] - Field: 'local' [01:29:40.538] - Field: 'owner' [01:29:40.538] - Field: 'envir' [01:29:40.538] - Field: 'packages' [01:29:40.538] - Field: 'gc' [01:29:40.538] - Field: 'conditions' [01:29:40.539] - Field: 'expr' [01:29:40.539] - Field: 'uuid' [01:29:40.539] - Field: 'seed' [01:29:40.539] - Field: 'version' [01:29:40.539] - Field: 'result' [01:29:40.539] - Field: 'asynchronous' [01:29:40.540] - Field: 'calls' [01:29:40.540] - Field: 'abc' [01:29:40.540] - Field: 'globals' [01:29:40.540] - Field: 'stdout' [01:29:40.540] - Field: 'earlySignal' [01:29:40.541] - Field: 'lazy' [01:29:40.541] - Field: 'state' [01:29:40.541] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [01:29:40.541] - Launch lazy future ... [01:29:40.541] Packages needed by the future expression (n = 0): [01:29:40.541] Packages needed by future strategies (n = 0): [01:29:40.542] { [01:29:40.542] { [01:29:40.542] { [01:29:40.542] ...future.startTime <- base::Sys.time() [01:29:40.542] { [01:29:40.542] { [01:29:40.542] { [01:29:40.542] base::local({ [01:29:40.542] has_future <- base::requireNamespace("future", [01:29:40.542] quietly = TRUE) [01:29:40.542] if (has_future) { [01:29:40.542] ns <- base::getNamespace("future") [01:29:40.542] version <- ns[[".package"]][["version"]] [01:29:40.542] if (is.null(version)) [01:29:40.542] version <- utils::packageVersion("future") [01:29:40.542] } [01:29:40.542] else { [01:29:40.542] version <- NULL [01:29:40.542] } [01:29:40.542] if (!has_future || version < "1.8.0") { [01:29:40.542] info <- base::c(r_version = base::gsub("R version ", [01:29:40.542] "", base::R.version$version.string), [01:29:40.542] platform = base::sprintf("%s (%s-bit)", [01:29:40.542] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:29:40.542] os = base::paste(base::Sys.info()[base::c("sysname", [01:29:40.542] "release", "version")], collapse = " "), [01:29:40.542] hostname = base::Sys.info()[["nodename"]]) [01:29:40.542] info <- base::sprintf("%s: %s", base::names(info), [01:29:40.542] info) [01:29:40.542] info <- base::paste(info, collapse = "; ") [01:29:40.542] if (!has_future) { [01:29:40.542] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:29:40.542] info) [01:29:40.542] } [01:29:40.542] else { [01:29:40.542] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:29:40.542] info, version) [01:29:40.542] } [01:29:40.542] base::stop(msg) [01:29:40.542] } [01:29:40.542] }) [01:29:40.542] } [01:29:40.542] options(future.plan = NULL) [01:29:40.542] Sys.unsetenv("R_FUTURE_PLAN") [01:29:40.542] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:29:40.542] } [01:29:40.542] ...future.workdir <- getwd() [01:29:40.542] } [01:29:40.542] ...future.oldOptions <- base::as.list(base::.Options) [01:29:40.542] ...future.oldEnvVars <- base::Sys.getenv() [01:29:40.542] } [01:29:40.542] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:29:40.542] future.globals.maxSize = NULL, future.globals.method = NULL, [01:29:40.542] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:29:40.542] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:29:40.542] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:29:40.542] future.stdout.windows.reencode = NULL, width = 80L) [01:29:40.542] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:29:40.542] base::names(...future.oldOptions)) [01:29:40.542] } [01:29:40.542] if (FALSE) { [01:29:40.542] } [01:29:40.542] else { [01:29:40.542] if (TRUE) { [01:29:40.542] ...future.stdout <- base::rawConnection(base::raw(0L), [01:29:40.542] open = "w") [01:29:40.542] } [01:29:40.542] else { [01:29:40.542] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:29:40.542] windows = "NUL", "/dev/null"), open = "w") [01:29:40.542] } [01:29:40.542] base::sink(...future.stdout, type = "output", split = FALSE) [01:29:40.542] base::on.exit(if (!base::is.null(...future.stdout)) { [01:29:40.542] base::sink(type = "output", split = FALSE) [01:29:40.542] base::close(...future.stdout) [01:29:40.542] }, add = TRUE) [01:29:40.542] } [01:29:40.542] ...future.frame <- base::sys.nframe() [01:29:40.542] ...future.conditions <- base::list() [01:29:40.542] ...future.rng <- base::globalenv()$.Random.seed [01:29:40.542] if (FALSE) { [01:29:40.542] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:29:40.542] "...future.value", "...future.globalenv.names", ".Random.seed") [01:29:40.542] } [01:29:40.542] ...future.result <- base::tryCatch({ [01:29:40.542] base::withCallingHandlers({ [01:29:40.542] ...future.value <- base::withVisible(base::local({ [01:29:40.542] a <- 2 [01:29:40.542] a [01:29:40.542] })) [01:29:40.542] future::FutureResult(value = ...future.value$value, [01:29:40.542] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:29:40.542] ...future.rng), globalenv = if (FALSE) [01:29:40.542] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:29:40.542] ...future.globalenv.names)) [01:29:40.542] else NULL, started = ...future.startTime, version = "1.8") [01:29:40.542] }, condition = base::local({ [01:29:40.542] c <- base::c [01:29:40.542] inherits <- base::inherits [01:29:40.542] invokeRestart <- base::invokeRestart [01:29:40.542] length <- base::length [01:29:40.542] list <- base::list [01:29:40.542] seq.int <- base::seq.int [01:29:40.542] signalCondition <- base::signalCondition [01:29:40.542] sys.calls <- base::sys.calls [01:29:40.542] `[[` <- base::`[[` [01:29:40.542] `+` <- base::`+` [01:29:40.542] `<<-` <- base::`<<-` [01:29:40.542] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:29:40.542] calls[seq.int(from = from + 12L, to = length(calls) - [01:29:40.542] 3L)] [01:29:40.542] } [01:29:40.542] function(cond) { [01:29:40.542] is_error <- inherits(cond, "error") [01:29:40.542] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:29:40.542] NULL) [01:29:40.542] if (is_error) { [01:29:40.542] sessionInformation <- function() { [01:29:40.542] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:29:40.542] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:29:40.542] search = base::search(), system = base::Sys.info()) [01:29:40.542] } [01:29:40.542] ...future.conditions[[length(...future.conditions) + [01:29:40.542] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:29:40.542] cond$call), session = sessionInformation(), [01:29:40.542] timestamp = base::Sys.time(), signaled = 0L) [01:29:40.542] signalCondition(cond) [01:29:40.542] } [01:29:40.542] else if (!ignore && TRUE && inherits(cond, c("condition", [01:29:40.542] "immediateCondition"))) { [01:29:40.542] signal <- TRUE && inherits(cond, "immediateCondition") [01:29:40.542] ...future.conditions[[length(...future.conditions) + [01:29:40.542] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:29:40.542] if (TRUE && !signal) { [01:29:40.542] muffleCondition <- function (cond, pattern = "^muffle") [01:29:40.542] { [01:29:40.542] inherits <- base::inherits [01:29:40.542] invokeRestart <- base::invokeRestart [01:29:40.542] is.null <- base::is.null [01:29:40.542] muffled <- FALSE [01:29:40.542] if (inherits(cond, "message")) { [01:29:40.542] muffled <- grepl(pattern, "muffleMessage") [01:29:40.542] if (muffled) [01:29:40.542] invokeRestart("muffleMessage") [01:29:40.542] } [01:29:40.542] else if (inherits(cond, "warning")) { [01:29:40.542] muffled <- grepl(pattern, "muffleWarning") [01:29:40.542] if (muffled) [01:29:40.542] invokeRestart("muffleWarning") [01:29:40.542] } [01:29:40.542] else if (inherits(cond, "condition")) { [01:29:40.542] if (!is.null(pattern)) { [01:29:40.542] computeRestarts <- base::computeRestarts [01:29:40.542] grepl <- base::grepl [01:29:40.542] restarts <- computeRestarts(cond) [01:29:40.542] for (restart in restarts) { [01:29:40.542] name <- restart$name [01:29:40.542] if (is.null(name)) [01:29:40.542] next [01:29:40.542] if (!grepl(pattern, name)) [01:29:40.542] next [01:29:40.542] invokeRestart(restart) [01:29:40.542] muffled <- TRUE [01:29:40.542] break [01:29:40.542] } [01:29:40.542] } [01:29:40.542] } [01:29:40.542] invisible(muffled) [01:29:40.542] } [01:29:40.542] muffleCondition(cond, pattern = "^muffle") [01:29:40.542] } [01:29:40.542] } [01:29:40.542] else { [01:29:40.542] if (TRUE) { [01:29:40.542] muffleCondition <- function (cond, pattern = "^muffle") [01:29:40.542] { [01:29:40.542] inherits <- base::inherits [01:29:40.542] invokeRestart <- base::invokeRestart [01:29:40.542] is.null <- base::is.null [01:29:40.542] muffled <- FALSE [01:29:40.542] if (inherits(cond, "message")) { [01:29:40.542] muffled <- grepl(pattern, "muffleMessage") [01:29:40.542] if (muffled) [01:29:40.542] invokeRestart("muffleMessage") [01:29:40.542] } [01:29:40.542] else if (inherits(cond, "warning")) { [01:29:40.542] muffled <- grepl(pattern, "muffleWarning") [01:29:40.542] if (muffled) [01:29:40.542] invokeRestart("muffleWarning") [01:29:40.542] } [01:29:40.542] else if (inherits(cond, "condition")) { [01:29:40.542] if (!is.null(pattern)) { [01:29:40.542] computeRestarts <- base::computeRestarts [01:29:40.542] grepl <- base::grepl [01:29:40.542] restarts <- computeRestarts(cond) [01:29:40.542] for (restart in restarts) { [01:29:40.542] name <- restart$name [01:29:40.542] if (is.null(name)) [01:29:40.542] next [01:29:40.542] if (!grepl(pattern, name)) [01:29:40.542] next [01:29:40.542] invokeRestart(restart) [01:29:40.542] muffled <- TRUE [01:29:40.542] break [01:29:40.542] } [01:29:40.542] } [01:29:40.542] } [01:29:40.542] invisible(muffled) [01:29:40.542] } [01:29:40.542] muffleCondition(cond, pattern = "^muffle") [01:29:40.542] } [01:29:40.542] } [01:29:40.542] } [01:29:40.542] })) [01:29:40.542] }, error = function(ex) { [01:29:40.542] base::structure(base::list(value = NULL, visible = NULL, [01:29:40.542] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:29:40.542] ...future.rng), started = ...future.startTime, [01:29:40.542] finished = Sys.time(), session_uuid = NA_character_, [01:29:40.542] version = "1.8"), class = "FutureResult") [01:29:40.542] }, finally = { [01:29:40.542] if (!identical(...future.workdir, getwd())) [01:29:40.542] setwd(...future.workdir) [01:29:40.542] { [01:29:40.542] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:29:40.542] ...future.oldOptions$nwarnings <- NULL [01:29:40.542] } [01:29:40.542] base::options(...future.oldOptions) [01:29:40.542] if (.Platform$OS.type == "windows") { [01:29:40.542] old_names <- names(...future.oldEnvVars) [01:29:40.542] envs <- base::Sys.getenv() [01:29:40.542] names <- names(envs) [01:29:40.542] common <- intersect(names, old_names) [01:29:40.542] added <- setdiff(names, old_names) [01:29:40.542] removed <- setdiff(old_names, names) [01:29:40.542] changed <- common[...future.oldEnvVars[common] != [01:29:40.542] envs[common]] [01:29:40.542] NAMES <- toupper(changed) [01:29:40.542] args <- list() [01:29:40.542] for (kk in seq_along(NAMES)) { [01:29:40.542] name <- changed[[kk]] [01:29:40.542] NAME <- NAMES[[kk]] [01:29:40.542] if (name != NAME && is.element(NAME, old_names)) [01:29:40.542] next [01:29:40.542] args[[name]] <- ...future.oldEnvVars[[name]] [01:29:40.542] } [01:29:40.542] NAMES <- toupper(added) [01:29:40.542] for (kk in seq_along(NAMES)) { [01:29:40.542] name <- added[[kk]] [01:29:40.542] NAME <- NAMES[[kk]] [01:29:40.542] if (name != NAME && is.element(NAME, old_names)) [01:29:40.542] next [01:29:40.542] args[[name]] <- "" [01:29:40.542] } [01:29:40.542] NAMES <- toupper(removed) [01:29:40.542] for (kk in seq_along(NAMES)) { [01:29:40.542] name <- removed[[kk]] [01:29:40.542] NAME <- NAMES[[kk]] [01:29:40.542] if (name != NAME && is.element(NAME, old_names)) [01:29:40.542] next [01:29:40.542] args[[name]] <- ...future.oldEnvVars[[name]] [01:29:40.542] } [01:29:40.542] if (length(args) > 0) [01:29:40.542] base::do.call(base::Sys.setenv, args = args) [01:29:40.542] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:29:40.542] } [01:29:40.542] else { [01:29:40.542] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:29:40.542] } [01:29:40.542] { [01:29:40.542] if (base::length(...future.futureOptionsAdded) > [01:29:40.542] 0L) { [01:29:40.542] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:29:40.542] base::names(opts) <- ...future.futureOptionsAdded [01:29:40.542] base::options(opts) [01:29:40.542] } [01:29:40.542] { [01:29:40.542] { [01:29:40.542] NULL [01:29:40.542] RNGkind("Mersenne-Twister") [01:29:40.542] base::rm(list = ".Random.seed", envir = base::globalenv(), [01:29:40.542] inherits = FALSE) [01:29:40.542] } [01:29:40.542] options(future.plan = NULL) [01:29:40.542] if (is.na(NA_character_)) [01:29:40.542] Sys.unsetenv("R_FUTURE_PLAN") [01:29:40.542] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:29:40.542] future::plan(list(function (..., abc = TRUE, [01:29:40.542] envir = parent.frame()) [01:29:40.542] strategy(..., abc = abc, envir = envir)), .cleanup = FALSE, [01:29:40.542] .init = FALSE) [01:29:40.542] } [01:29:40.542] } [01:29:40.542] } [01:29:40.542] }) [01:29:40.542] if (TRUE) { [01:29:40.542] base::sink(type = "output", split = FALSE) [01:29:40.542] if (TRUE) { [01:29:40.542] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:29:40.542] } [01:29:40.542] else { [01:29:40.542] ...future.result["stdout"] <- base::list(NULL) [01:29:40.542] } [01:29:40.542] base::close(...future.stdout) [01:29:40.542] ...future.stdout <- NULL [01:29:40.542] } [01:29:40.542] ...future.result$conditions <- ...future.conditions [01:29:40.542] ...future.result$finished <- base::Sys.time() [01:29:40.542] ...future.result [01:29:40.542] } [01:29:40.546] plan(): Setting new future strategy stack: [01:29:40.546] List of future strategies: [01:29:40.546] 1. sequential: [01:29:40.546] - args: function (..., envir = parent.frame(), workers = "") [01:29:40.546] - tweaked: FALSE [01:29:40.546] - call: NULL [01:29:40.547] plan(): nbrOfWorkers() = 1 [01:29:40.548] plan(): Setting new future strategy stack: [01:29:40.548] List of future strategies: [01:29:40.548] 1. sequential: [01:29:40.548] - args: function (..., abc = TRUE, envir = parent.frame(), workers = "") [01:29:40.548] - tweaked: TRUE [01:29:40.548] - call: plan(sequential, abc = FALSE) [01:29:40.549] plan(): nbrOfWorkers() = 1 [01:29:40.549] SequentialFuture started (and completed) [01:29:40.549] - Launch lazy future ... done [01:29:40.550] run() for 'SequentialFuture' ... done [01:29:40.550] plan(): Setting new future strategy stack: [01:29:40.550] List of future strategies: [01:29:40.550] 1. sequential: [01:29:40.550] - args: function (..., abc = FALSE, envir = parent.frame(), workers = "") [01:29:40.550] - tweaked: TRUE [01:29:40.550] - call: plan(sequential, abc = FALSE) [01:29:40.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' [01:29:40.552] plan(): Setting new future strategy stack: [01:29:40.552] List of future strategies: [01:29:40.552] 1. sequential: [01:29:40.552] - args: function (..., envir = parent.frame(), workers = "") [01:29:40.552] - tweaked: FALSE [01:29:40.552] - call: plan(list(A = sequential, B = tweak(sequential, abc = FALSE))) [01:29:40.552] 2. sequential: [01:29:40.552] - args: function (..., abc = FALSE, envir = parent.frame(), workers = "") [01:29:40.552] - tweaked: TRUE [01:29:40.552] - call: plan(list(A = sequential, B = tweak(sequential, abc = FALSE))) [01:29:40.553] plan(): nbrOfWorkers() = 1 > a <- 0 > > x %<-% { + stopifnot(identical(names(plan("list")), "B")) + a <- 1 + a + } [01:29:40.554] getGlobalsAndPackages() ... [01:29:40.554] Searching for globals... [01:29:40.558] - globals found: [6] '{', 'stopifnot', 'identical', 'names', 'plan', '<-' [01:29:40.559] Searching for globals ... DONE [01:29:40.559] Resolving globals: FALSE [01:29:40.560] The total size of the 1 globals is 403.23 KiB (412912 bytes) [01:29:40.561] 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') [01:29:40.561] - globals: [1] 'plan' [01:29:40.561] [01:29:40.561] getGlobalsAndPackages() ... DONE [01:29:40.562] run() for 'Future' ... [01:29:40.562] - state: 'created' [01:29:40.562] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [01:29:40.562] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [01:29:40.563] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [01:29:40.563] - Field: 'label' [01:29:40.563] - Field: 'local' [01:29:40.563] - Field: 'owner' [01:29:40.563] - Field: 'envir' [01:29:40.563] - Field: 'packages' [01:29:40.564] - Field: 'gc' [01:29:40.564] - Field: 'conditions' [01:29:40.564] - Field: 'expr' [01:29:40.564] - Field: 'uuid' [01:29:40.564] - Field: 'seed' [01:29:40.565] - Field: 'version' [01:29:40.565] - Field: 'result' [01:29:40.565] - Field: 'asynchronous' [01:29:40.565] - Field: 'calls' [01:29:40.565] - Field: 'globals' [01:29:40.566] - Field: 'stdout' [01:29:40.566] - Field: 'earlySignal' [01:29:40.566] - Field: 'lazy' [01:29:40.566] - Field: 'state' [01:29:40.566] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [01:29:40.567] - Launch lazy future ... [01:29:40.567] Packages needed by the future expression (n = 0): [01:29:40.567] Packages needed by future strategies (n = 0): [01:29:40.568] { [01:29:40.568] { [01:29:40.568] { [01:29:40.568] ...future.startTime <- base::Sys.time() [01:29:40.568] { [01:29:40.568] { [01:29:40.568] { [01:29:40.568] base::local({ [01:29:40.568] has_future <- base::requireNamespace("future", [01:29:40.568] quietly = TRUE) [01:29:40.568] if (has_future) { [01:29:40.568] ns <- base::getNamespace("future") [01:29:40.568] version <- ns[[".package"]][["version"]] [01:29:40.568] if (is.null(version)) [01:29:40.568] version <- utils::packageVersion("future") [01:29:40.568] } [01:29:40.568] else { [01:29:40.568] version <- NULL [01:29:40.568] } [01:29:40.568] if (!has_future || version < "1.8.0") { [01:29:40.568] info <- base::c(r_version = base::gsub("R version ", [01:29:40.568] "", base::R.version$version.string), [01:29:40.568] platform = base::sprintf("%s (%s-bit)", [01:29:40.568] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:29:40.568] os = base::paste(base::Sys.info()[base::c("sysname", [01:29:40.568] "release", "version")], collapse = " "), [01:29:40.568] hostname = base::Sys.info()[["nodename"]]) [01:29:40.568] info <- base::sprintf("%s: %s", base::names(info), [01:29:40.568] info) [01:29:40.568] info <- base::paste(info, collapse = "; ") [01:29:40.568] if (!has_future) { [01:29:40.568] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:29:40.568] info) [01:29:40.568] } [01:29:40.568] else { [01:29:40.568] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:29:40.568] info, version) [01:29:40.568] } [01:29:40.568] base::stop(msg) [01:29:40.568] } [01:29:40.568] }) [01:29:40.568] } [01:29:40.568] options(future.plan = NULL) [01:29:40.568] Sys.unsetenv("R_FUTURE_PLAN") [01:29:40.568] future::plan(list(B = function (..., abc = FALSE, [01:29:40.568] envir = parent.frame()) [01:29:40.568] strategy(..., abc = abc, envir = envir)), .cleanup = FALSE, [01:29:40.568] .init = FALSE) [01:29:40.568] } [01:29:40.568] ...future.workdir <- getwd() [01:29:40.568] } [01:29:40.568] ...future.oldOptions <- base::as.list(base::.Options) [01:29:40.568] ...future.oldEnvVars <- base::Sys.getenv() [01:29:40.568] } [01:29:40.568] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:29:40.568] future.globals.maxSize = NULL, future.globals.method = NULL, [01:29:40.568] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:29:40.568] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:29:40.568] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:29:40.568] future.stdout.windows.reencode = NULL, width = 80L) [01:29:40.568] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:29:40.568] base::names(...future.oldOptions)) [01:29:40.568] } [01:29:40.568] if (FALSE) { [01:29:40.568] } [01:29:40.568] else { [01:29:40.568] if (TRUE) { [01:29:40.568] ...future.stdout <- base::rawConnection(base::raw(0L), [01:29:40.568] open = "w") [01:29:40.568] } [01:29:40.568] else { [01:29:40.568] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:29:40.568] windows = "NUL", "/dev/null"), open = "w") [01:29:40.568] } [01:29:40.568] base::sink(...future.stdout, type = "output", split = FALSE) [01:29:40.568] base::on.exit(if (!base::is.null(...future.stdout)) { [01:29:40.568] base::sink(type = "output", split = FALSE) [01:29:40.568] base::close(...future.stdout) [01:29:40.568] }, add = TRUE) [01:29:40.568] } [01:29:40.568] ...future.frame <- base::sys.nframe() [01:29:40.568] ...future.conditions <- base::list() [01:29:40.568] ...future.rng <- base::globalenv()$.Random.seed [01:29:40.568] if (FALSE) { [01:29:40.568] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:29:40.568] "...future.value", "...future.globalenv.names", ".Random.seed") [01:29:40.568] } [01:29:40.568] ...future.result <- base::tryCatch({ [01:29:40.568] base::withCallingHandlers({ [01:29:40.568] ...future.value <- base::withVisible(base::local({ [01:29:40.568] stopifnot(identical(names(plan("list")), "B")) [01:29:40.568] a <- 1 [01:29:40.568] a [01:29:40.568] })) [01:29:40.568] future::FutureResult(value = ...future.value$value, [01:29:40.568] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:29:40.568] ...future.rng), globalenv = if (FALSE) [01:29:40.568] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:29:40.568] ...future.globalenv.names)) [01:29:40.568] else NULL, started = ...future.startTime, version = "1.8") [01:29:40.568] }, condition = base::local({ [01:29:40.568] c <- base::c [01:29:40.568] inherits <- base::inherits [01:29:40.568] invokeRestart <- base::invokeRestart [01:29:40.568] length <- base::length [01:29:40.568] list <- base::list [01:29:40.568] seq.int <- base::seq.int [01:29:40.568] signalCondition <- base::signalCondition [01:29:40.568] sys.calls <- base::sys.calls [01:29:40.568] `[[` <- base::`[[` [01:29:40.568] `+` <- base::`+` [01:29:40.568] `<<-` <- base::`<<-` [01:29:40.568] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:29:40.568] calls[seq.int(from = from + 12L, to = length(calls) - [01:29:40.568] 3L)] [01:29:40.568] } [01:29:40.568] function(cond) { [01:29:40.568] is_error <- inherits(cond, "error") [01:29:40.568] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:29:40.568] NULL) [01:29:40.568] if (is_error) { [01:29:40.568] sessionInformation <- function() { [01:29:40.568] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:29:40.568] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:29:40.568] search = base::search(), system = base::Sys.info()) [01:29:40.568] } [01:29:40.568] ...future.conditions[[length(...future.conditions) + [01:29:40.568] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:29:40.568] cond$call), session = sessionInformation(), [01:29:40.568] timestamp = base::Sys.time(), signaled = 0L) [01:29:40.568] signalCondition(cond) [01:29:40.568] } [01:29:40.568] else if (!ignore && TRUE && inherits(cond, c("condition", [01:29:40.568] "immediateCondition"))) { [01:29:40.568] signal <- TRUE && inherits(cond, "immediateCondition") [01:29:40.568] ...future.conditions[[length(...future.conditions) + [01:29:40.568] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:29:40.568] if (TRUE && !signal) { [01:29:40.568] muffleCondition <- function (cond, pattern = "^muffle") [01:29:40.568] { [01:29:40.568] inherits <- base::inherits [01:29:40.568] invokeRestart <- base::invokeRestart [01:29:40.568] is.null <- base::is.null [01:29:40.568] muffled <- FALSE [01:29:40.568] if (inherits(cond, "message")) { [01:29:40.568] muffled <- grepl(pattern, "muffleMessage") [01:29:40.568] if (muffled) [01:29:40.568] invokeRestart("muffleMessage") [01:29:40.568] } [01:29:40.568] else if (inherits(cond, "warning")) { [01:29:40.568] muffled <- grepl(pattern, "muffleWarning") [01:29:40.568] if (muffled) [01:29:40.568] invokeRestart("muffleWarning") [01:29:40.568] } [01:29:40.568] else if (inherits(cond, "condition")) { [01:29:40.568] if (!is.null(pattern)) { [01:29:40.568] computeRestarts <- base::computeRestarts [01:29:40.568] grepl <- base::grepl [01:29:40.568] restarts <- computeRestarts(cond) [01:29:40.568] for (restart in restarts) { [01:29:40.568] name <- restart$name [01:29:40.568] if (is.null(name)) [01:29:40.568] next [01:29:40.568] if (!grepl(pattern, name)) [01:29:40.568] next [01:29:40.568] invokeRestart(restart) [01:29:40.568] muffled <- TRUE [01:29:40.568] break [01:29:40.568] } [01:29:40.568] } [01:29:40.568] } [01:29:40.568] invisible(muffled) [01:29:40.568] } [01:29:40.568] muffleCondition(cond, pattern = "^muffle") [01:29:40.568] } [01:29:40.568] } [01:29:40.568] else { [01:29:40.568] if (TRUE) { [01:29:40.568] muffleCondition <- function (cond, pattern = "^muffle") [01:29:40.568] { [01:29:40.568] inherits <- base::inherits [01:29:40.568] invokeRestart <- base::invokeRestart [01:29:40.568] is.null <- base::is.null [01:29:40.568] muffled <- FALSE [01:29:40.568] if (inherits(cond, "message")) { [01:29:40.568] muffled <- grepl(pattern, "muffleMessage") [01:29:40.568] if (muffled) [01:29:40.568] invokeRestart("muffleMessage") [01:29:40.568] } [01:29:40.568] else if (inherits(cond, "warning")) { [01:29:40.568] muffled <- grepl(pattern, "muffleWarning") [01:29:40.568] if (muffled) [01:29:40.568] invokeRestart("muffleWarning") [01:29:40.568] } [01:29:40.568] else if (inherits(cond, "condition")) { [01:29:40.568] if (!is.null(pattern)) { [01:29:40.568] computeRestarts <- base::computeRestarts [01:29:40.568] grepl <- base::grepl [01:29:40.568] restarts <- computeRestarts(cond) [01:29:40.568] for (restart in restarts) { [01:29:40.568] name <- restart$name [01:29:40.568] if (is.null(name)) [01:29:40.568] next [01:29:40.568] if (!grepl(pattern, name)) [01:29:40.568] next [01:29:40.568] invokeRestart(restart) [01:29:40.568] muffled <- TRUE [01:29:40.568] break [01:29:40.568] } [01:29:40.568] } [01:29:40.568] } [01:29:40.568] invisible(muffled) [01:29:40.568] } [01:29:40.568] muffleCondition(cond, pattern = "^muffle") [01:29:40.568] } [01:29:40.568] } [01:29:40.568] } [01:29:40.568] })) [01:29:40.568] }, error = function(ex) { [01:29:40.568] base::structure(base::list(value = NULL, visible = NULL, [01:29:40.568] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:29:40.568] ...future.rng), started = ...future.startTime, [01:29:40.568] finished = Sys.time(), session_uuid = NA_character_, [01:29:40.568] version = "1.8"), class = "FutureResult") [01:29:40.568] }, finally = { [01:29:40.568] if (!identical(...future.workdir, getwd())) [01:29:40.568] setwd(...future.workdir) [01:29:40.568] { [01:29:40.568] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:29:40.568] ...future.oldOptions$nwarnings <- NULL [01:29:40.568] } [01:29:40.568] base::options(...future.oldOptions) [01:29:40.568] if (.Platform$OS.type == "windows") { [01:29:40.568] old_names <- names(...future.oldEnvVars) [01:29:40.568] envs <- base::Sys.getenv() [01:29:40.568] names <- names(envs) [01:29:40.568] common <- intersect(names, old_names) [01:29:40.568] added <- setdiff(names, old_names) [01:29:40.568] removed <- setdiff(old_names, names) [01:29:40.568] changed <- common[...future.oldEnvVars[common] != [01:29:40.568] envs[common]] [01:29:40.568] NAMES <- toupper(changed) [01:29:40.568] args <- list() [01:29:40.568] for (kk in seq_along(NAMES)) { [01:29:40.568] name <- changed[[kk]] [01:29:40.568] NAME <- NAMES[[kk]] [01:29:40.568] if (name != NAME && is.element(NAME, old_names)) [01:29:40.568] next [01:29:40.568] args[[name]] <- ...future.oldEnvVars[[name]] [01:29:40.568] } [01:29:40.568] NAMES <- toupper(added) [01:29:40.568] for (kk in seq_along(NAMES)) { [01:29:40.568] name <- added[[kk]] [01:29:40.568] NAME <- NAMES[[kk]] [01:29:40.568] if (name != NAME && is.element(NAME, old_names)) [01:29:40.568] next [01:29:40.568] args[[name]] <- "" [01:29:40.568] } [01:29:40.568] NAMES <- toupper(removed) [01:29:40.568] for (kk in seq_along(NAMES)) { [01:29:40.568] name <- removed[[kk]] [01:29:40.568] NAME <- NAMES[[kk]] [01:29:40.568] if (name != NAME && is.element(NAME, old_names)) [01:29:40.568] next [01:29:40.568] args[[name]] <- ...future.oldEnvVars[[name]] [01:29:40.568] } [01:29:40.568] if (length(args) > 0) [01:29:40.568] base::do.call(base::Sys.setenv, args = args) [01:29:40.568] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:29:40.568] } [01:29:40.568] else { [01:29:40.568] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:29:40.568] } [01:29:40.568] { [01:29:40.568] if (base::length(...future.futureOptionsAdded) > [01:29:40.568] 0L) { [01:29:40.568] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:29:40.568] base::names(opts) <- ...future.futureOptionsAdded [01:29:40.568] base::options(opts) [01:29:40.568] } [01:29:40.568] { [01:29:40.568] { [01:29:40.568] NULL [01:29:40.568] RNGkind("Mersenne-Twister") [01:29:40.568] base::rm(list = ".Random.seed", envir = base::globalenv(), [01:29:40.568] inherits = FALSE) [01:29:40.568] } [01:29:40.568] options(future.plan = NULL) [01:29:40.568] if (is.na(NA_character_)) [01:29:40.568] Sys.unsetenv("R_FUTURE_PLAN") [01:29:40.568] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:29:40.568] future::plan(list(A = function (..., envir = parent.frame()) [01:29:40.568] { [01:29:40.568] future <- SequentialFuture(..., envir = envir) [01:29:40.568] if (!future$lazy) [01:29:40.568] future <- run(future) [01:29:40.568] invisible(future) [01:29:40.568] }, B = function (..., abc = FALSE, envir = parent.frame()) [01:29:40.568] strategy(..., abc = abc, envir = envir)), .cleanup = FALSE, [01:29:40.568] .init = FALSE) [01:29:40.568] } [01:29:40.568] } [01:29:40.568] } [01:29:40.568] }) [01:29:40.568] if (TRUE) { [01:29:40.568] base::sink(type = "output", split = FALSE) [01:29:40.568] if (TRUE) { [01:29:40.568] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:29:40.568] } [01:29:40.568] else { [01:29:40.568] ...future.result["stdout"] <- base::list(NULL) [01:29:40.568] } [01:29:40.568] base::close(...future.stdout) [01:29:40.568] ...future.stdout <- NULL [01:29:40.568] } [01:29:40.568] ...future.result$conditions <- ...future.conditions [01:29:40.568] ...future.result$finished <- base::Sys.time() [01:29:40.568] ...future.result [01:29:40.568] } [01:29:40.572] assign_globals() ... [01:29:40.572] List of 1 [01:29:40.572] $ plan:function (strategy = NULL, ..., substitute = TRUE, .skip = FALSE, .call = TRUE, [01:29:40.572] .cleanup = TRUE, .init = TRUE) [01:29:40.572] - attr(*, "where")=List of 1 [01:29:40.572] ..$ plan: [01:29:40.572] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list" [01:29:40.572] - attr(*, "resolved")= logi FALSE [01:29:40.572] - attr(*, "total_size")= num 412912 [01:29:40.572] - attr(*, "already-done")= logi TRUE [01:29:40.575] - copied 'plan' to environment [01:29:40.575] assign_globals() ... done [01:29:40.576] plan(): Setting new future strategy stack: [01:29:40.576] List of future strategies: [01:29:40.576] 1. sequential: [01:29:40.576] - args: function (..., abc = FALSE, envir = parent.frame(), workers = "") [01:29:40.576] - tweaked: TRUE [01:29:40.576] - call: plan(list(A = sequential, B = tweak(sequential, abc = FALSE))) [01:29:40.577] plan(): nbrOfWorkers() = 1 [01:29:40.578] plan(): Setting new future strategy stack: [01:29:40.578] List of future strategies: [01:29:40.578] 1. sequential: [01:29:40.578] - args: function (..., envir = parent.frame(), workers = "") [01:29:40.578] - tweaked: FALSE [01:29:40.578] - call: plan(list(A = sequential, B = tweak(sequential, abc = FALSE))) [01:29:40.578] 2. sequential: [01:29:40.578] - args: function (..., abc = FALSE, envir = parent.frame(), workers = "") [01:29:40.578] - tweaked: TRUE [01:29:40.578] - call: plan(list(A = sequential, B = tweak(sequential, abc = FALSE))) [01:29:40.579] plan(): nbrOfWorkers() = 1 [01:29:40.579] SequentialFuture started (and completed) [01:29:40.579] - Launch lazy future ... done [01:29:40.580] 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) [01:29:40.581] getGlobalsAndPackages() ... [01:29:40.582] Searching for globals... [01:29:40.584] - globals found: [4] '{', 'y', 'x', '~' [01:29:40.584] Searching for globals ... DONE [01:29:40.585] Resolving globals: FALSE [01:29:40.585] The total size of the 1 globals is 56 bytes (56 bytes) [01:29:40.586] 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') [01:29:40.586] - globals: [1] 'x' [01:29:40.586] [01:29:40.586] 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") [01:29:40.634] plan(): Setting new future strategy stack: [01:29:40.634] List of future strategies: [01:29:40.634] 1. FutureStrategy: [01:29:40.634] - args: function (..., envir = parent.frame(), workers = "") [01:29:40.634] - tweaked: FALSE [01:29:40.634] - call: future::plan(oplan) [01:29:40.635] plan(): nbrOfWorkers() = 1 Failed to undo environment variables: - Expected environment variables: [n=204] '!ExitCode', 'ALLUSERSPROFILE', 'APPDATA', 'BIBINPUTS', 'BINDIR', 'BSTINPUTS', 'COMMONPROGRAMFILES', 'COMPUTERNAME', 'COMSPEC', 'CURL_CA_BUNDLE', 'CYGWIN', 'CommonProgramFiles(x86)', 'CommonProgramW6432', 'DriverData', 'HOME', 'HOMEDRIVE', 'HOMEPATH', 'JAGS_ROOT', 'JAVA_HOME', 'LANGUAGE', 'LC_COLLATE', 'LC_MONETARY', 'LC_TIME', 'LOCALAPPDATA', 'LOGONSERVER', 'LS_HOME', 'LS_LICENSE_PATH', 'MAKE', 'MAKEFLAGS', 'MAKELEVEL', 'MFLAGS', 'MSMPI_BENCHMARKS', 'MSMPI_BIN', 'MSYS2_ENV_CONV_EXCL', 'NUMBER_OF_PROCESSORS', 'OCL', 'OMP_THREAD_LIMIT', 'OS', 'PATH', 'PATHEXT', 'PROCESSOR_ARCHITECTURE', 'PROCESSOR_IDENTIFIER', 'PROCESSOR_LEVEL', 'PROCESSOR_REVISION', 'PROGRAMFILES', 'PROMPT', 'PSModulePath', 'PUBLIC', 'PWD', 'ProgramData', 'ProgramFiles(x86)', 'ProgramW6432', '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_MBCS_CONVERSION_FAILURE_', '_R_CHECK_NATIVE_ROUTINE_REGISTRATION_', '_R_CHECK_NEWS_IN_PLAIN_TEXT_', '_R_CHECK_NO_RECOMMENDED_', '_R_CHECK_NO_STOP_ON_TEST_ERROR_', '_R_CHECK_ORPHANED_', '_R_CHECK_OVERWRITE_REGISTERED_S3_METHODS_', '_R_CHECK_PACKAGES_USED_IGNORE_UNUSED_IMPORTS_', '_R_CHECK_PACKAGES_USED_IN_TESTS_USE_SUBDIRS_', '_R_CHECK_PACKAGE_DATASETS_SUPPRESS_NOTES_', '_R_CHECK_PACKAGE_NAME_', '_R_CHECK_PKG_SIZES_', '_R_CHECK_PKG_SIZES_THRESHOLD_', '_R_CHECK_PRAGMAS_', '_R_CHECK_RD_EXAMPLES_T_AND_F_', '_R_CHECK_RD_LINE_WIDTHS_', '_R_CHECK_RD_MATH_RENDERING_', '_R_CHECK_RD_NOTE_LOST_BRACES_', '_R_CHECK_RD_VALIDATE_RD2HTML_', '_R_CHECK_REPLACING_IMPORTS_', '_R_CHECK_R_DEPENDS_', '_R_CHECK_S3_METHODS_SHOW_POSSIBLE_ISSUES_', '_R_CHECK_SCREEN_DEVICE_', '_R_CHECK_SERIALIZATION_', '_R_CHECK_SHLIB_OPENMP_FLAGS_', '_R_CHECK_SRC_MINUS_W_IMPLICIT_', '_R_CHECK_SUBDIRS_NOCASE_', '_R_CHECK_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_', '__R_CHECK_DOC_FILES_NOTE_IF_ALL_SPECIAL__', '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.65 0.04 1.25