R Under development (unstable) (2024-07-28 r86931 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 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") [17:29:57.704] plan(): Setting new future strategy stack: [17:29:57.706] List of future strategies: [17:29:57.706] 1. sequential: [17:29:57.706] - args: function (..., envir = parent.frame(), workers = "") [17:29:57.706] - tweaked: FALSE [17:29:57.706] - call: future::plan("sequential") [17:29:57.736] 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") [17:29:57.757] Option 'future.startup.script': TRUE [17:29:57.757] Future startup scripts considered: '.future.R', '~/.future.R' [17:29:57.757] 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 [17:29:57.789] [local output] makeClusterPSOCK() ... [17:29:57.843] [local output] Workers: [n = 1] 'localhost' [17:29:57.851] [local output] Base port: 36008 [17:29:57.852] [local output] Getting setup options for 1 cluster nodes ... [17:29:57.852] [local output] - Node #1 of 1 ... [17:29:57.853] [local output] localMachine=TRUE => revtunnel=FALSE [17:29:57.855] Testing if worker's PID can be inferred: '"D:/RCompile/recent/R/bin/x64/Rscript" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpgbsvJV/worker.rank=1.parallelly.parent=157876.268b4650ab51.pid\")), silent = TRUE)" -e "file.exists(\"D:/temp/RtmpgbsvJV/worker.rank=1.parallelly.parent=157876.268b4650ab51.pid\")"' [17:29:58.301] - Possible to infer worker's PID: TRUE [17:29:58.302] [local output] Rscript port: 36008 [17:29:58.303] [local output] Getting setup options for 1 cluster nodes ... done [17:29:58.303] [local output] - Parallel setup requested for some PSOCK nodes [17:29:58.304] [local output] Setting up PSOCK nodes in parallel [17:29:58.304] List of 36 [17:29:58.304] $ worker : chr "localhost" [17:29:58.304] ..- attr(*, "localhost")= logi TRUE [17:29:58.304] $ master : chr "localhost" [17:29:58.304] $ port : int 36008 [17:29:58.304] $ connectTimeout : num 120 [17:29:58.304] $ timeout : num 120 [17:29:58.304] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [17:29:58.304] $ homogeneous : logi TRUE [17:29:58.304] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=tweak.R:157876:CRANWIN3:CRAN\" -"| __truncated__ [17:29:58.304] $ rscript_envs : NULL [17:29:58.304] $ rscript_libs : NULL [17:29:58.304] $ rscript_startup : NULL [17:29:58.304] $ rscript_sh : chr [1:2] "cmd" "cmd" [17:29:58.304] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:29:58.304] $ methods : logi TRUE [17:29:58.304] $ socketOptions : chr "no-delay" [17:29:58.304] $ useXDR : logi FALSE [17:29:58.304] $ outfile : chr "/dev/null" [17:29:58.304] $ renice : int NA [17:29:58.304] $ rshcmd : NULL [17:29:58.304] $ user : chr(0) [17:29:58.304] $ revtunnel : logi FALSE [17:29:58.304] $ rshlogfile : NULL [17:29:58.304] $ rshopts : chr(0) [17:29:58.304] $ rank : int 1 [17:29:58.304] $ manual : logi FALSE [17:29:58.304] $ dryrun : logi FALSE [17:29:58.304] $ quiet : logi FALSE [17:29:58.304] $ setup_strategy : chr "parallel" [17:29:58.304] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:29:58.304] $ pidfile : chr "D:/temp/RtmpgbsvJV/worker.rank=1.parallelly.parent=157876.268b4650ab51.pid" [17:29:58.304] $ rshcmd_label : NULL [17:29:58.304] $ rsh_call : NULL [17:29:58.304] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:29:58.304] $ localMachine : logi TRUE [17:29:58.304] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [17:29:58.304] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [17:29:58.304] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [17:29:58.304] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [17:29:58.304] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [17:29:58.304] "cmd", "sh", "none"), default_packages = c("datasets", "utils", [17:29:58.304] "grDevices", "graphics", "stats", if (methods) "methods"), methods = TRUE, [17:29:58.304] socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [17:29:58.304] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [17:29:58.304] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [17:29:58.304] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [17:29:58.304] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [17:29:58.304] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [17:29:58.304] "parallel"), action = c("launch", "options"), verbose = FALSE) [17:29:58.304] $ arguments :List of 28 [17:29:58.304] ..$ worker : chr "localhost" [17:29:58.304] ..$ master : NULL [17:29:58.304] ..$ port : int 36008 [17:29:58.304] ..$ connectTimeout : num 120 [17:29:58.304] ..$ timeout : num 120 [17:29:58.304] ..$ rscript : NULL [17:29:58.304] ..$ homogeneous : NULL [17:29:58.304] ..$ rscript_args : NULL [17:29:58.304] ..$ rscript_envs : NULL [17:29:58.304] ..$ rscript_libs : NULL [17:29:58.304] ..$ rscript_startup : NULL [17:29:58.304] ..$ rscript_sh : chr "auto" [17:29:58.304] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:29:58.304] ..$ methods : logi TRUE [17:29:58.304] ..$ socketOptions : chr "no-delay" [17:29:58.304] ..$ useXDR : logi FALSE [17:29:58.304] ..$ outfile : chr "/dev/null" [17:29:58.304] ..$ renice : int NA [17:29:58.304] ..$ rshcmd : NULL [17:29:58.304] ..$ user : NULL [17:29:58.304] ..$ revtunnel : logi NA [17:29:58.304] ..$ rshlogfile : NULL [17:29:58.304] ..$ rshopts : NULL [17:29:58.304] ..$ rank : int 1 [17:29:58.304] ..$ manual : logi FALSE [17:29:58.304] ..$ dryrun : logi FALSE [17:29:58.304] ..$ quiet : logi FALSE [17:29:58.304] ..$ setup_strategy : chr "parallel" [17:29:58.304] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [17:29:58.341] [local output] System call to launch all workers: [17:29:58.341] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=tweak.R:157876:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpgbsvJV/worker.rank=1.parallelly.parent=157876.268b4650ab51.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=36008 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [17:29:58.341] [local output] Starting PSOCK main server [17:29:58.348] [local output] Workers launched [17:29:58.348] [local output] Waiting for workers to connect back [17:29:58.349] - [local output] 0 workers out of 1 ready [17:29:58.599] - [local output] 0 workers out of 1 ready [17:29:58.600] - [local output] 1 workers out of 1 ready [17:29:58.600] [local output] Launching of 1 workers completed [17:29:58.600] [local output] Number of nodes in cluster: 1 [17:29:58.601] [local output] Collecting session information from 1 workers [17:29:58.602] [local output] - Worker #1 of 1 [17:29:58.602] [local output] makeClusterPSOCK() ... done [17:29:58.603] plan(): Setting new future strategy stack: [17:29:58.604] List of future strategies: [17:29:58.604] 1. cluster: [17:29:58.604] - args: function (..., workers = "", envir = parent.frame()) [17:29:58.604] - tweaked: TRUE [17:29:58.604] - call: future::plan(future::cluster, workers = cl) [17:29:58.636] plan(): plan_init() of 'tweaked', 'cluster', 'multiprocess', 'future', 'function' ... [17:29:58.636] cluster: [17:29:58.636] - args: function (..., workers = "", envir = parent.frame()) [17:29:58.636] - tweaked: TRUE [17:29:58.636] - call: future::plan(future::cluster, workers = cl) [17:29:58.642] getGlobalsAndPackages() ... [17:29:58.642] Not searching for globals [17:29:58.643] - globals: [0] [17:29:58.643] getGlobalsAndPackages() ... DONE [17:29:58.654] Packages needed by the future expression (n = 0): [17:29:58.654] Packages needed by future strategies (n = 0): [17:29:58.656] { [17:29:58.656] { [17:29:58.656] { [17:29:58.656] ...future.startTime <- base::Sys.time() [17:29:58.656] { [17:29:58.656] { [17:29:58.656] { [17:29:58.656] base::local({ [17:29:58.656] has_future <- base::requireNamespace("future", [17:29:58.656] quietly = TRUE) [17:29:58.656] if (has_future) { [17:29:58.656] ns <- base::getNamespace("future") [17:29:58.656] version <- ns[[".package"]][["version"]] [17:29:58.656] if (is.null(version)) [17:29:58.656] version <- utils::packageVersion("future") [17:29:58.656] } [17:29:58.656] else { [17:29:58.656] version <- NULL [17:29:58.656] } [17:29:58.656] if (!has_future || version < "1.8.0") { [17:29:58.656] info <- base::c(r_version = base::gsub("R version ", [17:29:58.656] "", base::R.version$version.string), [17:29:58.656] platform = base::sprintf("%s (%s-bit)", [17:29:58.656] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:29:58.656] os = base::paste(base::Sys.info()[base::c("sysname", [17:29:58.656] "release", "version")], collapse = " "), [17:29:58.656] hostname = base::Sys.info()[["nodename"]]) [17:29:58.656] info <- base::sprintf("%s: %s", base::names(info), [17:29:58.656] info) [17:29:58.656] info <- base::paste(info, collapse = "; ") [17:29:58.656] if (!has_future) { [17:29:58.656] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:29:58.656] info) [17:29:58.656] } [17:29:58.656] else { [17:29:58.656] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:29:58.656] info, version) [17:29:58.656] } [17:29:58.656] base::stop(msg) [17:29:58.656] } [17:29:58.656] }) [17:29:58.656] } [17:29:58.656] ...future.strategy.old <- future::plan("list") [17:29:58.656] options(future.plan = NULL) [17:29:58.656] Sys.unsetenv("R_FUTURE_PLAN") [17:29:58.656] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:29:58.656] } [17:29:58.656] ...future.workdir <- getwd() [17:29:58.656] } [17:29:58.656] ...future.oldOptions <- base::as.list(base::.Options) [17:29:58.656] ...future.oldEnvVars <- base::Sys.getenv() [17:29:58.656] } [17:29:58.656] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:29:58.656] future.globals.maxSize = NULL, future.globals.method = NULL, [17:29:58.656] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:29:58.656] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:29:58.656] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:29:58.656] future.stdout.windows.reencode = NULL, width = 80L) [17:29:58.656] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:29:58.656] base::names(...future.oldOptions)) [17:29:58.656] } [17:29:58.656] if (FALSE) { [17:29:58.656] } [17:29:58.656] else { [17:29:58.656] if (TRUE) { [17:29:58.656] ...future.stdout <- base::rawConnection(base::raw(0L), [17:29:58.656] open = "w") [17:29:58.656] } [17:29:58.656] else { [17:29:58.656] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:29:58.656] windows = "NUL", "/dev/null"), open = "w") [17:29:58.656] } [17:29:58.656] base::sink(...future.stdout, type = "output", split = FALSE) [17:29:58.656] base::on.exit(if (!base::is.null(...future.stdout)) { [17:29:58.656] base::sink(type = "output", split = FALSE) [17:29:58.656] base::close(...future.stdout) [17:29:58.656] }, add = TRUE) [17:29:58.656] } [17:29:58.656] ...future.frame <- base::sys.nframe() [17:29:58.656] ...future.conditions <- base::list() [17:29:58.656] ...future.rng <- base::globalenv()$.Random.seed [17:29:58.656] if (FALSE) { [17:29:58.656] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:29:58.656] "...future.value", "...future.globalenv.names", ".Random.seed") [17:29:58.656] } [17:29:58.656] ...future.result <- base::tryCatch({ [17:29:58.656] base::withCallingHandlers({ [17:29:58.656] ...future.value <- base::withVisible(base::local({ [17:29:58.656] ...future.makeSendCondition <- base::local({ [17:29:58.656] sendCondition <- NULL [17:29:58.656] function(frame = 1L) { [17:29:58.656] if (is.function(sendCondition)) [17:29:58.656] return(sendCondition) [17:29:58.656] ns <- getNamespace("parallel") [17:29:58.656] if (exists("sendData", mode = "function", [17:29:58.656] envir = ns)) { [17:29:58.656] parallel_sendData <- get("sendData", mode = "function", [17:29:58.656] envir = ns) [17:29:58.656] envir <- sys.frame(frame) [17:29:58.656] master <- NULL [17:29:58.656] while (!identical(envir, .GlobalEnv) && [17:29:58.656] !identical(envir, emptyenv())) { [17:29:58.656] if (exists("master", mode = "list", envir = envir, [17:29:58.656] inherits = FALSE)) { [17:29:58.656] master <- get("master", mode = "list", [17:29:58.656] envir = envir, inherits = FALSE) [17:29:58.656] if (inherits(master, c("SOCKnode", [17:29:58.656] "SOCK0node"))) { [17:29:58.656] sendCondition <<- function(cond) { [17:29:58.656] data <- list(type = "VALUE", value = cond, [17:29:58.656] success = TRUE) [17:29:58.656] parallel_sendData(master, data) [17:29:58.656] } [17:29:58.656] return(sendCondition) [17:29:58.656] } [17:29:58.656] } [17:29:58.656] frame <- frame + 1L [17:29:58.656] envir <- sys.frame(frame) [17:29:58.656] } [17:29:58.656] } [17:29:58.656] sendCondition <<- function(cond) NULL [17:29:58.656] } [17:29:58.656] }) [17:29:58.656] withCallingHandlers({ [17:29:58.656] NA [17:29:58.656] }, immediateCondition = function(cond) { [17:29:58.656] sendCondition <- ...future.makeSendCondition() [17:29:58.656] sendCondition(cond) [17:29:58.656] muffleCondition <- function (cond, pattern = "^muffle") [17:29:58.656] { [17:29:58.656] inherits <- base::inherits [17:29:58.656] invokeRestart <- base::invokeRestart [17:29:58.656] is.null <- base::is.null [17:29:58.656] muffled <- FALSE [17:29:58.656] if (inherits(cond, "message")) { [17:29:58.656] muffled <- grepl(pattern, "muffleMessage") [17:29:58.656] if (muffled) [17:29:58.656] invokeRestart("muffleMessage") [17:29:58.656] } [17:29:58.656] else if (inherits(cond, "warning")) { [17:29:58.656] muffled <- grepl(pattern, "muffleWarning") [17:29:58.656] if (muffled) [17:29:58.656] invokeRestart("muffleWarning") [17:29:58.656] } [17:29:58.656] else if (inherits(cond, "condition")) { [17:29:58.656] if (!is.null(pattern)) { [17:29:58.656] computeRestarts <- base::computeRestarts [17:29:58.656] grepl <- base::grepl [17:29:58.656] restarts <- computeRestarts(cond) [17:29:58.656] for (restart in restarts) { [17:29:58.656] name <- restart$name [17:29:58.656] if (is.null(name)) [17:29:58.656] next [17:29:58.656] if (!grepl(pattern, name)) [17:29:58.656] next [17:29:58.656] invokeRestart(restart) [17:29:58.656] muffled <- TRUE [17:29:58.656] break [17:29:58.656] } [17:29:58.656] } [17:29:58.656] } [17:29:58.656] invisible(muffled) [17:29:58.656] } [17:29:58.656] muffleCondition(cond) [17:29:58.656] }) [17:29:58.656] })) [17:29:58.656] future::FutureResult(value = ...future.value$value, [17:29:58.656] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:29:58.656] ...future.rng), globalenv = if (FALSE) [17:29:58.656] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:29:58.656] ...future.globalenv.names)) [17:29:58.656] else NULL, started = ...future.startTime, version = "1.8") [17:29:58.656] }, condition = base::local({ [17:29:58.656] c <- base::c [17:29:58.656] inherits <- base::inherits [17:29:58.656] invokeRestart <- base::invokeRestart [17:29:58.656] length <- base::length [17:29:58.656] list <- base::list [17:29:58.656] seq.int <- base::seq.int [17:29:58.656] signalCondition <- base::signalCondition [17:29:58.656] sys.calls <- base::sys.calls [17:29:58.656] `[[` <- base::`[[` [17:29:58.656] `+` <- base::`+` [17:29:58.656] `<<-` <- base::`<<-` [17:29:58.656] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:29:58.656] calls[seq.int(from = from + 12L, to = length(calls) - [17:29:58.656] 3L)] [17:29:58.656] } [17:29:58.656] function(cond) { [17:29:58.656] is_error <- inherits(cond, "error") [17:29:58.656] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:29:58.656] NULL) [17:29:58.656] if (is_error) { [17:29:58.656] sessionInformation <- function() { [17:29:58.656] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:29:58.656] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:29:58.656] search = base::search(), system = base::Sys.info()) [17:29:58.656] } [17:29:58.656] ...future.conditions[[length(...future.conditions) + [17:29:58.656] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:29:58.656] cond$call), session = sessionInformation(), [17:29:58.656] timestamp = base::Sys.time(), signaled = 0L) [17:29:58.656] signalCondition(cond) [17:29:58.656] } [17:29:58.656] else if (!ignore && TRUE && inherits(cond, c("condition", [17:29:58.656] "immediateCondition"))) { [17:29:58.656] signal <- TRUE && inherits(cond, "immediateCondition") [17:29:58.656] ...future.conditions[[length(...future.conditions) + [17:29:58.656] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:29:58.656] if (TRUE && !signal) { [17:29:58.656] muffleCondition <- function (cond, pattern = "^muffle") [17:29:58.656] { [17:29:58.656] inherits <- base::inherits [17:29:58.656] invokeRestart <- base::invokeRestart [17:29:58.656] is.null <- base::is.null [17:29:58.656] muffled <- FALSE [17:29:58.656] if (inherits(cond, "message")) { [17:29:58.656] muffled <- grepl(pattern, "muffleMessage") [17:29:58.656] if (muffled) [17:29:58.656] invokeRestart("muffleMessage") [17:29:58.656] } [17:29:58.656] else if (inherits(cond, "warning")) { [17:29:58.656] muffled <- grepl(pattern, "muffleWarning") [17:29:58.656] if (muffled) [17:29:58.656] invokeRestart("muffleWarning") [17:29:58.656] } [17:29:58.656] else if (inherits(cond, "condition")) { [17:29:58.656] if (!is.null(pattern)) { [17:29:58.656] computeRestarts <- base::computeRestarts [17:29:58.656] grepl <- base::grepl [17:29:58.656] restarts <- computeRestarts(cond) [17:29:58.656] for (restart in restarts) { [17:29:58.656] name <- restart$name [17:29:58.656] if (is.null(name)) [17:29:58.656] next [17:29:58.656] if (!grepl(pattern, name)) [17:29:58.656] next [17:29:58.656] invokeRestart(restart) [17:29:58.656] muffled <- TRUE [17:29:58.656] break [17:29:58.656] } [17:29:58.656] } [17:29:58.656] } [17:29:58.656] invisible(muffled) [17:29:58.656] } [17:29:58.656] muffleCondition(cond, pattern = "^muffle") [17:29:58.656] } [17:29:58.656] } [17:29:58.656] else { [17:29:58.656] if (TRUE) { [17:29:58.656] muffleCondition <- function (cond, pattern = "^muffle") [17:29:58.656] { [17:29:58.656] inherits <- base::inherits [17:29:58.656] invokeRestart <- base::invokeRestart [17:29:58.656] is.null <- base::is.null [17:29:58.656] muffled <- FALSE [17:29:58.656] if (inherits(cond, "message")) { [17:29:58.656] muffled <- grepl(pattern, "muffleMessage") [17:29:58.656] if (muffled) [17:29:58.656] invokeRestart("muffleMessage") [17:29:58.656] } [17:29:58.656] else if (inherits(cond, "warning")) { [17:29:58.656] muffled <- grepl(pattern, "muffleWarning") [17:29:58.656] if (muffled) [17:29:58.656] invokeRestart("muffleWarning") [17:29:58.656] } [17:29:58.656] else if (inherits(cond, "condition")) { [17:29:58.656] if (!is.null(pattern)) { [17:29:58.656] computeRestarts <- base::computeRestarts [17:29:58.656] grepl <- base::grepl [17:29:58.656] restarts <- computeRestarts(cond) [17:29:58.656] for (restart in restarts) { [17:29:58.656] name <- restart$name [17:29:58.656] if (is.null(name)) [17:29:58.656] next [17:29:58.656] if (!grepl(pattern, name)) [17:29:58.656] next [17:29:58.656] invokeRestart(restart) [17:29:58.656] muffled <- TRUE [17:29:58.656] break [17:29:58.656] } [17:29:58.656] } [17:29:58.656] } [17:29:58.656] invisible(muffled) [17:29:58.656] } [17:29:58.656] muffleCondition(cond, pattern = "^muffle") [17:29:58.656] } [17:29:58.656] } [17:29:58.656] } [17:29:58.656] })) [17:29:58.656] }, error = function(ex) { [17:29:58.656] base::structure(base::list(value = NULL, visible = NULL, [17:29:58.656] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:29:58.656] ...future.rng), started = ...future.startTime, [17:29:58.656] finished = Sys.time(), session_uuid = NA_character_, [17:29:58.656] version = "1.8"), class = "FutureResult") [17:29:58.656] }, finally = { [17:29:58.656] if (!identical(...future.workdir, getwd())) [17:29:58.656] setwd(...future.workdir) [17:29:58.656] { [17:29:58.656] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:29:58.656] ...future.oldOptions$nwarnings <- NULL [17:29:58.656] } [17:29:58.656] base::options(...future.oldOptions) [17:29:58.656] if (.Platform$OS.type == "windows") { [17:29:58.656] old_names <- names(...future.oldEnvVars) [17:29:58.656] envs <- base::Sys.getenv() [17:29:58.656] names <- names(envs) [17:29:58.656] common <- intersect(names, old_names) [17:29:58.656] added <- setdiff(names, old_names) [17:29:58.656] removed <- setdiff(old_names, names) [17:29:58.656] changed <- common[...future.oldEnvVars[common] != [17:29:58.656] envs[common]] [17:29:58.656] NAMES <- toupper(changed) [17:29:58.656] args <- list() [17:29:58.656] for (kk in seq_along(NAMES)) { [17:29:58.656] name <- changed[[kk]] [17:29:58.656] NAME <- NAMES[[kk]] [17:29:58.656] if (name != NAME && is.element(NAME, old_names)) [17:29:58.656] next [17:29:58.656] args[[name]] <- ...future.oldEnvVars[[name]] [17:29:58.656] } [17:29:58.656] NAMES <- toupper(added) [17:29:58.656] for (kk in seq_along(NAMES)) { [17:29:58.656] name <- added[[kk]] [17:29:58.656] NAME <- NAMES[[kk]] [17:29:58.656] if (name != NAME && is.element(NAME, old_names)) [17:29:58.656] next [17:29:58.656] args[[name]] <- "" [17:29:58.656] } [17:29:58.656] NAMES <- toupper(removed) [17:29:58.656] for (kk in seq_along(NAMES)) { [17:29:58.656] name <- removed[[kk]] [17:29:58.656] NAME <- NAMES[[kk]] [17:29:58.656] if (name != NAME && is.element(NAME, old_names)) [17:29:58.656] next [17:29:58.656] args[[name]] <- ...future.oldEnvVars[[name]] [17:29:58.656] } [17:29:58.656] if (length(args) > 0) [17:29:58.656] base::do.call(base::Sys.setenv, args = args) [17:29:58.656] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:29:58.656] } [17:29:58.656] else { [17:29:58.656] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:29:58.656] } [17:29:58.656] { [17:29:58.656] if (base::length(...future.futureOptionsAdded) > [17:29:58.656] 0L) { [17:29:58.656] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:29:58.656] base::names(opts) <- ...future.futureOptionsAdded [17:29:58.656] base::options(opts) [17:29:58.656] } [17:29:58.656] { [17:29:58.656] NULL [17:29:58.656] options(future.plan = NULL) [17:29:58.656] if (is.na(NA_character_)) [17:29:58.656] Sys.unsetenv("R_FUTURE_PLAN") [17:29:58.656] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:29:58.656] future::plan(...future.strategy.old, .cleanup = FALSE, [17:29:58.656] .init = FALSE) [17:29:58.656] } [17:29:58.656] } [17:29:58.656] } [17:29:58.656] }) [17:29:58.656] if (TRUE) { [17:29:58.656] base::sink(type = "output", split = FALSE) [17:29:58.656] if (TRUE) { [17:29:58.656] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:29:58.656] } [17:29:58.656] else { [17:29:58.656] ...future.result["stdout"] <- base::list(NULL) [17:29:58.656] } [17:29:58.656] base::close(...future.stdout) [17:29:58.656] ...future.stdout <- NULL [17:29:58.656] } [17:29:58.656] ...future.result$conditions <- ...future.conditions [17:29:58.656] ...future.result$finished <- base::Sys.time() [17:29:58.656] ...future.result [17:29:58.656] } [17:29:58.811] ClusterFuture started [17:29:58.812] result() for ClusterFuture ... [17:29:58.813] receiveMessageFromWorker() for ClusterFuture ... [17:29:58.813] - Validating connection of ClusterFuture [17:29:58.908] - received message: FutureResult [17:29:58.908] - Received FutureResult [17:29:58.914] - Erased future from FutureRegistry [17:29:58.915] result() for ClusterFuture ... [17:29:58.915] - result already collected: FutureResult [17:29:58.915] result() for ClusterFuture ... done [17:29:58.916] receiveMessageFromWorker() for ClusterFuture ... done [17:29:58.916] result() for ClusterFuture ... done [17:29:58.916] result() for ClusterFuture ... [17:29:58.917] - result already collected: FutureResult [17:29:58.917] result() for ClusterFuture ... done [17:29:58.917] plan(): plan_init() of 'tweaked', 'cluster', 'multiprocess', 'future', 'function' ... DONE [17:29:58.918] plan(): nbrOfWorkers() = 1 [17:29:58.925] plan(): Setting new future strategy stack: [17:29:58.925] List of future strategies: [17:29:58.925] 1. sequential: [17:29:58.925] - args: function (..., envir = parent.frame(), workers = "") [17:29:58.925] - tweaked: FALSE [17:29:58.925] - call: future::plan("sequential") [17:29:58.927] 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) [17:29:58.928] plan(): Setting new future strategy stack: [17:29:58.928] List of future strategies: [17:29:58.928] 1. sequential: [17:29:58.928] - args: function (..., envir = parent.frame(), workers = "") [17:29:58.928] - tweaked: FALSE [17:29:58.928] - call: plan(sequential) [17:29:58.929] plan(): nbrOfWorkers() = 1 > > a <- 0 > x %<-% { a <- 1; a } [17:29:58.931] getGlobalsAndPackages() ... [17:29:58.931] Searching for globals... [17:29:58.942] - globals found: [2] '{', '<-' [17:29:58.942] Searching for globals ... DONE [17:29:58.943] Resolving globals: FALSE [17:29:58.944] [17:29:58.944] [17:29:58.944] getGlobalsAndPackages() ... DONE [17:29:58.946] run() for 'Future' ... [17:29:58.946] - state: 'created' [17:29:58.946] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:29:58.947] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:29:58.947] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:29:58.948] - Field: 'label' [17:29:58.948] - Field: 'local' [17:29:58.948] - Field: 'owner' [17:29:58.948] - Field: 'envir' [17:29:58.949] - Field: 'packages' [17:29:58.949] - Field: 'gc' [17:29:58.950] - Field: 'conditions' [17:29:58.950] - Field: 'expr' [17:29:58.950] - Field: 'uuid' [17:29:58.955] - Field: 'seed' [17:29:58.956] - Field: 'version' [17:29:58.956] - Field: 'result' [17:29:58.956] - Field: 'asynchronous' [17:29:58.957] - Field: 'calls' [17:29:58.957] - Field: 'globals' [17:29:58.957] - Field: 'stdout' [17:29:58.958] - Field: 'earlySignal' [17:29:58.958] - Field: 'lazy' [17:29:58.958] - Field: 'state' [17:29:58.959] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:29:58.959] - Launch lazy future ... [17:29:58.960] Packages needed by the future expression (n = 0): [17:29:58.960] Packages needed by future strategies (n = 0): [17:29:58.961] { [17:29:58.961] { [17:29:58.961] { [17:29:58.961] ...future.startTime <- base::Sys.time() [17:29:58.961] { [17:29:58.961] { [17:29:58.961] { [17:29:58.961] base::local({ [17:29:58.961] has_future <- base::requireNamespace("future", [17:29:58.961] quietly = TRUE) [17:29:58.961] if (has_future) { [17:29:58.961] ns <- base::getNamespace("future") [17:29:58.961] version <- ns[[".package"]][["version"]] [17:29:58.961] if (is.null(version)) [17:29:58.961] version <- utils::packageVersion("future") [17:29:58.961] } [17:29:58.961] else { [17:29:58.961] version <- NULL [17:29:58.961] } [17:29:58.961] if (!has_future || version < "1.8.0") { [17:29:58.961] info <- base::c(r_version = base::gsub("R version ", [17:29:58.961] "", base::R.version$version.string), [17:29:58.961] platform = base::sprintf("%s (%s-bit)", [17:29:58.961] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:29:58.961] os = base::paste(base::Sys.info()[base::c("sysname", [17:29:58.961] "release", "version")], collapse = " "), [17:29:58.961] hostname = base::Sys.info()[["nodename"]]) [17:29:58.961] info <- base::sprintf("%s: %s", base::names(info), [17:29:58.961] info) [17:29:58.961] info <- base::paste(info, collapse = "; ") [17:29:58.961] if (!has_future) { [17:29:58.961] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:29:58.961] info) [17:29:58.961] } [17:29:58.961] else { [17:29:58.961] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:29:58.961] info, version) [17:29:58.961] } [17:29:58.961] base::stop(msg) [17:29:58.961] } [17:29:58.961] }) [17:29:58.961] } [17:29:58.961] ...future.strategy.old <- future::plan("list") [17:29:58.961] options(future.plan = NULL) [17:29:58.961] Sys.unsetenv("R_FUTURE_PLAN") [17:29:58.961] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:29:58.961] } [17:29:58.961] ...future.workdir <- getwd() [17:29:58.961] } [17:29:58.961] ...future.oldOptions <- base::as.list(base::.Options) [17:29:58.961] ...future.oldEnvVars <- base::Sys.getenv() [17:29:58.961] } [17:29:58.961] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:29:58.961] future.globals.maxSize = NULL, future.globals.method = NULL, [17:29:58.961] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:29:58.961] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:29:58.961] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:29:58.961] future.stdout.windows.reencode = NULL, width = 80L) [17:29:58.961] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:29:58.961] base::names(...future.oldOptions)) [17:29:58.961] } [17:29:58.961] if (FALSE) { [17:29:58.961] } [17:29:58.961] else { [17:29:58.961] if (TRUE) { [17:29:58.961] ...future.stdout <- base::rawConnection(base::raw(0L), [17:29:58.961] open = "w") [17:29:58.961] } [17:29:58.961] else { [17:29:58.961] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:29:58.961] windows = "NUL", "/dev/null"), open = "w") [17:29:58.961] } [17:29:58.961] base::sink(...future.stdout, type = "output", split = FALSE) [17:29:58.961] base::on.exit(if (!base::is.null(...future.stdout)) { [17:29:58.961] base::sink(type = "output", split = FALSE) [17:29:58.961] base::close(...future.stdout) [17:29:58.961] }, add = TRUE) [17:29:58.961] } [17:29:58.961] ...future.frame <- base::sys.nframe() [17:29:58.961] ...future.conditions <- base::list() [17:29:58.961] ...future.rng <- base::globalenv()$.Random.seed [17:29:58.961] if (FALSE) { [17:29:58.961] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:29:58.961] "...future.value", "...future.globalenv.names", ".Random.seed") [17:29:58.961] } [17:29:58.961] ...future.result <- base::tryCatch({ [17:29:58.961] base::withCallingHandlers({ [17:29:58.961] ...future.value <- base::withVisible(base::local({ [17:29:58.961] a <- 1 [17:29:58.961] a [17:29:58.961] })) [17:29:58.961] future::FutureResult(value = ...future.value$value, [17:29:58.961] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:29:58.961] ...future.rng), globalenv = if (FALSE) [17:29:58.961] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:29:58.961] ...future.globalenv.names)) [17:29:58.961] else NULL, started = ...future.startTime, version = "1.8") [17:29:58.961] }, condition = base::local({ [17:29:58.961] c <- base::c [17:29:58.961] inherits <- base::inherits [17:29:58.961] invokeRestart <- base::invokeRestart [17:29:58.961] length <- base::length [17:29:58.961] list <- base::list [17:29:58.961] seq.int <- base::seq.int [17:29:58.961] signalCondition <- base::signalCondition [17:29:58.961] sys.calls <- base::sys.calls [17:29:58.961] `[[` <- base::`[[` [17:29:58.961] `+` <- base::`+` [17:29:58.961] `<<-` <- base::`<<-` [17:29:58.961] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:29:58.961] calls[seq.int(from = from + 12L, to = length(calls) - [17:29:58.961] 3L)] [17:29:58.961] } [17:29:58.961] function(cond) { [17:29:58.961] is_error <- inherits(cond, "error") [17:29:58.961] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:29:58.961] NULL) [17:29:58.961] if (is_error) { [17:29:58.961] sessionInformation <- function() { [17:29:58.961] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:29:58.961] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:29:58.961] search = base::search(), system = base::Sys.info()) [17:29:58.961] } [17:29:58.961] ...future.conditions[[length(...future.conditions) + [17:29:58.961] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:29:58.961] cond$call), session = sessionInformation(), [17:29:58.961] timestamp = base::Sys.time(), signaled = 0L) [17:29:58.961] signalCondition(cond) [17:29:58.961] } [17:29:58.961] else if (!ignore && TRUE && inherits(cond, c("condition", [17:29:58.961] "immediateCondition"))) { [17:29:58.961] signal <- TRUE && inherits(cond, "immediateCondition") [17:29:58.961] ...future.conditions[[length(...future.conditions) + [17:29:58.961] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:29:58.961] if (TRUE && !signal) { [17:29:58.961] muffleCondition <- function (cond, pattern = "^muffle") [17:29:58.961] { [17:29:58.961] inherits <- base::inherits [17:29:58.961] invokeRestart <- base::invokeRestart [17:29:58.961] is.null <- base::is.null [17:29:58.961] muffled <- FALSE [17:29:58.961] if (inherits(cond, "message")) { [17:29:58.961] muffled <- grepl(pattern, "muffleMessage") [17:29:58.961] if (muffled) [17:29:58.961] invokeRestart("muffleMessage") [17:29:58.961] } [17:29:58.961] else if (inherits(cond, "warning")) { [17:29:58.961] muffled <- grepl(pattern, "muffleWarning") [17:29:58.961] if (muffled) [17:29:58.961] invokeRestart("muffleWarning") [17:29:58.961] } [17:29:58.961] else if (inherits(cond, "condition")) { [17:29:58.961] if (!is.null(pattern)) { [17:29:58.961] computeRestarts <- base::computeRestarts [17:29:58.961] grepl <- base::grepl [17:29:58.961] restarts <- computeRestarts(cond) [17:29:58.961] for (restart in restarts) { [17:29:58.961] name <- restart$name [17:29:58.961] if (is.null(name)) [17:29:58.961] next [17:29:58.961] if (!grepl(pattern, name)) [17:29:58.961] next [17:29:58.961] invokeRestart(restart) [17:29:58.961] muffled <- TRUE [17:29:58.961] break [17:29:58.961] } [17:29:58.961] } [17:29:58.961] } [17:29:58.961] invisible(muffled) [17:29:58.961] } [17:29:58.961] muffleCondition(cond, pattern = "^muffle") [17:29:58.961] } [17:29:58.961] } [17:29:58.961] else { [17:29:58.961] if (TRUE) { [17:29:58.961] muffleCondition <- function (cond, pattern = "^muffle") [17:29:58.961] { [17:29:58.961] inherits <- base::inherits [17:29:58.961] invokeRestart <- base::invokeRestart [17:29:58.961] is.null <- base::is.null [17:29:58.961] muffled <- FALSE [17:29:58.961] if (inherits(cond, "message")) { [17:29:58.961] muffled <- grepl(pattern, "muffleMessage") [17:29:58.961] if (muffled) [17:29:58.961] invokeRestart("muffleMessage") [17:29:58.961] } [17:29:58.961] else if (inherits(cond, "warning")) { [17:29:58.961] muffled <- grepl(pattern, "muffleWarning") [17:29:58.961] if (muffled) [17:29:58.961] invokeRestart("muffleWarning") [17:29:58.961] } [17:29:58.961] else if (inherits(cond, "condition")) { [17:29:58.961] if (!is.null(pattern)) { [17:29:58.961] computeRestarts <- base::computeRestarts [17:29:58.961] grepl <- base::grepl [17:29:58.961] restarts <- computeRestarts(cond) [17:29:58.961] for (restart in restarts) { [17:29:58.961] name <- restart$name [17:29:58.961] if (is.null(name)) [17:29:58.961] next [17:29:58.961] if (!grepl(pattern, name)) [17:29:58.961] next [17:29:58.961] invokeRestart(restart) [17:29:58.961] muffled <- TRUE [17:29:58.961] break [17:29:58.961] } [17:29:58.961] } [17:29:58.961] } [17:29:58.961] invisible(muffled) [17:29:58.961] } [17:29:58.961] muffleCondition(cond, pattern = "^muffle") [17:29:58.961] } [17:29:58.961] } [17:29:58.961] } [17:29:58.961] })) [17:29:58.961] }, error = function(ex) { [17:29:58.961] base::structure(base::list(value = NULL, visible = NULL, [17:29:58.961] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:29:58.961] ...future.rng), started = ...future.startTime, [17:29:58.961] finished = Sys.time(), session_uuid = NA_character_, [17:29:58.961] version = "1.8"), class = "FutureResult") [17:29:58.961] }, finally = { [17:29:58.961] if (!identical(...future.workdir, getwd())) [17:29:58.961] setwd(...future.workdir) [17:29:58.961] { [17:29:58.961] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:29:58.961] ...future.oldOptions$nwarnings <- NULL [17:29:58.961] } [17:29:58.961] base::options(...future.oldOptions) [17:29:58.961] if (.Platform$OS.type == "windows") { [17:29:58.961] old_names <- names(...future.oldEnvVars) [17:29:58.961] envs <- base::Sys.getenv() [17:29:58.961] names <- names(envs) [17:29:58.961] common <- intersect(names, old_names) [17:29:58.961] added <- setdiff(names, old_names) [17:29:58.961] removed <- setdiff(old_names, names) [17:29:58.961] changed <- common[...future.oldEnvVars[common] != [17:29:58.961] envs[common]] [17:29:58.961] NAMES <- toupper(changed) [17:29:58.961] args <- list() [17:29:58.961] for (kk in seq_along(NAMES)) { [17:29:58.961] name <- changed[[kk]] [17:29:58.961] NAME <- NAMES[[kk]] [17:29:58.961] if (name != NAME && is.element(NAME, old_names)) [17:29:58.961] next [17:29:58.961] args[[name]] <- ...future.oldEnvVars[[name]] [17:29:58.961] } [17:29:58.961] NAMES <- toupper(added) [17:29:58.961] for (kk in seq_along(NAMES)) { [17:29:58.961] name <- added[[kk]] [17:29:58.961] NAME <- NAMES[[kk]] [17:29:58.961] if (name != NAME && is.element(NAME, old_names)) [17:29:58.961] next [17:29:58.961] args[[name]] <- "" [17:29:58.961] } [17:29:58.961] NAMES <- toupper(removed) [17:29:58.961] for (kk in seq_along(NAMES)) { [17:29:58.961] name <- removed[[kk]] [17:29:58.961] NAME <- NAMES[[kk]] [17:29:58.961] if (name != NAME && is.element(NAME, old_names)) [17:29:58.961] next [17:29:58.961] args[[name]] <- ...future.oldEnvVars[[name]] [17:29:58.961] } [17:29:58.961] if (length(args) > 0) [17:29:58.961] base::do.call(base::Sys.setenv, args = args) [17:29:58.961] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:29:58.961] } [17:29:58.961] else { [17:29:58.961] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:29:58.961] } [17:29:58.961] { [17:29:58.961] if (base::length(...future.futureOptionsAdded) > [17:29:58.961] 0L) { [17:29:58.961] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:29:58.961] base::names(opts) <- ...future.futureOptionsAdded [17:29:58.961] base::options(opts) [17:29:58.961] } [17:29:58.961] { [17:29:58.961] { [17:29:58.961] NULL [17:29:58.961] RNGkind("Mersenne-Twister") [17:29:58.961] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:29:58.961] inherits = FALSE) [17:29:58.961] } [17:29:58.961] options(future.plan = NULL) [17:29:58.961] if (is.na(NA_character_)) [17:29:58.961] Sys.unsetenv("R_FUTURE_PLAN") [17:29:58.961] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:29:58.961] future::plan(...future.strategy.old, .cleanup = FALSE, [17:29:58.961] .init = FALSE) [17:29:58.961] } [17:29:58.961] } [17:29:58.961] } [17:29:58.961] }) [17:29:58.961] if (TRUE) { [17:29:58.961] base::sink(type = "output", split = FALSE) [17:29:58.961] if (TRUE) { [17:29:58.961] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:29:58.961] } [17:29:58.961] else { [17:29:58.961] ...future.result["stdout"] <- base::list(NULL) [17:29:58.961] } [17:29:58.961] base::close(...future.stdout) [17:29:58.961] ...future.stdout <- NULL [17:29:58.961] } [17:29:58.961] ...future.result$conditions <- ...future.conditions [17:29:58.961] ...future.result$finished <- base::Sys.time() [17:29:58.961] ...future.result [17:29:58.961] } [17:29:58.967] plan(): Setting new future strategy stack: [17:29:58.967] List of future strategies: [17:29:58.967] 1. sequential: [17:29:58.967] - args: function (..., envir = parent.frame(), workers = "") [17:29:58.967] - tweaked: FALSE [17:29:58.967] - call: NULL [17:29:58.968] plan(): nbrOfWorkers() = 1 [17:29:58.971] plan(): Setting new future strategy stack: [17:29:58.971] List of future strategies: [17:29:58.971] 1. sequential: [17:29:58.971] - args: function (..., envir = parent.frame(), workers = "") [17:29:58.971] - tweaked: FALSE [17:29:58.971] - call: plan(sequential) [17:29:58.972] plan(): nbrOfWorkers() = 1 [17:29:58.972] SequentialFuture started (and completed) [17:29:58.973] - Launch lazy future ... done [17:29:58.973] run() for 'SequentialFuture' ... done > print(x) [1] 1 > stopifnot(a == 0, x == 1) > > > plan(sequential, abc = FALSE) Warning: Detected 1 unknown future arguments: 'abc' [17:29:58.974] plan(): Setting new future strategy stack: [17:29:58.975] List of future strategies: [17:29:58.975] 1. sequential: [17:29:58.975] - args: function (..., abc = FALSE, envir = parent.frame(), workers = "") [17:29:58.975] - tweaked: TRUE [17:29:58.975] - call: plan(sequential, abc = FALSE) [17:29:58.976] plan(): nbrOfWorkers() = 1 > > a <- 0 > x %<-% { a <- 1; a } [17:29:58.976] getGlobalsAndPackages() ... [17:29:58.977] Searching for globals... [17:29:58.979] - globals found: [2] '{', '<-' [17:29:58.980] Searching for globals ... DONE [17:29:58.980] Resolving globals: FALSE [17:29:58.981] [17:29:58.981] [17:29:58.981] getGlobalsAndPackages() ... DONE [17:29:58.982] run() for 'Future' ... [17:29:58.982] - state: 'created' [17:29:58.983] - Future backend: 'FutureStrategy', 'tweaked', 'sequential', 'uniprocess', 'future', 'function' [17:29:58.983] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:29:58.984] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:29:58.984] - Field: 'label' [17:29:58.984] - Field: 'local' [17:29:58.985] - Field: 'owner' [17:29:58.985] - Field: 'envir' [17:29:58.985] - Field: 'packages' [17:29:58.986] - Field: 'gc' [17:29:58.986] - Field: 'conditions' [17:29:58.986] - Field: 'expr' [17:29:58.987] - Field: 'uuid' [17:29:58.987] - Field: 'seed' [17:29:58.987] - Field: 'version' [17:29:58.988] - Field: 'result' [17:29:58.988] - Field: 'asynchronous' [17:29:58.989] - Field: 'calls' [17:29:58.989] - Field: 'abc' [17:29:58.989] - Field: 'globals' [17:29:58.990] - Field: 'stdout' [17:29:58.990] - Field: 'earlySignal' [17:29:58.990] - Field: 'lazy' [17:29:58.991] - Field: 'state' [17:29:58.991] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:29:58.991] - Launch lazy future ... [17:29:58.992] Packages needed by the future expression (n = 0): [17:29:58.992] Packages needed by future strategies (n = 0): [17:29:58.993] { [17:29:58.993] { [17:29:58.993] { [17:29:58.993] ...future.startTime <- base::Sys.time() [17:29:58.993] { [17:29:58.993] { [17:29:58.993] { [17:29:58.993] base::local({ [17:29:58.993] has_future <- base::requireNamespace("future", [17:29:58.993] quietly = TRUE) [17:29:58.993] if (has_future) { [17:29:58.993] ns <- base::getNamespace("future") [17:29:58.993] version <- ns[[".package"]][["version"]] [17:29:58.993] if (is.null(version)) [17:29:58.993] version <- utils::packageVersion("future") [17:29:58.993] } [17:29:58.993] else { [17:29:58.993] version <- NULL [17:29:58.993] } [17:29:58.993] if (!has_future || version < "1.8.0") { [17:29:58.993] info <- base::c(r_version = base::gsub("R version ", [17:29:58.993] "", base::R.version$version.string), [17:29:58.993] platform = base::sprintf("%s (%s-bit)", [17:29:58.993] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:29:58.993] os = base::paste(base::Sys.info()[base::c("sysname", [17:29:58.993] "release", "version")], collapse = " "), [17:29:58.993] hostname = base::Sys.info()[["nodename"]]) [17:29:58.993] info <- base::sprintf("%s: %s", base::names(info), [17:29:58.993] info) [17:29:58.993] info <- base::paste(info, collapse = "; ") [17:29:58.993] if (!has_future) { [17:29:58.993] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:29:58.993] info) [17:29:58.993] } [17:29:58.993] else { [17:29:58.993] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:29:58.993] info, version) [17:29:58.993] } [17:29:58.993] base::stop(msg) [17:29:58.993] } [17:29:58.993] }) [17:29:58.993] } [17:29:58.993] ...future.strategy.old <- future::plan("list") [17:29:58.993] options(future.plan = NULL) [17:29:58.993] Sys.unsetenv("R_FUTURE_PLAN") [17:29:58.993] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:29:58.993] } [17:29:58.993] ...future.workdir <- getwd() [17:29:58.993] } [17:29:58.993] ...future.oldOptions <- base::as.list(base::.Options) [17:29:58.993] ...future.oldEnvVars <- base::Sys.getenv() [17:29:58.993] } [17:29:58.993] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:29:58.993] future.globals.maxSize = NULL, future.globals.method = NULL, [17:29:58.993] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:29:58.993] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:29:58.993] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:29:58.993] future.stdout.windows.reencode = NULL, width = 80L) [17:29:58.993] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:29:58.993] base::names(...future.oldOptions)) [17:29:58.993] } [17:29:58.993] if (FALSE) { [17:29:58.993] } [17:29:58.993] else { [17:29:58.993] if (TRUE) { [17:29:58.993] ...future.stdout <- base::rawConnection(base::raw(0L), [17:29:58.993] open = "w") [17:29:58.993] } [17:29:58.993] else { [17:29:58.993] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:29:58.993] windows = "NUL", "/dev/null"), open = "w") [17:29:58.993] } [17:29:58.993] base::sink(...future.stdout, type = "output", split = FALSE) [17:29:58.993] base::on.exit(if (!base::is.null(...future.stdout)) { [17:29:58.993] base::sink(type = "output", split = FALSE) [17:29:58.993] base::close(...future.stdout) [17:29:58.993] }, add = TRUE) [17:29:58.993] } [17:29:58.993] ...future.frame <- base::sys.nframe() [17:29:58.993] ...future.conditions <- base::list() [17:29:58.993] ...future.rng <- base::globalenv()$.Random.seed [17:29:58.993] if (FALSE) { [17:29:58.993] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:29:58.993] "...future.value", "...future.globalenv.names", ".Random.seed") [17:29:58.993] } [17:29:58.993] ...future.result <- base::tryCatch({ [17:29:58.993] base::withCallingHandlers({ [17:29:58.993] ...future.value <- base::withVisible(base::local({ [17:29:58.993] a <- 1 [17:29:58.993] a [17:29:58.993] })) [17:29:58.993] future::FutureResult(value = ...future.value$value, [17:29:58.993] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:29:58.993] ...future.rng), globalenv = if (FALSE) [17:29:58.993] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:29:58.993] ...future.globalenv.names)) [17:29:58.993] else NULL, started = ...future.startTime, version = "1.8") [17:29:58.993] }, condition = base::local({ [17:29:58.993] c <- base::c [17:29:58.993] inherits <- base::inherits [17:29:58.993] invokeRestart <- base::invokeRestart [17:29:58.993] length <- base::length [17:29:58.993] list <- base::list [17:29:58.993] seq.int <- base::seq.int [17:29:58.993] signalCondition <- base::signalCondition [17:29:58.993] sys.calls <- base::sys.calls [17:29:58.993] `[[` <- base::`[[` [17:29:58.993] `+` <- base::`+` [17:29:58.993] `<<-` <- base::`<<-` [17:29:58.993] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:29:58.993] calls[seq.int(from = from + 12L, to = length(calls) - [17:29:58.993] 3L)] [17:29:58.993] } [17:29:58.993] function(cond) { [17:29:58.993] is_error <- inherits(cond, "error") [17:29:58.993] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:29:58.993] NULL) [17:29:58.993] if (is_error) { [17:29:58.993] sessionInformation <- function() { [17:29:58.993] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:29:58.993] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:29:58.993] search = base::search(), system = base::Sys.info()) [17:29:58.993] } [17:29:58.993] ...future.conditions[[length(...future.conditions) + [17:29:58.993] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:29:58.993] cond$call), session = sessionInformation(), [17:29:58.993] timestamp = base::Sys.time(), signaled = 0L) [17:29:58.993] signalCondition(cond) [17:29:58.993] } [17:29:58.993] else if (!ignore && TRUE && inherits(cond, c("condition", [17:29:58.993] "immediateCondition"))) { [17:29:58.993] signal <- TRUE && inherits(cond, "immediateCondition") [17:29:58.993] ...future.conditions[[length(...future.conditions) + [17:29:58.993] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:29:58.993] if (TRUE && !signal) { [17:29:58.993] muffleCondition <- function (cond, pattern = "^muffle") [17:29:58.993] { [17:29:58.993] inherits <- base::inherits [17:29:58.993] invokeRestart <- base::invokeRestart [17:29:58.993] is.null <- base::is.null [17:29:58.993] muffled <- FALSE [17:29:58.993] if (inherits(cond, "message")) { [17:29:58.993] muffled <- grepl(pattern, "muffleMessage") [17:29:58.993] if (muffled) [17:29:58.993] invokeRestart("muffleMessage") [17:29:58.993] } [17:29:58.993] else if (inherits(cond, "warning")) { [17:29:58.993] muffled <- grepl(pattern, "muffleWarning") [17:29:58.993] if (muffled) [17:29:58.993] invokeRestart("muffleWarning") [17:29:58.993] } [17:29:58.993] else if (inherits(cond, "condition")) { [17:29:58.993] if (!is.null(pattern)) { [17:29:58.993] computeRestarts <- base::computeRestarts [17:29:58.993] grepl <- base::grepl [17:29:58.993] restarts <- computeRestarts(cond) [17:29:58.993] for (restart in restarts) { [17:29:58.993] name <- restart$name [17:29:58.993] if (is.null(name)) [17:29:58.993] next [17:29:58.993] if (!grepl(pattern, name)) [17:29:58.993] next [17:29:58.993] invokeRestart(restart) [17:29:58.993] muffled <- TRUE [17:29:58.993] break [17:29:58.993] } [17:29:58.993] } [17:29:58.993] } [17:29:58.993] invisible(muffled) [17:29:58.993] } [17:29:58.993] muffleCondition(cond, pattern = "^muffle") [17:29:58.993] } [17:29:58.993] } [17:29:58.993] else { [17:29:58.993] if (TRUE) { [17:29:58.993] muffleCondition <- function (cond, pattern = "^muffle") [17:29:58.993] { [17:29:58.993] inherits <- base::inherits [17:29:58.993] invokeRestart <- base::invokeRestart [17:29:58.993] is.null <- base::is.null [17:29:58.993] muffled <- FALSE [17:29:58.993] if (inherits(cond, "message")) { [17:29:58.993] muffled <- grepl(pattern, "muffleMessage") [17:29:58.993] if (muffled) [17:29:58.993] invokeRestart("muffleMessage") [17:29:58.993] } [17:29:58.993] else if (inherits(cond, "warning")) { [17:29:58.993] muffled <- grepl(pattern, "muffleWarning") [17:29:58.993] if (muffled) [17:29:58.993] invokeRestart("muffleWarning") [17:29:58.993] } [17:29:58.993] else if (inherits(cond, "condition")) { [17:29:58.993] if (!is.null(pattern)) { [17:29:58.993] computeRestarts <- base::computeRestarts [17:29:58.993] grepl <- base::grepl [17:29:58.993] restarts <- computeRestarts(cond) [17:29:58.993] for (restart in restarts) { [17:29:58.993] name <- restart$name [17:29:58.993] if (is.null(name)) [17:29:58.993] next [17:29:58.993] if (!grepl(pattern, name)) [17:29:58.993] next [17:29:58.993] invokeRestart(restart) [17:29:58.993] muffled <- TRUE [17:29:58.993] break [17:29:58.993] } [17:29:58.993] } [17:29:58.993] } [17:29:58.993] invisible(muffled) [17:29:58.993] } [17:29:58.993] muffleCondition(cond, pattern = "^muffle") [17:29:58.993] } [17:29:58.993] } [17:29:58.993] } [17:29:58.993] })) [17:29:58.993] }, error = function(ex) { [17:29:58.993] base::structure(base::list(value = NULL, visible = NULL, [17:29:58.993] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:29:58.993] ...future.rng), started = ...future.startTime, [17:29:58.993] finished = Sys.time(), session_uuid = NA_character_, [17:29:58.993] version = "1.8"), class = "FutureResult") [17:29:58.993] }, finally = { [17:29:58.993] if (!identical(...future.workdir, getwd())) [17:29:58.993] setwd(...future.workdir) [17:29:58.993] { [17:29:58.993] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:29:58.993] ...future.oldOptions$nwarnings <- NULL [17:29:58.993] } [17:29:58.993] base::options(...future.oldOptions) [17:29:58.993] if (.Platform$OS.type == "windows") { [17:29:58.993] old_names <- names(...future.oldEnvVars) [17:29:58.993] envs <- base::Sys.getenv() [17:29:58.993] names <- names(envs) [17:29:58.993] common <- intersect(names, old_names) [17:29:58.993] added <- setdiff(names, old_names) [17:29:58.993] removed <- setdiff(old_names, names) [17:29:58.993] changed <- common[...future.oldEnvVars[common] != [17:29:58.993] envs[common]] [17:29:58.993] NAMES <- toupper(changed) [17:29:58.993] args <- list() [17:29:58.993] for (kk in seq_along(NAMES)) { [17:29:58.993] name <- changed[[kk]] [17:29:58.993] NAME <- NAMES[[kk]] [17:29:58.993] if (name != NAME && is.element(NAME, old_names)) [17:29:58.993] next [17:29:58.993] args[[name]] <- ...future.oldEnvVars[[name]] [17:29:58.993] } [17:29:58.993] NAMES <- toupper(added) [17:29:58.993] for (kk in seq_along(NAMES)) { [17:29:58.993] name <- added[[kk]] [17:29:58.993] NAME <- NAMES[[kk]] [17:29:58.993] if (name != NAME && is.element(NAME, old_names)) [17:29:58.993] next [17:29:58.993] args[[name]] <- "" [17:29:58.993] } [17:29:58.993] NAMES <- toupper(removed) [17:29:58.993] for (kk in seq_along(NAMES)) { [17:29:58.993] name <- removed[[kk]] [17:29:58.993] NAME <- NAMES[[kk]] [17:29:58.993] if (name != NAME && is.element(NAME, old_names)) [17:29:58.993] next [17:29:58.993] args[[name]] <- ...future.oldEnvVars[[name]] [17:29:58.993] } [17:29:58.993] if (length(args) > 0) [17:29:58.993] base::do.call(base::Sys.setenv, args = args) [17:29:58.993] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:29:58.993] } [17:29:58.993] else { [17:29:58.993] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:29:58.993] } [17:29:58.993] { [17:29:58.993] if (base::length(...future.futureOptionsAdded) > [17:29:58.993] 0L) { [17:29:58.993] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:29:58.993] base::names(opts) <- ...future.futureOptionsAdded [17:29:58.993] base::options(opts) [17:29:58.993] } [17:29:58.993] { [17:29:58.993] { [17:29:58.993] NULL [17:29:58.993] RNGkind("Mersenne-Twister") [17:29:58.993] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:29:58.993] inherits = FALSE) [17:29:58.993] } [17:29:58.993] options(future.plan = NULL) [17:29:58.993] if (is.na(NA_character_)) [17:29:58.993] Sys.unsetenv("R_FUTURE_PLAN") [17:29:58.993] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:29:58.993] future::plan(...future.strategy.old, .cleanup = FALSE, [17:29:58.993] .init = FALSE) [17:29:58.993] } [17:29:58.993] } [17:29:58.993] } [17:29:58.993] }) [17:29:58.993] if (TRUE) { [17:29:58.993] base::sink(type = "output", split = FALSE) [17:29:58.993] if (TRUE) { [17:29:58.993] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:29:58.993] } [17:29:58.993] else { [17:29:58.993] ...future.result["stdout"] <- base::list(NULL) [17:29:58.993] } [17:29:58.993] base::close(...future.stdout) [17:29:58.993] ...future.stdout <- NULL [17:29:58.993] } [17:29:58.993] ...future.result$conditions <- ...future.conditions [17:29:58.993] ...future.result$finished <- base::Sys.time() [17:29:58.993] ...future.result [17:29:58.993] } [17:29:59.001] plan(): Setting new future strategy stack: [17:29:59.001] List of future strategies: [17:29:59.001] 1. sequential: [17:29:59.001] - args: function (..., envir = parent.frame(), workers = "") [17:29:59.001] - tweaked: FALSE [17:29:59.001] - call: NULL [17:29:59.002] plan(): nbrOfWorkers() = 1 [17:29:59.005] plan(): Setting new future strategy stack: [17:29:59.005] List of future strategies: [17:29:59.005] 1. sequential: [17:29:59.005] - args: function (..., abc = FALSE, envir = parent.frame(), workers = "") [17:29:59.005] - tweaked: TRUE [17:29:59.005] - call: plan(sequential, abc = FALSE) [17:29:59.007] plan(): nbrOfWorkers() = 1 [17:29:59.007] SequentialFuture started (and completed) [17:29:59.007] - Launch lazy future ... done [17:29:59.008] run() for 'SequentialFuture' ... done > print(x) [1] 1 > stopifnot(a == 0, x == 1) > > x %<-% { a <- 2; a } %tweak% list(abc = TRUE) [17:29:59.010] plan(): Setting new future strategy stack: [17:29:59.010] List of future strategies: [17:29:59.010] 1. sequential: [17:29:59.010] - args: function (..., abc = TRUE, envir = parent.frame(), workers = "") [17:29:59.010] - tweaked: TRUE [17:29:59.010] - call: plan(sequential, abc = FALSE) [17:29:59.011] plan(): nbrOfWorkers() = 1 [17:29:59.012] getGlobalsAndPackages() ... [17:29:59.012] Searching for globals... [17:29:59.015] - globals found: [2] '{', '<-' [17:29:59.015] Searching for globals ... DONE [17:29:59.015] Resolving globals: FALSE [17:29:59.016] [17:29:59.017] [17:29:59.017] getGlobalsAndPackages() ... DONE [17:29:59.018] run() for 'Future' ... [17:29:59.018] - state: 'created' [17:29:59.019] - Future backend: 'FutureStrategy', 'tweaked', 'tweaked', 'sequential', 'uniprocess', 'future', 'function' [17:29:59.019] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:29:59.020] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:29:59.020] - Field: 'label' [17:29:59.020] - Field: 'local' [17:29:59.020] - Field: 'owner' [17:29:59.020] - Field: 'envir' [17:29:59.021] - Field: 'packages' [17:29:59.021] - Field: 'gc' [17:29:59.021] - Field: 'conditions' [17:29:59.022] - Field: 'expr' [17:29:59.022] - Field: 'uuid' [17:29:59.022] - Field: 'seed' [17:29:59.022] - Field: 'version' [17:29:59.022] - Field: 'result' [17:29:59.023] - Field: 'asynchronous' [17:29:59.023] - Field: 'calls' [17:29:59.023] - Field: 'abc' [17:29:59.023] - Field: 'globals' [17:29:59.023] - Field: 'stdout' [17:29:59.024] - Field: 'earlySignal' [17:29:59.024] - Field: 'lazy' [17:29:59.024] - Field: 'state' [17:29:59.024] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:29:59.025] - Launch lazy future ... [17:29:59.025] Packages needed by the future expression (n = 0): [17:29:59.025] Packages needed by future strategies (n = 0): [17:29:59.026] { [17:29:59.026] { [17:29:59.026] { [17:29:59.026] ...future.startTime <- base::Sys.time() [17:29:59.026] { [17:29:59.026] { [17:29:59.026] { [17:29:59.026] base::local({ [17:29:59.026] has_future <- base::requireNamespace("future", [17:29:59.026] quietly = TRUE) [17:29:59.026] if (has_future) { [17:29:59.026] ns <- base::getNamespace("future") [17:29:59.026] version <- ns[[".package"]][["version"]] [17:29:59.026] if (is.null(version)) [17:29:59.026] version <- utils::packageVersion("future") [17:29:59.026] } [17:29:59.026] else { [17:29:59.026] version <- NULL [17:29:59.026] } [17:29:59.026] if (!has_future || version < "1.8.0") { [17:29:59.026] info <- base::c(r_version = base::gsub("R version ", [17:29:59.026] "", base::R.version$version.string), [17:29:59.026] platform = base::sprintf("%s (%s-bit)", [17:29:59.026] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:29:59.026] os = base::paste(base::Sys.info()[base::c("sysname", [17:29:59.026] "release", "version")], collapse = " "), [17:29:59.026] hostname = base::Sys.info()[["nodename"]]) [17:29:59.026] info <- base::sprintf("%s: %s", base::names(info), [17:29:59.026] info) [17:29:59.026] info <- base::paste(info, collapse = "; ") [17:29:59.026] if (!has_future) { [17:29:59.026] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:29:59.026] info) [17:29:59.026] } [17:29:59.026] else { [17:29:59.026] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:29:59.026] info, version) [17:29:59.026] } [17:29:59.026] base::stop(msg) [17:29:59.026] } [17:29:59.026] }) [17:29:59.026] } [17:29:59.026] ...future.strategy.old <- future::plan("list") [17:29:59.026] options(future.plan = NULL) [17:29:59.026] Sys.unsetenv("R_FUTURE_PLAN") [17:29:59.026] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:29:59.026] } [17:29:59.026] ...future.workdir <- getwd() [17:29:59.026] } [17:29:59.026] ...future.oldOptions <- base::as.list(base::.Options) [17:29:59.026] ...future.oldEnvVars <- base::Sys.getenv() [17:29:59.026] } [17:29:59.026] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:29:59.026] future.globals.maxSize = NULL, future.globals.method = NULL, [17:29:59.026] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:29:59.026] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:29:59.026] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:29:59.026] future.stdout.windows.reencode = NULL, width = 80L) [17:29:59.026] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:29:59.026] base::names(...future.oldOptions)) [17:29:59.026] } [17:29:59.026] if (FALSE) { [17:29:59.026] } [17:29:59.026] else { [17:29:59.026] if (TRUE) { [17:29:59.026] ...future.stdout <- base::rawConnection(base::raw(0L), [17:29:59.026] open = "w") [17:29:59.026] } [17:29:59.026] else { [17:29:59.026] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:29:59.026] windows = "NUL", "/dev/null"), open = "w") [17:29:59.026] } [17:29:59.026] base::sink(...future.stdout, type = "output", split = FALSE) [17:29:59.026] base::on.exit(if (!base::is.null(...future.stdout)) { [17:29:59.026] base::sink(type = "output", split = FALSE) [17:29:59.026] base::close(...future.stdout) [17:29:59.026] }, add = TRUE) [17:29:59.026] } [17:29:59.026] ...future.frame <- base::sys.nframe() [17:29:59.026] ...future.conditions <- base::list() [17:29:59.026] ...future.rng <- base::globalenv()$.Random.seed [17:29:59.026] if (FALSE) { [17:29:59.026] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:29:59.026] "...future.value", "...future.globalenv.names", ".Random.seed") [17:29:59.026] } [17:29:59.026] ...future.result <- base::tryCatch({ [17:29:59.026] base::withCallingHandlers({ [17:29:59.026] ...future.value <- base::withVisible(base::local({ [17:29:59.026] a <- 2 [17:29:59.026] a [17:29:59.026] })) [17:29:59.026] future::FutureResult(value = ...future.value$value, [17:29:59.026] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:29:59.026] ...future.rng), globalenv = if (FALSE) [17:29:59.026] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:29:59.026] ...future.globalenv.names)) [17:29:59.026] else NULL, started = ...future.startTime, version = "1.8") [17:29:59.026] }, condition = base::local({ [17:29:59.026] c <- base::c [17:29:59.026] inherits <- base::inherits [17:29:59.026] invokeRestart <- base::invokeRestart [17:29:59.026] length <- base::length [17:29:59.026] list <- base::list [17:29:59.026] seq.int <- base::seq.int [17:29:59.026] signalCondition <- base::signalCondition [17:29:59.026] sys.calls <- base::sys.calls [17:29:59.026] `[[` <- base::`[[` [17:29:59.026] `+` <- base::`+` [17:29:59.026] `<<-` <- base::`<<-` [17:29:59.026] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:29:59.026] calls[seq.int(from = from + 12L, to = length(calls) - [17:29:59.026] 3L)] [17:29:59.026] } [17:29:59.026] function(cond) { [17:29:59.026] is_error <- inherits(cond, "error") [17:29:59.026] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:29:59.026] NULL) [17:29:59.026] if (is_error) { [17:29:59.026] sessionInformation <- function() { [17:29:59.026] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:29:59.026] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:29:59.026] search = base::search(), system = base::Sys.info()) [17:29:59.026] } [17:29:59.026] ...future.conditions[[length(...future.conditions) + [17:29:59.026] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:29:59.026] cond$call), session = sessionInformation(), [17:29:59.026] timestamp = base::Sys.time(), signaled = 0L) [17:29:59.026] signalCondition(cond) [17:29:59.026] } [17:29:59.026] else if (!ignore && TRUE && inherits(cond, c("condition", [17:29:59.026] "immediateCondition"))) { [17:29:59.026] signal <- TRUE && inherits(cond, "immediateCondition") [17:29:59.026] ...future.conditions[[length(...future.conditions) + [17:29:59.026] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:29:59.026] if (TRUE && !signal) { [17:29:59.026] muffleCondition <- function (cond, pattern = "^muffle") [17:29:59.026] { [17:29:59.026] inherits <- base::inherits [17:29:59.026] invokeRestart <- base::invokeRestart [17:29:59.026] is.null <- base::is.null [17:29:59.026] muffled <- FALSE [17:29:59.026] if (inherits(cond, "message")) { [17:29:59.026] muffled <- grepl(pattern, "muffleMessage") [17:29:59.026] if (muffled) [17:29:59.026] invokeRestart("muffleMessage") [17:29:59.026] } [17:29:59.026] else if (inherits(cond, "warning")) { [17:29:59.026] muffled <- grepl(pattern, "muffleWarning") [17:29:59.026] if (muffled) [17:29:59.026] invokeRestart("muffleWarning") [17:29:59.026] } [17:29:59.026] else if (inherits(cond, "condition")) { [17:29:59.026] if (!is.null(pattern)) { [17:29:59.026] computeRestarts <- base::computeRestarts [17:29:59.026] grepl <- base::grepl [17:29:59.026] restarts <- computeRestarts(cond) [17:29:59.026] for (restart in restarts) { [17:29:59.026] name <- restart$name [17:29:59.026] if (is.null(name)) [17:29:59.026] next [17:29:59.026] if (!grepl(pattern, name)) [17:29:59.026] next [17:29:59.026] invokeRestart(restart) [17:29:59.026] muffled <- TRUE [17:29:59.026] break [17:29:59.026] } [17:29:59.026] } [17:29:59.026] } [17:29:59.026] invisible(muffled) [17:29:59.026] } [17:29:59.026] muffleCondition(cond, pattern = "^muffle") [17:29:59.026] } [17:29:59.026] } [17:29:59.026] else { [17:29:59.026] if (TRUE) { [17:29:59.026] muffleCondition <- function (cond, pattern = "^muffle") [17:29:59.026] { [17:29:59.026] inherits <- base::inherits [17:29:59.026] invokeRestart <- base::invokeRestart [17:29:59.026] is.null <- base::is.null [17:29:59.026] muffled <- FALSE [17:29:59.026] if (inherits(cond, "message")) { [17:29:59.026] muffled <- grepl(pattern, "muffleMessage") [17:29:59.026] if (muffled) [17:29:59.026] invokeRestart("muffleMessage") [17:29:59.026] } [17:29:59.026] else if (inherits(cond, "warning")) { [17:29:59.026] muffled <- grepl(pattern, "muffleWarning") [17:29:59.026] if (muffled) [17:29:59.026] invokeRestart("muffleWarning") [17:29:59.026] } [17:29:59.026] else if (inherits(cond, "condition")) { [17:29:59.026] if (!is.null(pattern)) { [17:29:59.026] computeRestarts <- base::computeRestarts [17:29:59.026] grepl <- base::grepl [17:29:59.026] restarts <- computeRestarts(cond) [17:29:59.026] for (restart in restarts) { [17:29:59.026] name <- restart$name [17:29:59.026] if (is.null(name)) [17:29:59.026] next [17:29:59.026] if (!grepl(pattern, name)) [17:29:59.026] next [17:29:59.026] invokeRestart(restart) [17:29:59.026] muffled <- TRUE [17:29:59.026] break [17:29:59.026] } [17:29:59.026] } [17:29:59.026] } [17:29:59.026] invisible(muffled) [17:29:59.026] } [17:29:59.026] muffleCondition(cond, pattern = "^muffle") [17:29:59.026] } [17:29:59.026] } [17:29:59.026] } [17:29:59.026] })) [17:29:59.026] }, error = function(ex) { [17:29:59.026] base::structure(base::list(value = NULL, visible = NULL, [17:29:59.026] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:29:59.026] ...future.rng), started = ...future.startTime, [17:29:59.026] finished = Sys.time(), session_uuid = NA_character_, [17:29:59.026] version = "1.8"), class = "FutureResult") [17:29:59.026] }, finally = { [17:29:59.026] if (!identical(...future.workdir, getwd())) [17:29:59.026] setwd(...future.workdir) [17:29:59.026] { [17:29:59.026] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:29:59.026] ...future.oldOptions$nwarnings <- NULL [17:29:59.026] } [17:29:59.026] base::options(...future.oldOptions) [17:29:59.026] if (.Platform$OS.type == "windows") { [17:29:59.026] old_names <- names(...future.oldEnvVars) [17:29:59.026] envs <- base::Sys.getenv() [17:29:59.026] names <- names(envs) [17:29:59.026] common <- intersect(names, old_names) [17:29:59.026] added <- setdiff(names, old_names) [17:29:59.026] removed <- setdiff(old_names, names) [17:29:59.026] changed <- common[...future.oldEnvVars[common] != [17:29:59.026] envs[common]] [17:29:59.026] NAMES <- toupper(changed) [17:29:59.026] args <- list() [17:29:59.026] for (kk in seq_along(NAMES)) { [17:29:59.026] name <- changed[[kk]] [17:29:59.026] NAME <- NAMES[[kk]] [17:29:59.026] if (name != NAME && is.element(NAME, old_names)) [17:29:59.026] next [17:29:59.026] args[[name]] <- ...future.oldEnvVars[[name]] [17:29:59.026] } [17:29:59.026] NAMES <- toupper(added) [17:29:59.026] for (kk in seq_along(NAMES)) { [17:29:59.026] name <- added[[kk]] [17:29:59.026] NAME <- NAMES[[kk]] [17:29:59.026] if (name != NAME && is.element(NAME, old_names)) [17:29:59.026] next [17:29:59.026] args[[name]] <- "" [17:29:59.026] } [17:29:59.026] NAMES <- toupper(removed) [17:29:59.026] for (kk in seq_along(NAMES)) { [17:29:59.026] name <- removed[[kk]] [17:29:59.026] NAME <- NAMES[[kk]] [17:29:59.026] if (name != NAME && is.element(NAME, old_names)) [17:29:59.026] next [17:29:59.026] args[[name]] <- ...future.oldEnvVars[[name]] [17:29:59.026] } [17:29:59.026] if (length(args) > 0) [17:29:59.026] base::do.call(base::Sys.setenv, args = args) [17:29:59.026] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:29:59.026] } [17:29:59.026] else { [17:29:59.026] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:29:59.026] } [17:29:59.026] { [17:29:59.026] if (base::length(...future.futureOptionsAdded) > [17:29:59.026] 0L) { [17:29:59.026] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:29:59.026] base::names(opts) <- ...future.futureOptionsAdded [17:29:59.026] base::options(opts) [17:29:59.026] } [17:29:59.026] { [17:29:59.026] { [17:29:59.026] NULL [17:29:59.026] RNGkind("Mersenne-Twister") [17:29:59.026] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:29:59.026] inherits = FALSE) [17:29:59.026] } [17:29:59.026] options(future.plan = NULL) [17:29:59.026] if (is.na(NA_character_)) [17:29:59.026] Sys.unsetenv("R_FUTURE_PLAN") [17:29:59.026] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:29:59.026] future::plan(...future.strategy.old, .cleanup = FALSE, [17:29:59.026] .init = FALSE) [17:29:59.026] } [17:29:59.026] } [17:29:59.026] } [17:29:59.026] }) [17:29:59.026] if (TRUE) { [17:29:59.026] base::sink(type = "output", split = FALSE) [17:29:59.026] if (TRUE) { [17:29:59.026] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:29:59.026] } [17:29:59.026] else { [17:29:59.026] ...future.result["stdout"] <- base::list(NULL) [17:29:59.026] } [17:29:59.026] base::close(...future.stdout) [17:29:59.026] ...future.stdout <- NULL [17:29:59.026] } [17:29:59.026] ...future.result$conditions <- ...future.conditions [17:29:59.026] ...future.result$finished <- base::Sys.time() [17:29:59.026] ...future.result [17:29:59.026] } [17:29:59.031] plan(): Setting new future strategy stack: [17:29:59.031] List of future strategies: [17:29:59.031] 1. sequential: [17:29:59.031] - args: function (..., envir = parent.frame(), workers = "") [17:29:59.031] - tweaked: FALSE [17:29:59.031] - call: NULL [17:29:59.032] plan(): nbrOfWorkers() = 1 [17:29:59.034] plan(): Setting new future strategy stack: [17:29:59.034] List of future strategies: [17:29:59.034] 1. sequential: [17:29:59.034] - args: function (..., abc = TRUE, envir = parent.frame(), workers = "") [17:29:59.034] - tweaked: TRUE [17:29:59.034] - call: plan(sequential, abc = FALSE) [17:29:59.035] plan(): nbrOfWorkers() = 1 [17:29:59.035] SequentialFuture started (and completed) [17:29:59.036] - Launch lazy future ... done [17:29:59.036] run() for 'SequentialFuture' ... done [17:29:59.036] plan(): Setting new future strategy stack: [17:29:59.037] List of future strategies: [17:29:59.037] 1. sequential: [17:29:59.037] - args: function (..., abc = FALSE, envir = parent.frame(), workers = "") [17:29:59.037] - tweaked: TRUE [17:29:59.037] - call: plan(sequential, abc = FALSE) [17:29:59.038] 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' [17:29:59.039] plan(): Setting new future strategy stack: [17:29:59.039] List of future strategies: [17:29:59.039] 1. sequential: [17:29:59.039] - args: function (..., envir = parent.frame(), workers = "") [17:29:59.039] - tweaked: FALSE [17:29:59.039] - call: plan(list(A = sequential, B = tweak(sequential, abc = FALSE))) [17:29:59.039] 2. sequential: [17:29:59.039] - args: function (..., abc = FALSE, envir = parent.frame(), workers = "") [17:29:59.039] - tweaked: TRUE [17:29:59.039] - call: plan(list(A = sequential, B = tweak(sequential, abc = FALSE))) [17:29:59.041] plan(): nbrOfWorkers() = 1 > a <- 0 > > x %<-% { + stopifnot(identical(names(plan("list")), "B")) + a <- 1 + a + } [17:29:59.042] getGlobalsAndPackages() ... [17:29:59.043] Searching for globals... [17:29:59.053] - globals found: [6] '{', 'stopifnot', 'identical', 'names', 'plan', '<-' [17:29:59.053] Searching for globals ... DONE [17:29:59.054] Resolving globals: FALSE [17:29:59.057] The total size of the 1 globals is 64.15 KiB (65691 bytes) [17:29:59.058] The total size of the 1 globals exported for future expression ('{; stopifnot(identical(names(plan("list")), "B")); a <- 1; a; }') is 64.15 KiB.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'plan' (64.15 KiB of class 'function') [17:29:59.058] - globals: [1] 'plan' [17:29:59.059] [17:29:59.059] getGlobalsAndPackages() ... DONE [17:29:59.060] run() for 'Future' ... [17:29:59.060] - state: 'created' [17:29:59.061] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:29:59.062] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:29:59.062] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:29:59.062] - Field: 'label' [17:29:59.063] - Field: 'local' [17:29:59.063] - Field: 'owner' [17:29:59.063] - Field: 'envir' [17:29:59.064] - Field: 'packages' [17:29:59.064] - Field: 'gc' [17:29:59.064] - Field: 'conditions' [17:29:59.065] - Field: 'expr' [17:29:59.065] - Field: 'uuid' [17:29:59.065] - Field: 'seed' [17:29:59.066] - Field: 'version' [17:29:59.066] - Field: 'result' [17:29:59.067] - Field: 'asynchronous' [17:29:59.067] - Field: 'calls' [17:29:59.067] - Field: 'globals' [17:29:59.067] - Field: 'stdout' [17:29:59.068] - Field: 'earlySignal' [17:29:59.068] - Field: 'lazy' [17:29:59.068] - Field: 'state' [17:29:59.068] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:29:59.069] - Launch lazy future ... [17:29:59.069] Packages needed by the future expression (n = 0): [17:29:59.069] Packages needed by future strategies (n = 0): [17:29:59.070] { [17:29:59.070] { [17:29:59.070] { [17:29:59.070] ...future.startTime <- base::Sys.time() [17:29:59.070] { [17:29:59.070] { [17:29:59.070] { [17:29:59.070] base::local({ [17:29:59.070] has_future <- base::requireNamespace("future", [17:29:59.070] quietly = TRUE) [17:29:59.070] if (has_future) { [17:29:59.070] ns <- base::getNamespace("future") [17:29:59.070] version <- ns[[".package"]][["version"]] [17:29:59.070] if (is.null(version)) [17:29:59.070] version <- utils::packageVersion("future") [17:29:59.070] } [17:29:59.070] else { [17:29:59.070] version <- NULL [17:29:59.070] } [17:29:59.070] if (!has_future || version < "1.8.0") { [17:29:59.070] info <- base::c(r_version = base::gsub("R version ", [17:29:59.070] "", base::R.version$version.string), [17:29:59.070] platform = base::sprintf("%s (%s-bit)", [17:29:59.070] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:29:59.070] os = base::paste(base::Sys.info()[base::c("sysname", [17:29:59.070] "release", "version")], collapse = " "), [17:29:59.070] hostname = base::Sys.info()[["nodename"]]) [17:29:59.070] info <- base::sprintf("%s: %s", base::names(info), [17:29:59.070] info) [17:29:59.070] info <- base::paste(info, collapse = "; ") [17:29:59.070] if (!has_future) { [17:29:59.070] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:29:59.070] info) [17:29:59.070] } [17:29:59.070] else { [17:29:59.070] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:29:59.070] info, version) [17:29:59.070] } [17:29:59.070] base::stop(msg) [17:29:59.070] } [17:29:59.070] }) [17:29:59.070] } [17:29:59.070] ...future.strategy.old <- future::plan("list") [17:29:59.070] options(future.plan = NULL) [17:29:59.070] Sys.unsetenv("R_FUTURE_PLAN") [17:29:59.070] future::plan(list(B = function (..., abc = FALSE, [17:29:59.070] envir = parent.frame()) [17:29:59.070] strategy(..., abc = abc, envir = envir)), .cleanup = FALSE, [17:29:59.070] .init = FALSE) [17:29:59.070] } [17:29:59.070] ...future.workdir <- getwd() [17:29:59.070] } [17:29:59.070] ...future.oldOptions <- base::as.list(base::.Options) [17:29:59.070] ...future.oldEnvVars <- base::Sys.getenv() [17:29:59.070] } [17:29:59.070] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:29:59.070] future.globals.maxSize = NULL, future.globals.method = NULL, [17:29:59.070] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:29:59.070] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:29:59.070] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:29:59.070] future.stdout.windows.reencode = NULL, width = 80L) [17:29:59.070] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:29:59.070] base::names(...future.oldOptions)) [17:29:59.070] } [17:29:59.070] if (FALSE) { [17:29:59.070] } [17:29:59.070] else { [17:29:59.070] if (TRUE) { [17:29:59.070] ...future.stdout <- base::rawConnection(base::raw(0L), [17:29:59.070] open = "w") [17:29:59.070] } [17:29:59.070] else { [17:29:59.070] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:29:59.070] windows = "NUL", "/dev/null"), open = "w") [17:29:59.070] } [17:29:59.070] base::sink(...future.stdout, type = "output", split = FALSE) [17:29:59.070] base::on.exit(if (!base::is.null(...future.stdout)) { [17:29:59.070] base::sink(type = "output", split = FALSE) [17:29:59.070] base::close(...future.stdout) [17:29:59.070] }, add = TRUE) [17:29:59.070] } [17:29:59.070] ...future.frame <- base::sys.nframe() [17:29:59.070] ...future.conditions <- base::list() [17:29:59.070] ...future.rng <- base::globalenv()$.Random.seed [17:29:59.070] if (FALSE) { [17:29:59.070] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:29:59.070] "...future.value", "...future.globalenv.names", ".Random.seed") [17:29:59.070] } [17:29:59.070] ...future.result <- base::tryCatch({ [17:29:59.070] base::withCallingHandlers({ [17:29:59.070] ...future.value <- base::withVisible(base::local({ [17:29:59.070] stopifnot(identical(names(plan("list")), "B")) [17:29:59.070] a <- 1 [17:29:59.070] a [17:29:59.070] })) [17:29:59.070] future::FutureResult(value = ...future.value$value, [17:29:59.070] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:29:59.070] ...future.rng), globalenv = if (FALSE) [17:29:59.070] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:29:59.070] ...future.globalenv.names)) [17:29:59.070] else NULL, started = ...future.startTime, version = "1.8") [17:29:59.070] }, condition = base::local({ [17:29:59.070] c <- base::c [17:29:59.070] inherits <- base::inherits [17:29:59.070] invokeRestart <- base::invokeRestart [17:29:59.070] length <- base::length [17:29:59.070] list <- base::list [17:29:59.070] seq.int <- base::seq.int [17:29:59.070] signalCondition <- base::signalCondition [17:29:59.070] sys.calls <- base::sys.calls [17:29:59.070] `[[` <- base::`[[` [17:29:59.070] `+` <- base::`+` [17:29:59.070] `<<-` <- base::`<<-` [17:29:59.070] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:29:59.070] calls[seq.int(from = from + 12L, to = length(calls) - [17:29:59.070] 3L)] [17:29:59.070] } [17:29:59.070] function(cond) { [17:29:59.070] is_error <- inherits(cond, "error") [17:29:59.070] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:29:59.070] NULL) [17:29:59.070] if (is_error) { [17:29:59.070] sessionInformation <- function() { [17:29:59.070] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:29:59.070] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:29:59.070] search = base::search(), system = base::Sys.info()) [17:29:59.070] } [17:29:59.070] ...future.conditions[[length(...future.conditions) + [17:29:59.070] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:29:59.070] cond$call), session = sessionInformation(), [17:29:59.070] timestamp = base::Sys.time(), signaled = 0L) [17:29:59.070] signalCondition(cond) [17:29:59.070] } [17:29:59.070] else if (!ignore && TRUE && inherits(cond, c("condition", [17:29:59.070] "immediateCondition"))) { [17:29:59.070] signal <- TRUE && inherits(cond, "immediateCondition") [17:29:59.070] ...future.conditions[[length(...future.conditions) + [17:29:59.070] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:29:59.070] if (TRUE && !signal) { [17:29:59.070] muffleCondition <- function (cond, pattern = "^muffle") [17:29:59.070] { [17:29:59.070] inherits <- base::inherits [17:29:59.070] invokeRestart <- base::invokeRestart [17:29:59.070] is.null <- base::is.null [17:29:59.070] muffled <- FALSE [17:29:59.070] if (inherits(cond, "message")) { [17:29:59.070] muffled <- grepl(pattern, "muffleMessage") [17:29:59.070] if (muffled) [17:29:59.070] invokeRestart("muffleMessage") [17:29:59.070] } [17:29:59.070] else if (inherits(cond, "warning")) { [17:29:59.070] muffled <- grepl(pattern, "muffleWarning") [17:29:59.070] if (muffled) [17:29:59.070] invokeRestart("muffleWarning") [17:29:59.070] } [17:29:59.070] else if (inherits(cond, "condition")) { [17:29:59.070] if (!is.null(pattern)) { [17:29:59.070] computeRestarts <- base::computeRestarts [17:29:59.070] grepl <- base::grepl [17:29:59.070] restarts <- computeRestarts(cond) [17:29:59.070] for (restart in restarts) { [17:29:59.070] name <- restart$name [17:29:59.070] if (is.null(name)) [17:29:59.070] next [17:29:59.070] if (!grepl(pattern, name)) [17:29:59.070] next [17:29:59.070] invokeRestart(restart) [17:29:59.070] muffled <- TRUE [17:29:59.070] break [17:29:59.070] } [17:29:59.070] } [17:29:59.070] } [17:29:59.070] invisible(muffled) [17:29:59.070] } [17:29:59.070] muffleCondition(cond, pattern = "^muffle") [17:29:59.070] } [17:29:59.070] } [17:29:59.070] else { [17:29:59.070] if (TRUE) { [17:29:59.070] muffleCondition <- function (cond, pattern = "^muffle") [17:29:59.070] { [17:29:59.070] inherits <- base::inherits [17:29:59.070] invokeRestart <- base::invokeRestart [17:29:59.070] is.null <- base::is.null [17:29:59.070] muffled <- FALSE [17:29:59.070] if (inherits(cond, "message")) { [17:29:59.070] muffled <- grepl(pattern, "muffleMessage") [17:29:59.070] if (muffled) [17:29:59.070] invokeRestart("muffleMessage") [17:29:59.070] } [17:29:59.070] else if (inherits(cond, "warning")) { [17:29:59.070] muffled <- grepl(pattern, "muffleWarning") [17:29:59.070] if (muffled) [17:29:59.070] invokeRestart("muffleWarning") [17:29:59.070] } [17:29:59.070] else if (inherits(cond, "condition")) { [17:29:59.070] if (!is.null(pattern)) { [17:29:59.070] computeRestarts <- base::computeRestarts [17:29:59.070] grepl <- base::grepl [17:29:59.070] restarts <- computeRestarts(cond) [17:29:59.070] for (restart in restarts) { [17:29:59.070] name <- restart$name [17:29:59.070] if (is.null(name)) [17:29:59.070] next [17:29:59.070] if (!grepl(pattern, name)) [17:29:59.070] next [17:29:59.070] invokeRestart(restart) [17:29:59.070] muffled <- TRUE [17:29:59.070] break [17:29:59.070] } [17:29:59.070] } [17:29:59.070] } [17:29:59.070] invisible(muffled) [17:29:59.070] } [17:29:59.070] muffleCondition(cond, pattern = "^muffle") [17:29:59.070] } [17:29:59.070] } [17:29:59.070] } [17:29:59.070] })) [17:29:59.070] }, error = function(ex) { [17:29:59.070] base::structure(base::list(value = NULL, visible = NULL, [17:29:59.070] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:29:59.070] ...future.rng), started = ...future.startTime, [17:29:59.070] finished = Sys.time(), session_uuid = NA_character_, [17:29:59.070] version = "1.8"), class = "FutureResult") [17:29:59.070] }, finally = { [17:29:59.070] if (!identical(...future.workdir, getwd())) [17:29:59.070] setwd(...future.workdir) [17:29:59.070] { [17:29:59.070] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:29:59.070] ...future.oldOptions$nwarnings <- NULL [17:29:59.070] } [17:29:59.070] base::options(...future.oldOptions) [17:29:59.070] if (.Platform$OS.type == "windows") { [17:29:59.070] old_names <- names(...future.oldEnvVars) [17:29:59.070] envs <- base::Sys.getenv() [17:29:59.070] names <- names(envs) [17:29:59.070] common <- intersect(names, old_names) [17:29:59.070] added <- setdiff(names, old_names) [17:29:59.070] removed <- setdiff(old_names, names) [17:29:59.070] changed <- common[...future.oldEnvVars[common] != [17:29:59.070] envs[common]] [17:29:59.070] NAMES <- toupper(changed) [17:29:59.070] args <- list() [17:29:59.070] for (kk in seq_along(NAMES)) { [17:29:59.070] name <- changed[[kk]] [17:29:59.070] NAME <- NAMES[[kk]] [17:29:59.070] if (name != NAME && is.element(NAME, old_names)) [17:29:59.070] next [17:29:59.070] args[[name]] <- ...future.oldEnvVars[[name]] [17:29:59.070] } [17:29:59.070] NAMES <- toupper(added) [17:29:59.070] for (kk in seq_along(NAMES)) { [17:29:59.070] name <- added[[kk]] [17:29:59.070] NAME <- NAMES[[kk]] [17:29:59.070] if (name != NAME && is.element(NAME, old_names)) [17:29:59.070] next [17:29:59.070] args[[name]] <- "" [17:29:59.070] } [17:29:59.070] NAMES <- toupper(removed) [17:29:59.070] for (kk in seq_along(NAMES)) { [17:29:59.070] name <- removed[[kk]] [17:29:59.070] NAME <- NAMES[[kk]] [17:29:59.070] if (name != NAME && is.element(NAME, old_names)) [17:29:59.070] next [17:29:59.070] args[[name]] <- ...future.oldEnvVars[[name]] [17:29:59.070] } [17:29:59.070] if (length(args) > 0) [17:29:59.070] base::do.call(base::Sys.setenv, args = args) [17:29:59.070] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:29:59.070] } [17:29:59.070] else { [17:29:59.070] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:29:59.070] } [17:29:59.070] { [17:29:59.070] if (base::length(...future.futureOptionsAdded) > [17:29:59.070] 0L) { [17:29:59.070] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:29:59.070] base::names(opts) <- ...future.futureOptionsAdded [17:29:59.070] base::options(opts) [17:29:59.070] } [17:29:59.070] { [17:29:59.070] { [17:29:59.070] NULL [17:29:59.070] RNGkind("Mersenne-Twister") [17:29:59.070] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:29:59.070] inherits = FALSE) [17:29:59.070] } [17:29:59.070] options(future.plan = NULL) [17:29:59.070] if (is.na(NA_character_)) [17:29:59.070] Sys.unsetenv("R_FUTURE_PLAN") [17:29:59.070] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:29:59.070] future::plan(...future.strategy.old, .cleanup = FALSE, [17:29:59.070] .init = FALSE) [17:29:59.070] } [17:29:59.070] } [17:29:59.070] } [17:29:59.070] }) [17:29:59.070] if (TRUE) { [17:29:59.070] base::sink(type = "output", split = FALSE) [17:29:59.070] if (TRUE) { [17:29:59.070] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:29:59.070] } [17:29:59.070] else { [17:29:59.070] ...future.result["stdout"] <- base::list(NULL) [17:29:59.070] } [17:29:59.070] base::close(...future.stdout) [17:29:59.070] ...future.stdout <- NULL [17:29:59.070] } [17:29:59.070] ...future.result$conditions <- ...future.conditions [17:29:59.070] ...future.result$finished <- base::Sys.time() [17:29:59.070] ...future.result [17:29:59.070] } [17:29:59.077] assign_globals() ... [17:29:59.077] List of 1 [17:29:59.077] $ plan:function (strategy = NULL, ..., substitute = TRUE, .skip = FALSE, .call = TRUE, [17:29:59.077] .cleanup = TRUE, .init = TRUE) [17:29:59.077] - attr(*, "where")=List of 1 [17:29:59.077] ..$ plan: [17:29:59.077] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list" [17:29:59.077] - attr(*, "resolved")= logi FALSE [17:29:59.077] - attr(*, "total_size")= int 65691 [17:29:59.077] - attr(*, "already-done")= logi TRUE [17:29:59.082] - copied 'plan' to environment [17:29:59.082] assign_globals() ... done [17:29:59.083] plan(): Setting new future strategy stack: [17:29:59.083] List of future strategies: [17:29:59.083] 1. sequential: [17:29:59.083] - args: function (..., abc = FALSE, envir = parent.frame(), workers = "") [17:29:59.083] - tweaked: TRUE [17:29:59.083] - call: plan(list(A = sequential, B = tweak(sequential, abc = FALSE))) [17:29:59.084] plan(): nbrOfWorkers() = 1 [17:29:59.086] plan(): Setting new future strategy stack: [17:29:59.086] List of future strategies: [17:29:59.086] 1. sequential: [17:29:59.086] - args: function (..., envir = parent.frame(), workers = "") [17:29:59.086] - tweaked: FALSE [17:29:59.086] - call: plan(list(A = sequential, B = tweak(sequential, abc = FALSE))) [17:29:59.086] 2. sequential: [17:29:59.086] - args: function (..., abc = FALSE, envir = parent.frame(), workers = "") [17:29:59.086] - tweaked: TRUE [17:29:59.086] - call: plan(list(A = sequential, B = tweak(sequential, abc = FALSE))) [17:29:59.087] plan(): nbrOfWorkers() = 1 [17:29:59.088] SequentialFuture started (and completed) [17:29:59.088] - Launch lazy future ... done [17:29:59.088] 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) [17:29:59.091] getGlobalsAndPackages() ... [17:29:59.091] Searching for globals... [17:29:59.095] - globals found: [4] '{', 'y', 'x', '~' [17:29:59.096] Searching for globals ... DONE [17:29:59.096] Resolving globals: FALSE [17:29:59.097] The total size of the 1 globals is 39 bytes (39 bytes) [17:29:59.098] The total size of the 1 globals exported for future expression ('y ~ x') is 39 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'x' (39 bytes of class 'numeric') [17:29:59.098] - globals: [1] 'x' [17:29:59.098] [17:29:59.098] 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") [17:29:59.158] plan(): Setting new future strategy stack: [17:29:59.158] List of future strategies: [17:29:59.158] 1. FutureStrategy: [17:29:59.158] - args: function (..., envir = parent.frame(), workers = "") [17:29:59.158] - tweaked: FALSE [17:29:59.158] - call: future::plan(oplan) [17:29:59.159] plan(): nbrOfWorkers() = 1 Failed to undo environment variables: - Expected environment variables: [n=205] '!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', 'RTOOLS44_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_RTOOLS44_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_SUGGESTS_ONLY_', '_R_CHECK_SYSTEM_CLOCK_', '_R_CHECK_TESTS_NLINES_', '_R_CHECK_TEST_TIMING_', '_R_CHECK_TIMINGS_', '_R_CHECK_TOPLEVEL_FILES_', '_R_CHECK_UNDOC_USE_ALL_NAMES_', '_R_CHECK_UNSAFE_CALLS_', '_R_CHECK_URLS_SHOW_301_STATUS_', '_R_CHECK_VC_DIRS_', '_R_CHECK_VIGNETTES_NLINES_', '_R_CHECK_VIGNETTES_SKIP_RUN_MAYBE_', '_R_CHECK_VIGNETTE_TIMING_', '_R_CHECK_VIGNETTE_TITLES_', '_R_CHECK_WINDOWS_DEVICE_', '_R_CHECK_XREFS_NOTE_MISSING_PACKAGE_ANCHORS_', '_R_CHECK_XREFS_USE_ALIASES_FROM_CRAN_', '_R_CLASS_MATRIX_ARRAY_', '_R_DEPRECATED_IS_R_', '_R_S3_METHOD_LOOKUP_BASEENV_AFTER_GLOBALENV_', '_R_SHLIB_BUILD_OBJECTS_SYMBOL_TABLES_', '__R_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.76 0.14 1.84