R Under development (unstable) (2024-03-25 r86192 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:28:28.250] plan(): Setting new future strategy stack: [17:28:28.251] List of future strategies: [17:28:28.251] 1. sequential: [17:28:28.251] - args: function (..., envir = parent.frame(), workers = "") [17:28:28.251] - tweaked: FALSE [17:28:28.251] - call: future::plan("sequential") [17:28:28.267] 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:28:28.278] Option 'future.startup.script': TRUE [17:28:28.279] Future startup scripts considered: '.future.R', '~/.future.R' [17:28:28.279] 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:28:28.301] [local output] makeClusterPSOCK() ... [17:28:28.330] [local output] Workers: [n = 1] 'localhost' [17:28:28.336] [local output] Base port: 37017 [17:28:28.337] [local output] Getting setup options for 1 cluster nodes ... [17:28:28.337] [local output] - Node 1 of 1 ... [17:28:28.337] [local output] localMachine=TRUE => revtunnel=FALSE [17:28:28.339] Testing if worker's PID can be inferred: '"D:/RCompile/recent/R/bin/x64/Rscript" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/Rtmp0ir4qv/worker.rank=1.parallelly.parent=133000.207885f385d4c.pid\")), silent = TRUE)" -e "file.exists(\"D:/temp/Rtmp0ir4qv/worker.rank=1.parallelly.parent=133000.207885f385d4c.pid\")"' [17:28:28.672] - Possible to infer worker's PID: TRUE [17:28:28.673] [local output] Rscript port: 37017 [17:28:28.673] [local output] Getting setup options for 1 cluster nodes ... done [17:28:28.674] [local output] - Parallel setup requested for some PSOCK nodes [17:28:28.674] [local output] Setting up PSOCK nodes in parallel [17:28:28.674] List of 36 [17:28:28.674] $ worker : chr "localhost" [17:28:28.674] ..- attr(*, "localhost")= logi TRUE [17:28:28.674] $ master : chr "localhost" [17:28:28.674] $ port : int 37017 [17:28:28.674] $ connectTimeout : num 120 [17:28:28.674] $ timeout : num 120 [17:28:28.674] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [17:28:28.674] $ homogeneous : logi TRUE [17:28:28.674] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=tweak.R:133000:CRANWIN3:CRAN\" -"| __truncated__ [17:28:28.674] $ rscript_envs : NULL [17:28:28.674] $ rscript_libs : NULL [17:28:28.674] $ rscript_startup : NULL [17:28:28.674] $ rscript_sh : chr "cmd" [17:28:28.674] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:28:28.674] $ methods : logi TRUE [17:28:28.674] $ socketOptions : chr "no-delay" [17:28:28.674] $ useXDR : logi FALSE [17:28:28.674] $ outfile : chr "/dev/null" [17:28:28.674] $ renice : int NA [17:28:28.674] $ rshcmd : NULL [17:28:28.674] $ user : chr(0) [17:28:28.674] $ revtunnel : logi FALSE [17:28:28.674] $ rshlogfile : NULL [17:28:28.674] $ rshopts : chr(0) [17:28:28.674] $ rank : int 1 [17:28:28.674] $ manual : logi FALSE [17:28:28.674] $ dryrun : logi FALSE [17:28:28.674] $ quiet : logi FALSE [17:28:28.674] $ setup_strategy : chr "parallel" [17:28:28.674] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:28:28.674] $ pidfile : chr "D:/temp/Rtmp0ir4qv/worker.rank=1.parallelly.parent=133000.207885f385d4c.pid" [17:28:28.674] $ rshcmd_label : NULL [17:28:28.674] $ rsh_call : NULL [17:28:28.674] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:28:28.674] $ localMachine : logi TRUE [17:28:28.674] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [17:28:28.674] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [17:28:28.674] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [17:28:28.674] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [17:28:28.674] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [17:28:28.674] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [17:28:28.674] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [17:28:28.674] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [17:28:28.674] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [17:28:28.674] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [17:28:28.674] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [17:28:28.674] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [17:28:28.674] "parallel"), action = c("launch", "options"), verbose = FALSE) [17:28:28.674] $ arguments :List of 28 [17:28:28.674] ..$ worker : chr "localhost" [17:28:28.674] ..$ master : NULL [17:28:28.674] ..$ port : int 37017 [17:28:28.674] ..$ connectTimeout : num 120 [17:28:28.674] ..$ timeout : num 120 [17:28:28.674] ..$ rscript : NULL [17:28:28.674] ..$ homogeneous : NULL [17:28:28.674] ..$ rscript_args : NULL [17:28:28.674] ..$ rscript_envs : NULL [17:28:28.674] ..$ rscript_libs : NULL [17:28:28.674] ..$ rscript_startup : NULL [17:28:28.674] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [17:28:28.674] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:28:28.674] ..$ methods : logi TRUE [17:28:28.674] ..$ socketOptions : chr "no-delay" [17:28:28.674] ..$ useXDR : logi FALSE [17:28:28.674] ..$ outfile : chr "/dev/null" [17:28:28.674] ..$ renice : int NA [17:28:28.674] ..$ rshcmd : NULL [17:28:28.674] ..$ user : NULL [17:28:28.674] ..$ revtunnel : logi NA [17:28:28.674] ..$ rshlogfile : NULL [17:28:28.674] ..$ rshopts : NULL [17:28:28.674] ..$ rank : int 1 [17:28:28.674] ..$ manual : logi FALSE [17:28:28.674] ..$ dryrun : logi FALSE [17:28:28.674] ..$ quiet : logi FALSE [17:28:28.674] ..$ setup_strategy : chr "parallel" [17:28:28.674] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [17:28:28.698] [local output] System call to launch all workers: [17:28:28.698] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=tweak.R:133000:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/Rtmp0ir4qv/worker.rank=1.parallelly.parent=133000.207885f385d4c.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=37017 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [17:28:28.698] [local output] Starting PSOCK main server [17:28:28.702] [local output] Workers launched [17:28:28.702] [local output] Waiting for workers to connect back [17:28:28.703] - [local output] 0 workers out of 1 ready [17:28:28.861] - [local output] 0 workers out of 1 ready [17:28:28.862] - [local output] 1 workers out of 1 ready [17:28:28.862] [local output] Launching of workers completed [17:28:28.862] [local output] Collecting session information from workers [17:28:28.863] [local output] - Worker #1 of 1 [17:28:28.863] [local output] makeClusterPSOCK() ... done [17:28:28.864] plan(): Setting new future strategy stack: [17:28:28.864] List of future strategies: [17:28:28.864] 1. cluster: [17:28:28.864] - args: function (..., workers = "", envir = parent.frame()) [17:28:28.864] - tweaked: TRUE [17:28:28.864] - call: future::plan(future::cluster, workers = cl) [17:28:28.885] plan(): plan_init() of 'tweaked', 'cluster', 'multiprocess', 'future', 'function' ... [17:28:28.885] cluster: [17:28:28.885] - args: function (..., workers = "", envir = parent.frame()) [17:28:28.885] - tweaked: TRUE [17:28:28.885] - call: future::plan(future::cluster, workers = cl) [17:28:28.888] getGlobalsAndPackages() ... [17:28:28.889] Not searching for globals [17:28:28.889] - globals: [0] [17:28:28.889] getGlobalsAndPackages() ... DONE [17:28:28.897] Packages needed by the future expression (n = 0): [17:28:28.897] Packages needed by future strategies (n = 0): [17:28:28.898] { [17:28:28.898] { [17:28:28.898] { [17:28:28.898] ...future.startTime <- base::Sys.time() [17:28:28.898] { [17:28:28.898] { [17:28:28.898] { [17:28:28.898] base::local({ [17:28:28.898] has_future <- base::requireNamespace("future", [17:28:28.898] quietly = TRUE) [17:28:28.898] if (has_future) { [17:28:28.898] ns <- base::getNamespace("future") [17:28:28.898] version <- ns[[".package"]][["version"]] [17:28:28.898] if (is.null(version)) [17:28:28.898] version <- utils::packageVersion("future") [17:28:28.898] } [17:28:28.898] else { [17:28:28.898] version <- NULL [17:28:28.898] } [17:28:28.898] if (!has_future || version < "1.8.0") { [17:28:28.898] info <- base::c(r_version = base::gsub("R version ", [17:28:28.898] "", base::R.version$version.string), [17:28:28.898] platform = base::sprintf("%s (%s-bit)", [17:28:28.898] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:28:28.898] os = base::paste(base::Sys.info()[base::c("sysname", [17:28:28.898] "release", "version")], collapse = " "), [17:28:28.898] hostname = base::Sys.info()[["nodename"]]) [17:28:28.898] info <- base::sprintf("%s: %s", base::names(info), [17:28:28.898] info) [17:28:28.898] info <- base::paste(info, collapse = "; ") [17:28:28.898] if (!has_future) { [17:28:28.898] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:28:28.898] info) [17:28:28.898] } [17:28:28.898] else { [17:28:28.898] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:28:28.898] info, version) [17:28:28.898] } [17:28:28.898] base::stop(msg) [17:28:28.898] } [17:28:28.898] }) [17:28:28.898] } [17:28:28.898] ...future.strategy.old <- future::plan("list") [17:28:28.898] options(future.plan = NULL) [17:28:28.898] Sys.unsetenv("R_FUTURE_PLAN") [17:28:28.898] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:28:28.898] } [17:28:28.898] ...future.workdir <- getwd() [17:28:28.898] } [17:28:28.898] ...future.oldOptions <- base::as.list(base::.Options) [17:28:28.898] ...future.oldEnvVars <- base::Sys.getenv() [17:28:28.898] } [17:28:28.898] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:28:28.898] future.globals.maxSize = NULL, future.globals.method = NULL, [17:28:28.898] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:28:28.898] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:28:28.898] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:28:28.898] future.stdout.windows.reencode = NULL, width = 80L) [17:28:28.898] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:28:28.898] base::names(...future.oldOptions)) [17:28:28.898] } [17:28:28.898] if (FALSE) { [17:28:28.898] } [17:28:28.898] else { [17:28:28.898] if (TRUE) { [17:28:28.898] ...future.stdout <- base::rawConnection(base::raw(0L), [17:28:28.898] open = "w") [17:28:28.898] } [17:28:28.898] else { [17:28:28.898] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:28:28.898] windows = "NUL", "/dev/null"), open = "w") [17:28:28.898] } [17:28:28.898] base::sink(...future.stdout, type = "output", split = FALSE) [17:28:28.898] base::on.exit(if (!base::is.null(...future.stdout)) { [17:28:28.898] base::sink(type = "output", split = FALSE) [17:28:28.898] base::close(...future.stdout) [17:28:28.898] }, add = TRUE) [17:28:28.898] } [17:28:28.898] ...future.frame <- base::sys.nframe() [17:28:28.898] ...future.conditions <- base::list() [17:28:28.898] ...future.rng <- base::globalenv()$.Random.seed [17:28:28.898] if (FALSE) { [17:28:28.898] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:28:28.898] "...future.value", "...future.globalenv.names", ".Random.seed") [17:28:28.898] } [17:28:28.898] ...future.result <- base::tryCatch({ [17:28:28.898] base::withCallingHandlers({ [17:28:28.898] ...future.value <- base::withVisible(base::local({ [17:28:28.898] ...future.makeSendCondition <- base::local({ [17:28:28.898] sendCondition <- NULL [17:28:28.898] function(frame = 1L) { [17:28:28.898] if (is.function(sendCondition)) [17:28:28.898] return(sendCondition) [17:28:28.898] ns <- getNamespace("parallel") [17:28:28.898] if (exists("sendData", mode = "function", [17:28:28.898] envir = ns)) { [17:28:28.898] parallel_sendData <- get("sendData", mode = "function", [17:28:28.898] envir = ns) [17:28:28.898] envir <- sys.frame(frame) [17:28:28.898] master <- NULL [17:28:28.898] while (!identical(envir, .GlobalEnv) && [17:28:28.898] !identical(envir, emptyenv())) { [17:28:28.898] if (exists("master", mode = "list", envir = envir, [17:28:28.898] inherits = FALSE)) { [17:28:28.898] master <- get("master", mode = "list", [17:28:28.898] envir = envir, inherits = FALSE) [17:28:28.898] if (inherits(master, c("SOCKnode", [17:28:28.898] "SOCK0node"))) { [17:28:28.898] sendCondition <<- function(cond) { [17:28:28.898] data <- list(type = "VALUE", value = cond, [17:28:28.898] success = TRUE) [17:28:28.898] parallel_sendData(master, data) [17:28:28.898] } [17:28:28.898] return(sendCondition) [17:28:28.898] } [17:28:28.898] } [17:28:28.898] frame <- frame + 1L [17:28:28.898] envir <- sys.frame(frame) [17:28:28.898] } [17:28:28.898] } [17:28:28.898] sendCondition <<- function(cond) NULL [17:28:28.898] } [17:28:28.898] }) [17:28:28.898] withCallingHandlers({ [17:28:28.898] NA [17:28:28.898] }, immediateCondition = function(cond) { [17:28:28.898] sendCondition <- ...future.makeSendCondition() [17:28:28.898] sendCondition(cond) [17:28:28.898] muffleCondition <- function (cond, pattern = "^muffle") [17:28:28.898] { [17:28:28.898] inherits <- base::inherits [17:28:28.898] invokeRestart <- base::invokeRestart [17:28:28.898] is.null <- base::is.null [17:28:28.898] muffled <- FALSE [17:28:28.898] if (inherits(cond, "message")) { [17:28:28.898] muffled <- grepl(pattern, "muffleMessage") [17:28:28.898] if (muffled) [17:28:28.898] invokeRestart("muffleMessage") [17:28:28.898] } [17:28:28.898] else if (inherits(cond, "warning")) { [17:28:28.898] muffled <- grepl(pattern, "muffleWarning") [17:28:28.898] if (muffled) [17:28:28.898] invokeRestart("muffleWarning") [17:28:28.898] } [17:28:28.898] else if (inherits(cond, "condition")) { [17:28:28.898] if (!is.null(pattern)) { [17:28:28.898] computeRestarts <- base::computeRestarts [17:28:28.898] grepl <- base::grepl [17:28:28.898] restarts <- computeRestarts(cond) [17:28:28.898] for (restart in restarts) { [17:28:28.898] name <- restart$name [17:28:28.898] if (is.null(name)) [17:28:28.898] next [17:28:28.898] if (!grepl(pattern, name)) [17:28:28.898] next [17:28:28.898] invokeRestart(restart) [17:28:28.898] muffled <- TRUE [17:28:28.898] break [17:28:28.898] } [17:28:28.898] } [17:28:28.898] } [17:28:28.898] invisible(muffled) [17:28:28.898] } [17:28:28.898] muffleCondition(cond) [17:28:28.898] }) [17:28:28.898] })) [17:28:28.898] future::FutureResult(value = ...future.value$value, [17:28:28.898] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:28:28.898] ...future.rng), globalenv = if (FALSE) [17:28:28.898] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:28:28.898] ...future.globalenv.names)) [17:28:28.898] else NULL, started = ...future.startTime, version = "1.8") [17:28:28.898] }, condition = base::local({ [17:28:28.898] c <- base::c [17:28:28.898] inherits <- base::inherits [17:28:28.898] invokeRestart <- base::invokeRestart [17:28:28.898] length <- base::length [17:28:28.898] list <- base::list [17:28:28.898] seq.int <- base::seq.int [17:28:28.898] signalCondition <- base::signalCondition [17:28:28.898] sys.calls <- base::sys.calls [17:28:28.898] `[[` <- base::`[[` [17:28:28.898] `+` <- base::`+` [17:28:28.898] `<<-` <- base::`<<-` [17:28:28.898] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:28:28.898] calls[seq.int(from = from + 12L, to = length(calls) - [17:28:28.898] 3L)] [17:28:28.898] } [17:28:28.898] function(cond) { [17:28:28.898] is_error <- inherits(cond, "error") [17:28:28.898] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:28:28.898] NULL) [17:28:28.898] if (is_error) { [17:28:28.898] sessionInformation <- function() { [17:28:28.898] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:28:28.898] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:28:28.898] search = base::search(), system = base::Sys.info()) [17:28:28.898] } [17:28:28.898] ...future.conditions[[length(...future.conditions) + [17:28:28.898] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:28:28.898] cond$call), session = sessionInformation(), [17:28:28.898] timestamp = base::Sys.time(), signaled = 0L) [17:28:28.898] signalCondition(cond) [17:28:28.898] } [17:28:28.898] else if (!ignore && TRUE && inherits(cond, c("condition", [17:28:28.898] "immediateCondition"))) { [17:28:28.898] signal <- TRUE && inherits(cond, "immediateCondition") [17:28:28.898] ...future.conditions[[length(...future.conditions) + [17:28:28.898] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:28:28.898] if (TRUE && !signal) { [17:28:28.898] muffleCondition <- function (cond, pattern = "^muffle") [17:28:28.898] { [17:28:28.898] inherits <- base::inherits [17:28:28.898] invokeRestart <- base::invokeRestart [17:28:28.898] is.null <- base::is.null [17:28:28.898] muffled <- FALSE [17:28:28.898] if (inherits(cond, "message")) { [17:28:28.898] muffled <- grepl(pattern, "muffleMessage") [17:28:28.898] if (muffled) [17:28:28.898] invokeRestart("muffleMessage") [17:28:28.898] } [17:28:28.898] else if (inherits(cond, "warning")) { [17:28:28.898] muffled <- grepl(pattern, "muffleWarning") [17:28:28.898] if (muffled) [17:28:28.898] invokeRestart("muffleWarning") [17:28:28.898] } [17:28:28.898] else if (inherits(cond, "condition")) { [17:28:28.898] if (!is.null(pattern)) { [17:28:28.898] computeRestarts <- base::computeRestarts [17:28:28.898] grepl <- base::grepl [17:28:28.898] restarts <- computeRestarts(cond) [17:28:28.898] for (restart in restarts) { [17:28:28.898] name <- restart$name [17:28:28.898] if (is.null(name)) [17:28:28.898] next [17:28:28.898] if (!grepl(pattern, name)) [17:28:28.898] next [17:28:28.898] invokeRestart(restart) [17:28:28.898] muffled <- TRUE [17:28:28.898] break [17:28:28.898] } [17:28:28.898] } [17:28:28.898] } [17:28:28.898] invisible(muffled) [17:28:28.898] } [17:28:28.898] muffleCondition(cond, pattern = "^muffle") [17:28:28.898] } [17:28:28.898] } [17:28:28.898] else { [17:28:28.898] if (TRUE) { [17:28:28.898] muffleCondition <- function (cond, pattern = "^muffle") [17:28:28.898] { [17:28:28.898] inherits <- base::inherits [17:28:28.898] invokeRestart <- base::invokeRestart [17:28:28.898] is.null <- base::is.null [17:28:28.898] muffled <- FALSE [17:28:28.898] if (inherits(cond, "message")) { [17:28:28.898] muffled <- grepl(pattern, "muffleMessage") [17:28:28.898] if (muffled) [17:28:28.898] invokeRestart("muffleMessage") [17:28:28.898] } [17:28:28.898] else if (inherits(cond, "warning")) { [17:28:28.898] muffled <- grepl(pattern, "muffleWarning") [17:28:28.898] if (muffled) [17:28:28.898] invokeRestart("muffleWarning") [17:28:28.898] } [17:28:28.898] else if (inherits(cond, "condition")) { [17:28:28.898] if (!is.null(pattern)) { [17:28:28.898] computeRestarts <- base::computeRestarts [17:28:28.898] grepl <- base::grepl [17:28:28.898] restarts <- computeRestarts(cond) [17:28:28.898] for (restart in restarts) { [17:28:28.898] name <- restart$name [17:28:28.898] if (is.null(name)) [17:28:28.898] next [17:28:28.898] if (!grepl(pattern, name)) [17:28:28.898] next [17:28:28.898] invokeRestart(restart) [17:28:28.898] muffled <- TRUE [17:28:28.898] break [17:28:28.898] } [17:28:28.898] } [17:28:28.898] } [17:28:28.898] invisible(muffled) [17:28:28.898] } [17:28:28.898] muffleCondition(cond, pattern = "^muffle") [17:28:28.898] } [17:28:28.898] } [17:28:28.898] } [17:28:28.898] })) [17:28:28.898] }, error = function(ex) { [17:28:28.898] base::structure(base::list(value = NULL, visible = NULL, [17:28:28.898] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:28:28.898] ...future.rng), started = ...future.startTime, [17:28:28.898] finished = Sys.time(), session_uuid = NA_character_, [17:28:28.898] version = "1.8"), class = "FutureResult") [17:28:28.898] }, finally = { [17:28:28.898] if (!identical(...future.workdir, getwd())) [17:28:28.898] setwd(...future.workdir) [17:28:28.898] { [17:28:28.898] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:28:28.898] ...future.oldOptions$nwarnings <- NULL [17:28:28.898] } [17:28:28.898] base::options(...future.oldOptions) [17:28:28.898] if (.Platform$OS.type == "windows") { [17:28:28.898] old_names <- names(...future.oldEnvVars) [17:28:28.898] envs <- base::Sys.getenv() [17:28:28.898] names <- names(envs) [17:28:28.898] common <- intersect(names, old_names) [17:28:28.898] added <- setdiff(names, old_names) [17:28:28.898] removed <- setdiff(old_names, names) [17:28:28.898] changed <- common[...future.oldEnvVars[common] != [17:28:28.898] envs[common]] [17:28:28.898] NAMES <- toupper(changed) [17:28:28.898] args <- list() [17:28:28.898] for (kk in seq_along(NAMES)) { [17:28:28.898] name <- changed[[kk]] [17:28:28.898] NAME <- NAMES[[kk]] [17:28:28.898] if (name != NAME && is.element(NAME, old_names)) [17:28:28.898] next [17:28:28.898] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:28.898] } [17:28:28.898] NAMES <- toupper(added) [17:28:28.898] for (kk in seq_along(NAMES)) { [17:28:28.898] name <- added[[kk]] [17:28:28.898] NAME <- NAMES[[kk]] [17:28:28.898] if (name != NAME && is.element(NAME, old_names)) [17:28:28.898] next [17:28:28.898] args[[name]] <- "" [17:28:28.898] } [17:28:28.898] NAMES <- toupper(removed) [17:28:28.898] for (kk in seq_along(NAMES)) { [17:28:28.898] name <- removed[[kk]] [17:28:28.898] NAME <- NAMES[[kk]] [17:28:28.898] if (name != NAME && is.element(NAME, old_names)) [17:28:28.898] next [17:28:28.898] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:28.898] } [17:28:28.898] if (length(args) > 0) [17:28:28.898] base::do.call(base::Sys.setenv, args = args) [17:28:28.898] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:28:28.898] } [17:28:28.898] else { [17:28:28.898] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:28:28.898] } [17:28:28.898] { [17:28:28.898] if (base::length(...future.futureOptionsAdded) > [17:28:28.898] 0L) { [17:28:28.898] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:28:28.898] base::names(opts) <- ...future.futureOptionsAdded [17:28:28.898] base::options(opts) [17:28:28.898] } [17:28:28.898] { [17:28:28.898] NULL [17:28:28.898] options(future.plan = NULL) [17:28:28.898] if (is.na(NA_character_)) [17:28:28.898] Sys.unsetenv("R_FUTURE_PLAN") [17:28:28.898] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:28:28.898] future::plan(...future.strategy.old, .cleanup = FALSE, [17:28:28.898] .init = FALSE) [17:28:28.898] } [17:28:28.898] } [17:28:28.898] } [17:28:28.898] }) [17:28:28.898] if (TRUE) { [17:28:28.898] base::sink(type = "output", split = FALSE) [17:28:28.898] if (TRUE) { [17:28:28.898] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:28:28.898] } [17:28:28.898] else { [17:28:28.898] ...future.result["stdout"] <- base::list(NULL) [17:28:28.898] } [17:28:28.898] base::close(...future.stdout) [17:28:28.898] ...future.stdout <- NULL [17:28:28.898] } [17:28:28.898] ...future.result$conditions <- ...future.conditions [17:28:28.898] ...future.result$finished <- base::Sys.time() [17:28:28.898] ...future.result [17:28:28.898] } [17:28:28.981] ClusterFuture started [17:28:28.981] result() for ClusterFuture ... [17:28:28.982] receiveMessageFromWorker() for ClusterFuture ... [17:28:28.982] - Validating connection of ClusterFuture [17:28:29.033] - received message: FutureResult [17:28:29.033] - Received FutureResult [17:28:29.037] - Erased future from FutureRegistry [17:28:29.037] result() for ClusterFuture ... [17:28:29.037] - result already collected: FutureResult [17:28:29.038] result() for ClusterFuture ... done [17:28:29.038] receiveMessageFromWorker() for ClusterFuture ... done [17:28:29.038] result() for ClusterFuture ... done [17:28:29.038] result() for ClusterFuture ... [17:28:29.038] - result already collected: FutureResult [17:28:29.038] result() for ClusterFuture ... done [17:28:29.039] plan(): plan_init() of 'tweaked', 'cluster', 'multiprocess', 'future', 'function' ... DONE [17:28:29.039] plan(): nbrOfWorkers() = 1 [17:28:29.040] plan(): Setting new future strategy stack: [17:28:29.040] List of future strategies: [17:28:29.040] 1. sequential: [17:28:29.040] - args: function (..., envir = parent.frame(), workers = "") [17:28:29.040] - tweaked: FALSE [17:28:29.040] - call: future::plan("sequential") [17:28:29.041] 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:28:29.042] plan(): Setting new future strategy stack: [17:28:29.042] List of future strategies: [17:28:29.042] 1. sequential: [17:28:29.042] - args: function (..., envir = parent.frame(), workers = "") [17:28:29.042] - tweaked: FALSE [17:28:29.042] - call: plan(sequential) [17:28:29.042] plan(): nbrOfWorkers() = 1 > > a <- 0 > x %<-% { a <- 1; a } [17:28:29.044] getGlobalsAndPackages() ... [17:28:29.044] Searching for globals... [17:28:29.050] - globals found: [2] '{', '<-' [17:28:29.051] Searching for globals ... DONE [17:28:29.051] Resolving globals: FALSE [17:28:29.052] [17:28:29.052] [17:28:29.052] getGlobalsAndPackages() ... DONE [17:28:29.053] run() for 'Future' ... [17:28:29.053] - state: 'created' [17:28:29.053] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:28:29.057] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:28:29.057] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:28:29.057] - Field: 'label' [17:28:29.058] - Field: 'local' [17:28:29.058] - Field: 'owner' [17:28:29.058] - Field: 'envir' [17:28:29.058] - Field: 'packages' [17:28:29.058] - Field: 'gc' [17:28:29.059] - Field: 'conditions' [17:28:29.059] - Field: 'expr' [17:28:29.059] - Field: 'uuid' [17:28:29.059] - Field: 'seed' [17:28:29.059] - Field: 'version' [17:28:29.059] - Field: 'result' [17:28:29.060] - Field: 'asynchronous' [17:28:29.060] - Field: 'calls' [17:28:29.060] - Field: 'globals' [17:28:29.060] - Field: 'stdout' [17:28:29.060] - Field: 'earlySignal' [17:28:29.060] - Field: 'lazy' [17:28:29.061] - Field: 'state' [17:28:29.061] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:28:29.061] - Launch lazy future ... [17:28:29.061] Packages needed by the future expression (n = 0): [17:28:29.062] Packages needed by future strategies (n = 0): [17:28:29.062] { [17:28:29.062] { [17:28:29.062] { [17:28:29.062] ...future.startTime <- base::Sys.time() [17:28:29.062] { [17:28:29.062] { [17:28:29.062] { [17:28:29.062] base::local({ [17:28:29.062] has_future <- base::requireNamespace("future", [17:28:29.062] quietly = TRUE) [17:28:29.062] if (has_future) { [17:28:29.062] ns <- base::getNamespace("future") [17:28:29.062] version <- ns[[".package"]][["version"]] [17:28:29.062] if (is.null(version)) [17:28:29.062] version <- utils::packageVersion("future") [17:28:29.062] } [17:28:29.062] else { [17:28:29.062] version <- NULL [17:28:29.062] } [17:28:29.062] if (!has_future || version < "1.8.0") { [17:28:29.062] info <- base::c(r_version = base::gsub("R version ", [17:28:29.062] "", base::R.version$version.string), [17:28:29.062] platform = base::sprintf("%s (%s-bit)", [17:28:29.062] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:28:29.062] os = base::paste(base::Sys.info()[base::c("sysname", [17:28:29.062] "release", "version")], collapse = " "), [17:28:29.062] hostname = base::Sys.info()[["nodename"]]) [17:28:29.062] info <- base::sprintf("%s: %s", base::names(info), [17:28:29.062] info) [17:28:29.062] info <- base::paste(info, collapse = "; ") [17:28:29.062] if (!has_future) { [17:28:29.062] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:28:29.062] info) [17:28:29.062] } [17:28:29.062] else { [17:28:29.062] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:28:29.062] info, version) [17:28:29.062] } [17:28:29.062] base::stop(msg) [17:28:29.062] } [17:28:29.062] }) [17:28:29.062] } [17:28:29.062] ...future.strategy.old <- future::plan("list") [17:28:29.062] options(future.plan = NULL) [17:28:29.062] Sys.unsetenv("R_FUTURE_PLAN") [17:28:29.062] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:28:29.062] } [17:28:29.062] ...future.workdir <- getwd() [17:28:29.062] } [17:28:29.062] ...future.oldOptions <- base::as.list(base::.Options) [17:28:29.062] ...future.oldEnvVars <- base::Sys.getenv() [17:28:29.062] } [17:28:29.062] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:28:29.062] future.globals.maxSize = NULL, future.globals.method = NULL, [17:28:29.062] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:28:29.062] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:28:29.062] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:28:29.062] future.stdout.windows.reencode = NULL, width = 80L) [17:28:29.062] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:28:29.062] base::names(...future.oldOptions)) [17:28:29.062] } [17:28:29.062] if (FALSE) { [17:28:29.062] } [17:28:29.062] else { [17:28:29.062] if (TRUE) { [17:28:29.062] ...future.stdout <- base::rawConnection(base::raw(0L), [17:28:29.062] open = "w") [17:28:29.062] } [17:28:29.062] else { [17:28:29.062] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:28:29.062] windows = "NUL", "/dev/null"), open = "w") [17:28:29.062] } [17:28:29.062] base::sink(...future.stdout, type = "output", split = FALSE) [17:28:29.062] base::on.exit(if (!base::is.null(...future.stdout)) { [17:28:29.062] base::sink(type = "output", split = FALSE) [17:28:29.062] base::close(...future.stdout) [17:28:29.062] }, add = TRUE) [17:28:29.062] } [17:28:29.062] ...future.frame <- base::sys.nframe() [17:28:29.062] ...future.conditions <- base::list() [17:28:29.062] ...future.rng <- base::globalenv()$.Random.seed [17:28:29.062] if (FALSE) { [17:28:29.062] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:28:29.062] "...future.value", "...future.globalenv.names", ".Random.seed") [17:28:29.062] } [17:28:29.062] ...future.result <- base::tryCatch({ [17:28:29.062] base::withCallingHandlers({ [17:28:29.062] ...future.value <- base::withVisible(base::local({ [17:28:29.062] a <- 1 [17:28:29.062] a [17:28:29.062] })) [17:28:29.062] future::FutureResult(value = ...future.value$value, [17:28:29.062] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:28:29.062] ...future.rng), globalenv = if (FALSE) [17:28:29.062] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:28:29.062] ...future.globalenv.names)) [17:28:29.062] else NULL, started = ...future.startTime, version = "1.8") [17:28:29.062] }, condition = base::local({ [17:28:29.062] c <- base::c [17:28:29.062] inherits <- base::inherits [17:28:29.062] invokeRestart <- base::invokeRestart [17:28:29.062] length <- base::length [17:28:29.062] list <- base::list [17:28:29.062] seq.int <- base::seq.int [17:28:29.062] signalCondition <- base::signalCondition [17:28:29.062] sys.calls <- base::sys.calls [17:28:29.062] `[[` <- base::`[[` [17:28:29.062] `+` <- base::`+` [17:28:29.062] `<<-` <- base::`<<-` [17:28:29.062] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:28:29.062] calls[seq.int(from = from + 12L, to = length(calls) - [17:28:29.062] 3L)] [17:28:29.062] } [17:28:29.062] function(cond) { [17:28:29.062] is_error <- inherits(cond, "error") [17:28:29.062] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:28:29.062] NULL) [17:28:29.062] if (is_error) { [17:28:29.062] sessionInformation <- function() { [17:28:29.062] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:28:29.062] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:28:29.062] search = base::search(), system = base::Sys.info()) [17:28:29.062] } [17:28:29.062] ...future.conditions[[length(...future.conditions) + [17:28:29.062] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:28:29.062] cond$call), session = sessionInformation(), [17:28:29.062] timestamp = base::Sys.time(), signaled = 0L) [17:28:29.062] signalCondition(cond) [17:28:29.062] } [17:28:29.062] else if (!ignore && TRUE && inherits(cond, c("condition", [17:28:29.062] "immediateCondition"))) { [17:28:29.062] signal <- TRUE && inherits(cond, "immediateCondition") [17:28:29.062] ...future.conditions[[length(...future.conditions) + [17:28:29.062] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:28:29.062] if (TRUE && !signal) { [17:28:29.062] muffleCondition <- function (cond, pattern = "^muffle") [17:28:29.062] { [17:28:29.062] inherits <- base::inherits [17:28:29.062] invokeRestart <- base::invokeRestart [17:28:29.062] is.null <- base::is.null [17:28:29.062] muffled <- FALSE [17:28:29.062] if (inherits(cond, "message")) { [17:28:29.062] muffled <- grepl(pattern, "muffleMessage") [17:28:29.062] if (muffled) [17:28:29.062] invokeRestart("muffleMessage") [17:28:29.062] } [17:28:29.062] else if (inherits(cond, "warning")) { [17:28:29.062] muffled <- grepl(pattern, "muffleWarning") [17:28:29.062] if (muffled) [17:28:29.062] invokeRestart("muffleWarning") [17:28:29.062] } [17:28:29.062] else if (inherits(cond, "condition")) { [17:28:29.062] if (!is.null(pattern)) { [17:28:29.062] computeRestarts <- base::computeRestarts [17:28:29.062] grepl <- base::grepl [17:28:29.062] restarts <- computeRestarts(cond) [17:28:29.062] for (restart in restarts) { [17:28:29.062] name <- restart$name [17:28:29.062] if (is.null(name)) [17:28:29.062] next [17:28:29.062] if (!grepl(pattern, name)) [17:28:29.062] next [17:28:29.062] invokeRestart(restart) [17:28:29.062] muffled <- TRUE [17:28:29.062] break [17:28:29.062] } [17:28:29.062] } [17:28:29.062] } [17:28:29.062] invisible(muffled) [17:28:29.062] } [17:28:29.062] muffleCondition(cond, pattern = "^muffle") [17:28:29.062] } [17:28:29.062] } [17:28:29.062] else { [17:28:29.062] if (TRUE) { [17:28:29.062] muffleCondition <- function (cond, pattern = "^muffle") [17:28:29.062] { [17:28:29.062] inherits <- base::inherits [17:28:29.062] invokeRestart <- base::invokeRestart [17:28:29.062] is.null <- base::is.null [17:28:29.062] muffled <- FALSE [17:28:29.062] if (inherits(cond, "message")) { [17:28:29.062] muffled <- grepl(pattern, "muffleMessage") [17:28:29.062] if (muffled) [17:28:29.062] invokeRestart("muffleMessage") [17:28:29.062] } [17:28:29.062] else if (inherits(cond, "warning")) { [17:28:29.062] muffled <- grepl(pattern, "muffleWarning") [17:28:29.062] if (muffled) [17:28:29.062] invokeRestart("muffleWarning") [17:28:29.062] } [17:28:29.062] else if (inherits(cond, "condition")) { [17:28:29.062] if (!is.null(pattern)) { [17:28:29.062] computeRestarts <- base::computeRestarts [17:28:29.062] grepl <- base::grepl [17:28:29.062] restarts <- computeRestarts(cond) [17:28:29.062] for (restart in restarts) { [17:28:29.062] name <- restart$name [17:28:29.062] if (is.null(name)) [17:28:29.062] next [17:28:29.062] if (!grepl(pattern, name)) [17:28:29.062] next [17:28:29.062] invokeRestart(restart) [17:28:29.062] muffled <- TRUE [17:28:29.062] break [17:28:29.062] } [17:28:29.062] } [17:28:29.062] } [17:28:29.062] invisible(muffled) [17:28:29.062] } [17:28:29.062] muffleCondition(cond, pattern = "^muffle") [17:28:29.062] } [17:28:29.062] } [17:28:29.062] } [17:28:29.062] })) [17:28:29.062] }, error = function(ex) { [17:28:29.062] base::structure(base::list(value = NULL, visible = NULL, [17:28:29.062] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:28:29.062] ...future.rng), started = ...future.startTime, [17:28:29.062] finished = Sys.time(), session_uuid = NA_character_, [17:28:29.062] version = "1.8"), class = "FutureResult") [17:28:29.062] }, finally = { [17:28:29.062] if (!identical(...future.workdir, getwd())) [17:28:29.062] setwd(...future.workdir) [17:28:29.062] { [17:28:29.062] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:28:29.062] ...future.oldOptions$nwarnings <- NULL [17:28:29.062] } [17:28:29.062] base::options(...future.oldOptions) [17:28:29.062] if (.Platform$OS.type == "windows") { [17:28:29.062] old_names <- names(...future.oldEnvVars) [17:28:29.062] envs <- base::Sys.getenv() [17:28:29.062] names <- names(envs) [17:28:29.062] common <- intersect(names, old_names) [17:28:29.062] added <- setdiff(names, old_names) [17:28:29.062] removed <- setdiff(old_names, names) [17:28:29.062] changed <- common[...future.oldEnvVars[common] != [17:28:29.062] envs[common]] [17:28:29.062] NAMES <- toupper(changed) [17:28:29.062] args <- list() [17:28:29.062] for (kk in seq_along(NAMES)) { [17:28:29.062] name <- changed[[kk]] [17:28:29.062] NAME <- NAMES[[kk]] [17:28:29.062] if (name != NAME && is.element(NAME, old_names)) [17:28:29.062] next [17:28:29.062] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:29.062] } [17:28:29.062] NAMES <- toupper(added) [17:28:29.062] for (kk in seq_along(NAMES)) { [17:28:29.062] name <- added[[kk]] [17:28:29.062] NAME <- NAMES[[kk]] [17:28:29.062] if (name != NAME && is.element(NAME, old_names)) [17:28:29.062] next [17:28:29.062] args[[name]] <- "" [17:28:29.062] } [17:28:29.062] NAMES <- toupper(removed) [17:28:29.062] for (kk in seq_along(NAMES)) { [17:28:29.062] name <- removed[[kk]] [17:28:29.062] NAME <- NAMES[[kk]] [17:28:29.062] if (name != NAME && is.element(NAME, old_names)) [17:28:29.062] next [17:28:29.062] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:29.062] } [17:28:29.062] if (length(args) > 0) [17:28:29.062] base::do.call(base::Sys.setenv, args = args) [17:28:29.062] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:28:29.062] } [17:28:29.062] else { [17:28:29.062] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:28:29.062] } [17:28:29.062] { [17:28:29.062] if (base::length(...future.futureOptionsAdded) > [17:28:29.062] 0L) { [17:28:29.062] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:28:29.062] base::names(opts) <- ...future.futureOptionsAdded [17:28:29.062] base::options(opts) [17:28:29.062] } [17:28:29.062] { [17:28:29.062] { [17:28:29.062] NULL [17:28:29.062] RNGkind("Mersenne-Twister") [17:28:29.062] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:28:29.062] inherits = FALSE) [17:28:29.062] } [17:28:29.062] options(future.plan = NULL) [17:28:29.062] if (is.na(NA_character_)) [17:28:29.062] Sys.unsetenv("R_FUTURE_PLAN") [17:28:29.062] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:28:29.062] future::plan(...future.strategy.old, .cleanup = FALSE, [17:28:29.062] .init = FALSE) [17:28:29.062] } [17:28:29.062] } [17:28:29.062] } [17:28:29.062] }) [17:28:29.062] if (TRUE) { [17:28:29.062] base::sink(type = "output", split = FALSE) [17:28:29.062] if (TRUE) { [17:28:29.062] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:28:29.062] } [17:28:29.062] else { [17:28:29.062] ...future.result["stdout"] <- base::list(NULL) [17:28:29.062] } [17:28:29.062] base::close(...future.stdout) [17:28:29.062] ...future.stdout <- NULL [17:28:29.062] } [17:28:29.062] ...future.result$conditions <- ...future.conditions [17:28:29.062] ...future.result$finished <- base::Sys.time() [17:28:29.062] ...future.result [17:28:29.062] } [17:28:29.066] plan(): Setting new future strategy stack: [17:28:29.066] List of future strategies: [17:28:29.066] 1. sequential: [17:28:29.066] - args: function (..., envir = parent.frame(), workers = "") [17:28:29.066] - tweaked: FALSE [17:28:29.066] - call: NULL [17:28:29.067] plan(): nbrOfWorkers() = 1 [17:28:29.069] plan(): Setting new future strategy stack: [17:28:29.069] List of future strategies: [17:28:29.069] 1. sequential: [17:28:29.069] - args: function (..., envir = parent.frame(), workers = "") [17:28:29.069] - tweaked: FALSE [17:28:29.069] - call: plan(sequential) [17:28:29.070] plan(): nbrOfWorkers() = 1 [17:28:29.070] SequentialFuture started (and completed) [17:28:29.070] - Launch lazy future ... done [17:28:29.070] 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:28:29.071] plan(): Setting new future strategy stack: [17:28:29.071] List of future strategies: [17:28:29.071] 1. sequential: [17:28:29.071] - args: function (..., abc = FALSE, envir = parent.frame(), workers = "") [17:28:29.071] - tweaked: TRUE [17:28:29.071] - call: plan(sequential, abc = FALSE) [17:28:29.072] plan(): nbrOfWorkers() = 1 > > a <- 0 > x %<-% { a <- 1; a } [17:28:29.072] getGlobalsAndPackages() ... [17:28:29.073] Searching for globals... [17:28:29.074] - globals found: [2] '{', '<-' [17:28:29.074] Searching for globals ... DONE [17:28:29.074] Resolving globals: FALSE [17:28:29.075] [17:28:29.075] [17:28:29.075] getGlobalsAndPackages() ... DONE [17:28:29.075] run() for 'Future' ... [17:28:29.075] - state: 'created' [17:28:29.076] - Future backend: 'FutureStrategy', 'tweaked', 'sequential', 'uniprocess', 'future', 'function' [17:28:29.076] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:28:29.076] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:28:29.076] - Field: 'label' [17:28:29.077] - Field: 'local' [17:28:29.077] - Field: 'owner' [17:28:29.077] - Field: 'envir' [17:28:29.077] - Field: 'packages' [17:28:29.077] - Field: 'gc' [17:28:29.077] - Field: 'conditions' [17:28:29.078] - Field: 'expr' [17:28:29.078] - Field: 'uuid' [17:28:29.078] - Field: 'seed' [17:28:29.078] - Field: 'version' [17:28:29.078] - Field: 'result' [17:28:29.079] - Field: 'asynchronous' [17:28:29.079] - Field: 'calls' [17:28:29.079] - Field: 'abc' [17:28:29.079] - Field: 'globals' [17:28:29.079] - Field: 'stdout' [17:28:29.079] - Field: 'earlySignal' [17:28:29.080] - Field: 'lazy' [17:28:29.080] - Field: 'state' [17:28:29.080] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:28:29.080] - Launch lazy future ... [17:28:29.080] Packages needed by the future expression (n = 0): [17:28:29.081] Packages needed by future strategies (n = 0): [17:28:29.081] { [17:28:29.081] { [17:28:29.081] { [17:28:29.081] ...future.startTime <- base::Sys.time() [17:28:29.081] { [17:28:29.081] { [17:28:29.081] { [17:28:29.081] base::local({ [17:28:29.081] has_future <- base::requireNamespace("future", [17:28:29.081] quietly = TRUE) [17:28:29.081] if (has_future) { [17:28:29.081] ns <- base::getNamespace("future") [17:28:29.081] version <- ns[[".package"]][["version"]] [17:28:29.081] if (is.null(version)) [17:28:29.081] version <- utils::packageVersion("future") [17:28:29.081] } [17:28:29.081] else { [17:28:29.081] version <- NULL [17:28:29.081] } [17:28:29.081] if (!has_future || version < "1.8.0") { [17:28:29.081] info <- base::c(r_version = base::gsub("R version ", [17:28:29.081] "", base::R.version$version.string), [17:28:29.081] platform = base::sprintf("%s (%s-bit)", [17:28:29.081] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:28:29.081] os = base::paste(base::Sys.info()[base::c("sysname", [17:28:29.081] "release", "version")], collapse = " "), [17:28:29.081] hostname = base::Sys.info()[["nodename"]]) [17:28:29.081] info <- base::sprintf("%s: %s", base::names(info), [17:28:29.081] info) [17:28:29.081] info <- base::paste(info, collapse = "; ") [17:28:29.081] if (!has_future) { [17:28:29.081] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:28:29.081] info) [17:28:29.081] } [17:28:29.081] else { [17:28:29.081] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:28:29.081] info, version) [17:28:29.081] } [17:28:29.081] base::stop(msg) [17:28:29.081] } [17:28:29.081] }) [17:28:29.081] } [17:28:29.081] ...future.strategy.old <- future::plan("list") [17:28:29.081] options(future.plan = NULL) [17:28:29.081] Sys.unsetenv("R_FUTURE_PLAN") [17:28:29.081] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:28:29.081] } [17:28:29.081] ...future.workdir <- getwd() [17:28:29.081] } [17:28:29.081] ...future.oldOptions <- base::as.list(base::.Options) [17:28:29.081] ...future.oldEnvVars <- base::Sys.getenv() [17:28:29.081] } [17:28:29.081] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:28:29.081] future.globals.maxSize = NULL, future.globals.method = NULL, [17:28:29.081] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:28:29.081] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:28:29.081] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:28:29.081] future.stdout.windows.reencode = NULL, width = 80L) [17:28:29.081] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:28:29.081] base::names(...future.oldOptions)) [17:28:29.081] } [17:28:29.081] if (FALSE) { [17:28:29.081] } [17:28:29.081] else { [17:28:29.081] if (TRUE) { [17:28:29.081] ...future.stdout <- base::rawConnection(base::raw(0L), [17:28:29.081] open = "w") [17:28:29.081] } [17:28:29.081] else { [17:28:29.081] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:28:29.081] windows = "NUL", "/dev/null"), open = "w") [17:28:29.081] } [17:28:29.081] base::sink(...future.stdout, type = "output", split = FALSE) [17:28:29.081] base::on.exit(if (!base::is.null(...future.stdout)) { [17:28:29.081] base::sink(type = "output", split = FALSE) [17:28:29.081] base::close(...future.stdout) [17:28:29.081] }, add = TRUE) [17:28:29.081] } [17:28:29.081] ...future.frame <- base::sys.nframe() [17:28:29.081] ...future.conditions <- base::list() [17:28:29.081] ...future.rng <- base::globalenv()$.Random.seed [17:28:29.081] if (FALSE) { [17:28:29.081] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:28:29.081] "...future.value", "...future.globalenv.names", ".Random.seed") [17:28:29.081] } [17:28:29.081] ...future.result <- base::tryCatch({ [17:28:29.081] base::withCallingHandlers({ [17:28:29.081] ...future.value <- base::withVisible(base::local({ [17:28:29.081] a <- 1 [17:28:29.081] a [17:28:29.081] })) [17:28:29.081] future::FutureResult(value = ...future.value$value, [17:28:29.081] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:28:29.081] ...future.rng), globalenv = if (FALSE) [17:28:29.081] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:28:29.081] ...future.globalenv.names)) [17:28:29.081] else NULL, started = ...future.startTime, version = "1.8") [17:28:29.081] }, condition = base::local({ [17:28:29.081] c <- base::c [17:28:29.081] inherits <- base::inherits [17:28:29.081] invokeRestart <- base::invokeRestart [17:28:29.081] length <- base::length [17:28:29.081] list <- base::list [17:28:29.081] seq.int <- base::seq.int [17:28:29.081] signalCondition <- base::signalCondition [17:28:29.081] sys.calls <- base::sys.calls [17:28:29.081] `[[` <- base::`[[` [17:28:29.081] `+` <- base::`+` [17:28:29.081] `<<-` <- base::`<<-` [17:28:29.081] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:28:29.081] calls[seq.int(from = from + 12L, to = length(calls) - [17:28:29.081] 3L)] [17:28:29.081] } [17:28:29.081] function(cond) { [17:28:29.081] is_error <- inherits(cond, "error") [17:28:29.081] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:28:29.081] NULL) [17:28:29.081] if (is_error) { [17:28:29.081] sessionInformation <- function() { [17:28:29.081] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:28:29.081] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:28:29.081] search = base::search(), system = base::Sys.info()) [17:28:29.081] } [17:28:29.081] ...future.conditions[[length(...future.conditions) + [17:28:29.081] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:28:29.081] cond$call), session = sessionInformation(), [17:28:29.081] timestamp = base::Sys.time(), signaled = 0L) [17:28:29.081] signalCondition(cond) [17:28:29.081] } [17:28:29.081] else if (!ignore && TRUE && inherits(cond, c("condition", [17:28:29.081] "immediateCondition"))) { [17:28:29.081] signal <- TRUE && inherits(cond, "immediateCondition") [17:28:29.081] ...future.conditions[[length(...future.conditions) + [17:28:29.081] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:28:29.081] if (TRUE && !signal) { [17:28:29.081] muffleCondition <- function (cond, pattern = "^muffle") [17:28:29.081] { [17:28:29.081] inherits <- base::inherits [17:28:29.081] invokeRestart <- base::invokeRestart [17:28:29.081] is.null <- base::is.null [17:28:29.081] muffled <- FALSE [17:28:29.081] if (inherits(cond, "message")) { [17:28:29.081] muffled <- grepl(pattern, "muffleMessage") [17:28:29.081] if (muffled) [17:28:29.081] invokeRestart("muffleMessage") [17:28:29.081] } [17:28:29.081] else if (inherits(cond, "warning")) { [17:28:29.081] muffled <- grepl(pattern, "muffleWarning") [17:28:29.081] if (muffled) [17:28:29.081] invokeRestart("muffleWarning") [17:28:29.081] } [17:28:29.081] else if (inherits(cond, "condition")) { [17:28:29.081] if (!is.null(pattern)) { [17:28:29.081] computeRestarts <- base::computeRestarts [17:28:29.081] grepl <- base::grepl [17:28:29.081] restarts <- computeRestarts(cond) [17:28:29.081] for (restart in restarts) { [17:28:29.081] name <- restart$name [17:28:29.081] if (is.null(name)) [17:28:29.081] next [17:28:29.081] if (!grepl(pattern, name)) [17:28:29.081] next [17:28:29.081] invokeRestart(restart) [17:28:29.081] muffled <- TRUE [17:28:29.081] break [17:28:29.081] } [17:28:29.081] } [17:28:29.081] } [17:28:29.081] invisible(muffled) [17:28:29.081] } [17:28:29.081] muffleCondition(cond, pattern = "^muffle") [17:28:29.081] } [17:28:29.081] } [17:28:29.081] else { [17:28:29.081] if (TRUE) { [17:28:29.081] muffleCondition <- function (cond, pattern = "^muffle") [17:28:29.081] { [17:28:29.081] inherits <- base::inherits [17:28:29.081] invokeRestart <- base::invokeRestart [17:28:29.081] is.null <- base::is.null [17:28:29.081] muffled <- FALSE [17:28:29.081] if (inherits(cond, "message")) { [17:28:29.081] muffled <- grepl(pattern, "muffleMessage") [17:28:29.081] if (muffled) [17:28:29.081] invokeRestart("muffleMessage") [17:28:29.081] } [17:28:29.081] else if (inherits(cond, "warning")) { [17:28:29.081] muffled <- grepl(pattern, "muffleWarning") [17:28:29.081] if (muffled) [17:28:29.081] invokeRestart("muffleWarning") [17:28:29.081] } [17:28:29.081] else if (inherits(cond, "condition")) { [17:28:29.081] if (!is.null(pattern)) { [17:28:29.081] computeRestarts <- base::computeRestarts [17:28:29.081] grepl <- base::grepl [17:28:29.081] restarts <- computeRestarts(cond) [17:28:29.081] for (restart in restarts) { [17:28:29.081] name <- restart$name [17:28:29.081] if (is.null(name)) [17:28:29.081] next [17:28:29.081] if (!grepl(pattern, name)) [17:28:29.081] next [17:28:29.081] invokeRestart(restart) [17:28:29.081] muffled <- TRUE [17:28:29.081] break [17:28:29.081] } [17:28:29.081] } [17:28:29.081] } [17:28:29.081] invisible(muffled) [17:28:29.081] } [17:28:29.081] muffleCondition(cond, pattern = "^muffle") [17:28:29.081] } [17:28:29.081] } [17:28:29.081] } [17:28:29.081] })) [17:28:29.081] }, error = function(ex) { [17:28:29.081] base::structure(base::list(value = NULL, visible = NULL, [17:28:29.081] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:28:29.081] ...future.rng), started = ...future.startTime, [17:28:29.081] finished = Sys.time(), session_uuid = NA_character_, [17:28:29.081] version = "1.8"), class = "FutureResult") [17:28:29.081] }, finally = { [17:28:29.081] if (!identical(...future.workdir, getwd())) [17:28:29.081] setwd(...future.workdir) [17:28:29.081] { [17:28:29.081] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:28:29.081] ...future.oldOptions$nwarnings <- NULL [17:28:29.081] } [17:28:29.081] base::options(...future.oldOptions) [17:28:29.081] if (.Platform$OS.type == "windows") { [17:28:29.081] old_names <- names(...future.oldEnvVars) [17:28:29.081] envs <- base::Sys.getenv() [17:28:29.081] names <- names(envs) [17:28:29.081] common <- intersect(names, old_names) [17:28:29.081] added <- setdiff(names, old_names) [17:28:29.081] removed <- setdiff(old_names, names) [17:28:29.081] changed <- common[...future.oldEnvVars[common] != [17:28:29.081] envs[common]] [17:28:29.081] NAMES <- toupper(changed) [17:28:29.081] args <- list() [17:28:29.081] for (kk in seq_along(NAMES)) { [17:28:29.081] name <- changed[[kk]] [17:28:29.081] NAME <- NAMES[[kk]] [17:28:29.081] if (name != NAME && is.element(NAME, old_names)) [17:28:29.081] next [17:28:29.081] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:29.081] } [17:28:29.081] NAMES <- toupper(added) [17:28:29.081] for (kk in seq_along(NAMES)) { [17:28:29.081] name <- added[[kk]] [17:28:29.081] NAME <- NAMES[[kk]] [17:28:29.081] if (name != NAME && is.element(NAME, old_names)) [17:28:29.081] next [17:28:29.081] args[[name]] <- "" [17:28:29.081] } [17:28:29.081] NAMES <- toupper(removed) [17:28:29.081] for (kk in seq_along(NAMES)) { [17:28:29.081] name <- removed[[kk]] [17:28:29.081] NAME <- NAMES[[kk]] [17:28:29.081] if (name != NAME && is.element(NAME, old_names)) [17:28:29.081] next [17:28:29.081] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:29.081] } [17:28:29.081] if (length(args) > 0) [17:28:29.081] base::do.call(base::Sys.setenv, args = args) [17:28:29.081] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:28:29.081] } [17:28:29.081] else { [17:28:29.081] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:28:29.081] } [17:28:29.081] { [17:28:29.081] if (base::length(...future.futureOptionsAdded) > [17:28:29.081] 0L) { [17:28:29.081] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:28:29.081] base::names(opts) <- ...future.futureOptionsAdded [17:28:29.081] base::options(opts) [17:28:29.081] } [17:28:29.081] { [17:28:29.081] { [17:28:29.081] NULL [17:28:29.081] RNGkind("Mersenne-Twister") [17:28:29.081] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:28:29.081] inherits = FALSE) [17:28:29.081] } [17:28:29.081] options(future.plan = NULL) [17:28:29.081] if (is.na(NA_character_)) [17:28:29.081] Sys.unsetenv("R_FUTURE_PLAN") [17:28:29.081] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:28:29.081] future::plan(...future.strategy.old, .cleanup = FALSE, [17:28:29.081] .init = FALSE) [17:28:29.081] } [17:28:29.081] } [17:28:29.081] } [17:28:29.081] }) [17:28:29.081] if (TRUE) { [17:28:29.081] base::sink(type = "output", split = FALSE) [17:28:29.081] if (TRUE) { [17:28:29.081] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:28:29.081] } [17:28:29.081] else { [17:28:29.081] ...future.result["stdout"] <- base::list(NULL) [17:28:29.081] } [17:28:29.081] base::close(...future.stdout) [17:28:29.081] ...future.stdout <- NULL [17:28:29.081] } [17:28:29.081] ...future.result$conditions <- ...future.conditions [17:28:29.081] ...future.result$finished <- base::Sys.time() [17:28:29.081] ...future.result [17:28:29.081] } [17:28:29.085] plan(): Setting new future strategy stack: [17:28:29.086] List of future strategies: [17:28:29.086] 1. sequential: [17:28:29.086] - args: function (..., envir = parent.frame(), workers = "") [17:28:29.086] - tweaked: FALSE [17:28:29.086] - call: NULL [17:28:29.086] plan(): nbrOfWorkers() = 1 [17:28:29.087] plan(): Setting new future strategy stack: [17:28:29.088] List of future strategies: [17:28:29.088] 1. sequential: [17:28:29.088] - args: function (..., abc = FALSE, envir = parent.frame(), workers = "") [17:28:29.088] - tweaked: TRUE [17:28:29.088] - call: plan(sequential, abc = FALSE) [17:28:29.088] plan(): nbrOfWorkers() = 1 [17:28:29.088] SequentialFuture started (and completed) [17:28:29.089] - Launch lazy future ... done [17:28:29.089] run() for 'SequentialFuture' ... done > print(x) [1] 1 > stopifnot(a == 0, x == 1) > > x %<-% { a <- 2; a } %tweak% list(abc = TRUE) [17:28:29.090] plan(): Setting new future strategy stack: [17:28:29.090] List of future strategies: [17:28:29.090] 1. sequential: [17:28:29.090] - args: function (..., abc = TRUE, envir = parent.frame(), workers = "") [17:28:29.090] - tweaked: TRUE [17:28:29.090] - call: plan(sequential, abc = FALSE) [17:28:29.090] plan(): nbrOfWorkers() = 1 [17:28:29.091] getGlobalsAndPackages() ... [17:28:29.091] Searching for globals... [17:28:29.092] - globals found: [2] '{', '<-' [17:28:29.092] Searching for globals ... DONE [17:28:29.093] Resolving globals: FALSE [17:28:29.093] [17:28:29.093] [17:28:29.093] getGlobalsAndPackages() ... DONE [17:28:29.094] run() for 'Future' ... [17:28:29.094] - state: 'created' [17:28:29.094] - Future backend: 'FutureStrategy', 'tweaked', 'tweaked', 'sequential', 'uniprocess', 'future', 'function' [17:28:29.094] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:28:29.095] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:28:29.095] - Field: 'label' [17:28:29.095] - Field: 'local' [17:28:29.095] - Field: 'owner' [17:28:29.095] - Field: 'envir' [17:28:29.095] - Field: 'packages' [17:28:29.096] - Field: 'gc' [17:28:29.096] - Field: 'conditions' [17:28:29.096] - Field: 'expr' [17:28:29.096] - Field: 'uuid' [17:28:29.096] - Field: 'seed' [17:28:29.097] - Field: 'version' [17:28:29.097] - Field: 'result' [17:28:29.097] - Field: 'asynchronous' [17:28:29.097] - Field: 'calls' [17:28:29.097] - Field: 'abc' [17:28:29.097] - Field: 'globals' [17:28:29.098] - Field: 'stdout' [17:28:29.098] - Field: 'earlySignal' [17:28:29.098] - Field: 'lazy' [17:28:29.098] - Field: 'state' [17:28:29.098] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:28:29.098] - Launch lazy future ... [17:28:29.099] Packages needed by the future expression (n = 0): [17:28:29.099] Packages needed by future strategies (n = 0): [17:28:29.099] { [17:28:29.099] { [17:28:29.099] { [17:28:29.099] ...future.startTime <- base::Sys.time() [17:28:29.099] { [17:28:29.099] { [17:28:29.099] { [17:28:29.099] base::local({ [17:28:29.099] has_future <- base::requireNamespace("future", [17:28:29.099] quietly = TRUE) [17:28:29.099] if (has_future) { [17:28:29.099] ns <- base::getNamespace("future") [17:28:29.099] version <- ns[[".package"]][["version"]] [17:28:29.099] if (is.null(version)) [17:28:29.099] version <- utils::packageVersion("future") [17:28:29.099] } [17:28:29.099] else { [17:28:29.099] version <- NULL [17:28:29.099] } [17:28:29.099] if (!has_future || version < "1.8.0") { [17:28:29.099] info <- base::c(r_version = base::gsub("R version ", [17:28:29.099] "", base::R.version$version.string), [17:28:29.099] platform = base::sprintf("%s (%s-bit)", [17:28:29.099] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:28:29.099] os = base::paste(base::Sys.info()[base::c("sysname", [17:28:29.099] "release", "version")], collapse = " "), [17:28:29.099] hostname = base::Sys.info()[["nodename"]]) [17:28:29.099] info <- base::sprintf("%s: %s", base::names(info), [17:28:29.099] info) [17:28:29.099] info <- base::paste(info, collapse = "; ") [17:28:29.099] if (!has_future) { [17:28:29.099] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:28:29.099] info) [17:28:29.099] } [17:28:29.099] else { [17:28:29.099] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:28:29.099] info, version) [17:28:29.099] } [17:28:29.099] base::stop(msg) [17:28:29.099] } [17:28:29.099] }) [17:28:29.099] } [17:28:29.099] ...future.strategy.old <- future::plan("list") [17:28:29.099] options(future.plan = NULL) [17:28:29.099] Sys.unsetenv("R_FUTURE_PLAN") [17:28:29.099] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:28:29.099] } [17:28:29.099] ...future.workdir <- getwd() [17:28:29.099] } [17:28:29.099] ...future.oldOptions <- base::as.list(base::.Options) [17:28:29.099] ...future.oldEnvVars <- base::Sys.getenv() [17:28:29.099] } [17:28:29.099] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:28:29.099] future.globals.maxSize = NULL, future.globals.method = NULL, [17:28:29.099] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:28:29.099] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:28:29.099] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:28:29.099] future.stdout.windows.reencode = NULL, width = 80L) [17:28:29.099] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:28:29.099] base::names(...future.oldOptions)) [17:28:29.099] } [17:28:29.099] if (FALSE) { [17:28:29.099] } [17:28:29.099] else { [17:28:29.099] if (TRUE) { [17:28:29.099] ...future.stdout <- base::rawConnection(base::raw(0L), [17:28:29.099] open = "w") [17:28:29.099] } [17:28:29.099] else { [17:28:29.099] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:28:29.099] windows = "NUL", "/dev/null"), open = "w") [17:28:29.099] } [17:28:29.099] base::sink(...future.stdout, type = "output", split = FALSE) [17:28:29.099] base::on.exit(if (!base::is.null(...future.stdout)) { [17:28:29.099] base::sink(type = "output", split = FALSE) [17:28:29.099] base::close(...future.stdout) [17:28:29.099] }, add = TRUE) [17:28:29.099] } [17:28:29.099] ...future.frame <- base::sys.nframe() [17:28:29.099] ...future.conditions <- base::list() [17:28:29.099] ...future.rng <- base::globalenv()$.Random.seed [17:28:29.099] if (FALSE) { [17:28:29.099] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:28:29.099] "...future.value", "...future.globalenv.names", ".Random.seed") [17:28:29.099] } [17:28:29.099] ...future.result <- base::tryCatch({ [17:28:29.099] base::withCallingHandlers({ [17:28:29.099] ...future.value <- base::withVisible(base::local({ [17:28:29.099] a <- 2 [17:28:29.099] a [17:28:29.099] })) [17:28:29.099] future::FutureResult(value = ...future.value$value, [17:28:29.099] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:28:29.099] ...future.rng), globalenv = if (FALSE) [17:28:29.099] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:28:29.099] ...future.globalenv.names)) [17:28:29.099] else NULL, started = ...future.startTime, version = "1.8") [17:28:29.099] }, condition = base::local({ [17:28:29.099] c <- base::c [17:28:29.099] inherits <- base::inherits [17:28:29.099] invokeRestart <- base::invokeRestart [17:28:29.099] length <- base::length [17:28:29.099] list <- base::list [17:28:29.099] seq.int <- base::seq.int [17:28:29.099] signalCondition <- base::signalCondition [17:28:29.099] sys.calls <- base::sys.calls [17:28:29.099] `[[` <- base::`[[` [17:28:29.099] `+` <- base::`+` [17:28:29.099] `<<-` <- base::`<<-` [17:28:29.099] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:28:29.099] calls[seq.int(from = from + 12L, to = length(calls) - [17:28:29.099] 3L)] [17:28:29.099] } [17:28:29.099] function(cond) { [17:28:29.099] is_error <- inherits(cond, "error") [17:28:29.099] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:28:29.099] NULL) [17:28:29.099] if (is_error) { [17:28:29.099] sessionInformation <- function() { [17:28:29.099] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:28:29.099] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:28:29.099] search = base::search(), system = base::Sys.info()) [17:28:29.099] } [17:28:29.099] ...future.conditions[[length(...future.conditions) + [17:28:29.099] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:28:29.099] cond$call), session = sessionInformation(), [17:28:29.099] timestamp = base::Sys.time(), signaled = 0L) [17:28:29.099] signalCondition(cond) [17:28:29.099] } [17:28:29.099] else if (!ignore && TRUE && inherits(cond, c("condition", [17:28:29.099] "immediateCondition"))) { [17:28:29.099] signal <- TRUE && inherits(cond, "immediateCondition") [17:28:29.099] ...future.conditions[[length(...future.conditions) + [17:28:29.099] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:28:29.099] if (TRUE && !signal) { [17:28:29.099] muffleCondition <- function (cond, pattern = "^muffle") [17:28:29.099] { [17:28:29.099] inherits <- base::inherits [17:28:29.099] invokeRestart <- base::invokeRestart [17:28:29.099] is.null <- base::is.null [17:28:29.099] muffled <- FALSE [17:28:29.099] if (inherits(cond, "message")) { [17:28:29.099] muffled <- grepl(pattern, "muffleMessage") [17:28:29.099] if (muffled) [17:28:29.099] invokeRestart("muffleMessage") [17:28:29.099] } [17:28:29.099] else if (inherits(cond, "warning")) { [17:28:29.099] muffled <- grepl(pattern, "muffleWarning") [17:28:29.099] if (muffled) [17:28:29.099] invokeRestart("muffleWarning") [17:28:29.099] } [17:28:29.099] else if (inherits(cond, "condition")) { [17:28:29.099] if (!is.null(pattern)) { [17:28:29.099] computeRestarts <- base::computeRestarts [17:28:29.099] grepl <- base::grepl [17:28:29.099] restarts <- computeRestarts(cond) [17:28:29.099] for (restart in restarts) { [17:28:29.099] name <- restart$name [17:28:29.099] if (is.null(name)) [17:28:29.099] next [17:28:29.099] if (!grepl(pattern, name)) [17:28:29.099] next [17:28:29.099] invokeRestart(restart) [17:28:29.099] muffled <- TRUE [17:28:29.099] break [17:28:29.099] } [17:28:29.099] } [17:28:29.099] } [17:28:29.099] invisible(muffled) [17:28:29.099] } [17:28:29.099] muffleCondition(cond, pattern = "^muffle") [17:28:29.099] } [17:28:29.099] } [17:28:29.099] else { [17:28:29.099] if (TRUE) { [17:28:29.099] muffleCondition <- function (cond, pattern = "^muffle") [17:28:29.099] { [17:28:29.099] inherits <- base::inherits [17:28:29.099] invokeRestart <- base::invokeRestart [17:28:29.099] is.null <- base::is.null [17:28:29.099] muffled <- FALSE [17:28:29.099] if (inherits(cond, "message")) { [17:28:29.099] muffled <- grepl(pattern, "muffleMessage") [17:28:29.099] if (muffled) [17:28:29.099] invokeRestart("muffleMessage") [17:28:29.099] } [17:28:29.099] else if (inherits(cond, "warning")) { [17:28:29.099] muffled <- grepl(pattern, "muffleWarning") [17:28:29.099] if (muffled) [17:28:29.099] invokeRestart("muffleWarning") [17:28:29.099] } [17:28:29.099] else if (inherits(cond, "condition")) { [17:28:29.099] if (!is.null(pattern)) { [17:28:29.099] computeRestarts <- base::computeRestarts [17:28:29.099] grepl <- base::grepl [17:28:29.099] restarts <- computeRestarts(cond) [17:28:29.099] for (restart in restarts) { [17:28:29.099] name <- restart$name [17:28:29.099] if (is.null(name)) [17:28:29.099] next [17:28:29.099] if (!grepl(pattern, name)) [17:28:29.099] next [17:28:29.099] invokeRestart(restart) [17:28:29.099] muffled <- TRUE [17:28:29.099] break [17:28:29.099] } [17:28:29.099] } [17:28:29.099] } [17:28:29.099] invisible(muffled) [17:28:29.099] } [17:28:29.099] muffleCondition(cond, pattern = "^muffle") [17:28:29.099] } [17:28:29.099] } [17:28:29.099] } [17:28:29.099] })) [17:28:29.099] }, error = function(ex) { [17:28:29.099] base::structure(base::list(value = NULL, visible = NULL, [17:28:29.099] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:28:29.099] ...future.rng), started = ...future.startTime, [17:28:29.099] finished = Sys.time(), session_uuid = NA_character_, [17:28:29.099] version = "1.8"), class = "FutureResult") [17:28:29.099] }, finally = { [17:28:29.099] if (!identical(...future.workdir, getwd())) [17:28:29.099] setwd(...future.workdir) [17:28:29.099] { [17:28:29.099] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:28:29.099] ...future.oldOptions$nwarnings <- NULL [17:28:29.099] } [17:28:29.099] base::options(...future.oldOptions) [17:28:29.099] if (.Platform$OS.type == "windows") { [17:28:29.099] old_names <- names(...future.oldEnvVars) [17:28:29.099] envs <- base::Sys.getenv() [17:28:29.099] names <- names(envs) [17:28:29.099] common <- intersect(names, old_names) [17:28:29.099] added <- setdiff(names, old_names) [17:28:29.099] removed <- setdiff(old_names, names) [17:28:29.099] changed <- common[...future.oldEnvVars[common] != [17:28:29.099] envs[common]] [17:28:29.099] NAMES <- toupper(changed) [17:28:29.099] args <- list() [17:28:29.099] for (kk in seq_along(NAMES)) { [17:28:29.099] name <- changed[[kk]] [17:28:29.099] NAME <- NAMES[[kk]] [17:28:29.099] if (name != NAME && is.element(NAME, old_names)) [17:28:29.099] next [17:28:29.099] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:29.099] } [17:28:29.099] NAMES <- toupper(added) [17:28:29.099] for (kk in seq_along(NAMES)) { [17:28:29.099] name <- added[[kk]] [17:28:29.099] NAME <- NAMES[[kk]] [17:28:29.099] if (name != NAME && is.element(NAME, old_names)) [17:28:29.099] next [17:28:29.099] args[[name]] <- "" [17:28:29.099] } [17:28:29.099] NAMES <- toupper(removed) [17:28:29.099] for (kk in seq_along(NAMES)) { [17:28:29.099] name <- removed[[kk]] [17:28:29.099] NAME <- NAMES[[kk]] [17:28:29.099] if (name != NAME && is.element(NAME, old_names)) [17:28:29.099] next [17:28:29.099] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:29.099] } [17:28:29.099] if (length(args) > 0) [17:28:29.099] base::do.call(base::Sys.setenv, args = args) [17:28:29.099] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:28:29.099] } [17:28:29.099] else { [17:28:29.099] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:28:29.099] } [17:28:29.099] { [17:28:29.099] if (base::length(...future.futureOptionsAdded) > [17:28:29.099] 0L) { [17:28:29.099] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:28:29.099] base::names(opts) <- ...future.futureOptionsAdded [17:28:29.099] base::options(opts) [17:28:29.099] } [17:28:29.099] { [17:28:29.099] { [17:28:29.099] NULL [17:28:29.099] RNGkind("Mersenne-Twister") [17:28:29.099] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:28:29.099] inherits = FALSE) [17:28:29.099] } [17:28:29.099] options(future.plan = NULL) [17:28:29.099] if (is.na(NA_character_)) [17:28:29.099] Sys.unsetenv("R_FUTURE_PLAN") [17:28:29.099] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:28:29.099] future::plan(...future.strategy.old, .cleanup = FALSE, [17:28:29.099] .init = FALSE) [17:28:29.099] } [17:28:29.099] } [17:28:29.099] } [17:28:29.099] }) [17:28:29.099] if (TRUE) { [17:28:29.099] base::sink(type = "output", split = FALSE) [17:28:29.099] if (TRUE) { [17:28:29.099] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:28:29.099] } [17:28:29.099] else { [17:28:29.099] ...future.result["stdout"] <- base::list(NULL) [17:28:29.099] } [17:28:29.099] base::close(...future.stdout) [17:28:29.099] ...future.stdout <- NULL [17:28:29.099] } [17:28:29.099] ...future.result$conditions <- ...future.conditions [17:28:29.099] ...future.result$finished <- base::Sys.time() [17:28:29.099] ...future.result [17:28:29.099] } [17:28:29.103] plan(): Setting new future strategy stack: [17:28:29.104] List of future strategies: [17:28:29.104] 1. sequential: [17:28:29.104] - args: function (..., envir = parent.frame(), workers = "") [17:28:29.104] - tweaked: FALSE [17:28:29.104] - call: NULL [17:28:29.104] plan(): nbrOfWorkers() = 1 [17:28:29.105] plan(): Setting new future strategy stack: [17:28:29.106] List of future strategies: [17:28:29.106] 1. sequential: [17:28:29.106] - args: function (..., abc = TRUE, envir = parent.frame(), workers = "") [17:28:29.106] - tweaked: TRUE [17:28:29.106] - call: plan(sequential, abc = FALSE) [17:28:29.106] plan(): nbrOfWorkers() = 1 [17:28:29.106] SequentialFuture started (and completed) [17:28:29.107] - Launch lazy future ... done [17:28:29.107] run() for 'SequentialFuture' ... done [17:28:29.107] plan(): Setting new future strategy stack: [17:28:29.107] List of future strategies: [17:28:29.107] 1. sequential: [17:28:29.107] - args: function (..., abc = FALSE, envir = parent.frame(), workers = "") [17:28:29.107] - tweaked: TRUE [17:28:29.107] - call: plan(sequential, abc = FALSE) [17:28:29.108] 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:28:29.109] plan(): Setting new future strategy stack: [17:28:29.109] List of future strategies: [17:28:29.109] 1. sequential: [17:28:29.109] - args: function (..., envir = parent.frame(), workers = "") [17:28:29.109] - tweaked: FALSE [17:28:29.109] - call: plan(list(A = sequential, B = tweak(sequential, abc = FALSE))) [17:28:29.109] 2. sequential: [17:28:29.109] - args: function (..., abc = FALSE, envir = parent.frame(), workers = "") [17:28:29.109] - tweaked: TRUE [17:28:29.109] - call: plan(list(A = sequential, B = tweak(sequential, abc = FALSE))) [17:28:29.110] plan(): nbrOfWorkers() = 1 > a <- 0 > > x %<-% { + stopifnot(identical(names(plan("list")), "B")) + a <- 1 + a + } [17:28:29.110] getGlobalsAndPackages() ... [17:28:29.110] Searching for globals... [17:28:29.115] - globals found: [6] '{', 'stopifnot', 'identical', 'names', 'plan', '<-' [17:28:29.115] Searching for globals ... DONE [17:28:29.115] Resolving globals: FALSE [17:28:29.116] The total size of the 1 globals is 403.23 KiB (412912 bytes) [17:28:29.117] The total size of the 1 globals exported for future expression ('{; stopifnot(identical(names(plan("list")), "B")); a <- 1; a; }') is 403.23 KiB.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'plan' (403.23 KiB of class 'function') [17:28:29.117] - globals: [1] 'plan' [17:28:29.117] [17:28:29.118] getGlobalsAndPackages() ... DONE [17:28:29.118] run() for 'Future' ... [17:28:29.118] - state: 'created' [17:28:29.118] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [17:28:29.119] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:28:29.119] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [17:28:29.119] - Field: 'label' [17:28:29.119] - Field: 'local' [17:28:29.119] - Field: 'owner' [17:28:29.120] - Field: 'envir' [17:28:29.120] - Field: 'packages' [17:28:29.120] - Field: 'gc' [17:28:29.120] - Field: 'conditions' [17:28:29.120] - Field: 'expr' [17:28:29.120] - Field: 'uuid' [17:28:29.121] - Field: 'seed' [17:28:29.121] - Field: 'version' [17:28:29.121] - Field: 'result' [17:28:29.121] - Field: 'asynchronous' [17:28:29.121] - Field: 'calls' [17:28:29.122] - Field: 'globals' [17:28:29.122] - Field: 'stdout' [17:28:29.122] - Field: 'earlySignal' [17:28:29.122] - Field: 'lazy' [17:28:29.122] - Field: 'state' [17:28:29.122] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [17:28:29.123] - Launch lazy future ... [17:28:29.123] Packages needed by the future expression (n = 0): [17:28:29.123] Packages needed by future strategies (n = 0): [17:28:29.124] { [17:28:29.124] { [17:28:29.124] { [17:28:29.124] ...future.startTime <- base::Sys.time() [17:28:29.124] { [17:28:29.124] { [17:28:29.124] { [17:28:29.124] base::local({ [17:28:29.124] has_future <- base::requireNamespace("future", [17:28:29.124] quietly = TRUE) [17:28:29.124] if (has_future) { [17:28:29.124] ns <- base::getNamespace("future") [17:28:29.124] version <- ns[[".package"]][["version"]] [17:28:29.124] if (is.null(version)) [17:28:29.124] version <- utils::packageVersion("future") [17:28:29.124] } [17:28:29.124] else { [17:28:29.124] version <- NULL [17:28:29.124] } [17:28:29.124] if (!has_future || version < "1.8.0") { [17:28:29.124] info <- base::c(r_version = base::gsub("R version ", [17:28:29.124] "", base::R.version$version.string), [17:28:29.124] platform = base::sprintf("%s (%s-bit)", [17:28:29.124] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:28:29.124] os = base::paste(base::Sys.info()[base::c("sysname", [17:28:29.124] "release", "version")], collapse = " "), [17:28:29.124] hostname = base::Sys.info()[["nodename"]]) [17:28:29.124] info <- base::sprintf("%s: %s", base::names(info), [17:28:29.124] info) [17:28:29.124] info <- base::paste(info, collapse = "; ") [17:28:29.124] if (!has_future) { [17:28:29.124] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:28:29.124] info) [17:28:29.124] } [17:28:29.124] else { [17:28:29.124] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:28:29.124] info, version) [17:28:29.124] } [17:28:29.124] base::stop(msg) [17:28:29.124] } [17:28:29.124] }) [17:28:29.124] } [17:28:29.124] ...future.strategy.old <- future::plan("list") [17:28:29.124] options(future.plan = NULL) [17:28:29.124] Sys.unsetenv("R_FUTURE_PLAN") [17:28:29.124] future::plan(list(B = function (..., abc = FALSE, [17:28:29.124] envir = parent.frame()) [17:28:29.124] strategy(..., abc = abc, envir = envir)), .cleanup = FALSE, [17:28:29.124] .init = FALSE) [17:28:29.124] } [17:28:29.124] ...future.workdir <- getwd() [17:28:29.124] } [17:28:29.124] ...future.oldOptions <- base::as.list(base::.Options) [17:28:29.124] ...future.oldEnvVars <- base::Sys.getenv() [17:28:29.124] } [17:28:29.124] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:28:29.124] future.globals.maxSize = NULL, future.globals.method = NULL, [17:28:29.124] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:28:29.124] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:28:29.124] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:28:29.124] future.stdout.windows.reencode = NULL, width = 80L) [17:28:29.124] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:28:29.124] base::names(...future.oldOptions)) [17:28:29.124] } [17:28:29.124] if (FALSE) { [17:28:29.124] } [17:28:29.124] else { [17:28:29.124] if (TRUE) { [17:28:29.124] ...future.stdout <- base::rawConnection(base::raw(0L), [17:28:29.124] open = "w") [17:28:29.124] } [17:28:29.124] else { [17:28:29.124] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:28:29.124] windows = "NUL", "/dev/null"), open = "w") [17:28:29.124] } [17:28:29.124] base::sink(...future.stdout, type = "output", split = FALSE) [17:28:29.124] base::on.exit(if (!base::is.null(...future.stdout)) { [17:28:29.124] base::sink(type = "output", split = FALSE) [17:28:29.124] base::close(...future.stdout) [17:28:29.124] }, add = TRUE) [17:28:29.124] } [17:28:29.124] ...future.frame <- base::sys.nframe() [17:28:29.124] ...future.conditions <- base::list() [17:28:29.124] ...future.rng <- base::globalenv()$.Random.seed [17:28:29.124] if (FALSE) { [17:28:29.124] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:28:29.124] "...future.value", "...future.globalenv.names", ".Random.seed") [17:28:29.124] } [17:28:29.124] ...future.result <- base::tryCatch({ [17:28:29.124] base::withCallingHandlers({ [17:28:29.124] ...future.value <- base::withVisible(base::local({ [17:28:29.124] stopifnot(identical(names(plan("list")), "B")) [17:28:29.124] a <- 1 [17:28:29.124] a [17:28:29.124] })) [17:28:29.124] future::FutureResult(value = ...future.value$value, [17:28:29.124] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:28:29.124] ...future.rng), globalenv = if (FALSE) [17:28:29.124] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:28:29.124] ...future.globalenv.names)) [17:28:29.124] else NULL, started = ...future.startTime, version = "1.8") [17:28:29.124] }, condition = base::local({ [17:28:29.124] c <- base::c [17:28:29.124] inherits <- base::inherits [17:28:29.124] invokeRestart <- base::invokeRestart [17:28:29.124] length <- base::length [17:28:29.124] list <- base::list [17:28:29.124] seq.int <- base::seq.int [17:28:29.124] signalCondition <- base::signalCondition [17:28:29.124] sys.calls <- base::sys.calls [17:28:29.124] `[[` <- base::`[[` [17:28:29.124] `+` <- base::`+` [17:28:29.124] `<<-` <- base::`<<-` [17:28:29.124] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:28:29.124] calls[seq.int(from = from + 12L, to = length(calls) - [17:28:29.124] 3L)] [17:28:29.124] } [17:28:29.124] function(cond) { [17:28:29.124] is_error <- inherits(cond, "error") [17:28:29.124] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:28:29.124] NULL) [17:28:29.124] if (is_error) { [17:28:29.124] sessionInformation <- function() { [17:28:29.124] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:28:29.124] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:28:29.124] search = base::search(), system = base::Sys.info()) [17:28:29.124] } [17:28:29.124] ...future.conditions[[length(...future.conditions) + [17:28:29.124] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:28:29.124] cond$call), session = sessionInformation(), [17:28:29.124] timestamp = base::Sys.time(), signaled = 0L) [17:28:29.124] signalCondition(cond) [17:28:29.124] } [17:28:29.124] else if (!ignore && TRUE && inherits(cond, c("condition", [17:28:29.124] "immediateCondition"))) { [17:28:29.124] signal <- TRUE && inherits(cond, "immediateCondition") [17:28:29.124] ...future.conditions[[length(...future.conditions) + [17:28:29.124] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:28:29.124] if (TRUE && !signal) { [17:28:29.124] muffleCondition <- function (cond, pattern = "^muffle") [17:28:29.124] { [17:28:29.124] inherits <- base::inherits [17:28:29.124] invokeRestart <- base::invokeRestart [17:28:29.124] is.null <- base::is.null [17:28:29.124] muffled <- FALSE [17:28:29.124] if (inherits(cond, "message")) { [17:28:29.124] muffled <- grepl(pattern, "muffleMessage") [17:28:29.124] if (muffled) [17:28:29.124] invokeRestart("muffleMessage") [17:28:29.124] } [17:28:29.124] else if (inherits(cond, "warning")) { [17:28:29.124] muffled <- grepl(pattern, "muffleWarning") [17:28:29.124] if (muffled) [17:28:29.124] invokeRestart("muffleWarning") [17:28:29.124] } [17:28:29.124] else if (inherits(cond, "condition")) { [17:28:29.124] if (!is.null(pattern)) { [17:28:29.124] computeRestarts <- base::computeRestarts [17:28:29.124] grepl <- base::grepl [17:28:29.124] restarts <- computeRestarts(cond) [17:28:29.124] for (restart in restarts) { [17:28:29.124] name <- restart$name [17:28:29.124] if (is.null(name)) [17:28:29.124] next [17:28:29.124] if (!grepl(pattern, name)) [17:28:29.124] next [17:28:29.124] invokeRestart(restart) [17:28:29.124] muffled <- TRUE [17:28:29.124] break [17:28:29.124] } [17:28:29.124] } [17:28:29.124] } [17:28:29.124] invisible(muffled) [17:28:29.124] } [17:28:29.124] muffleCondition(cond, pattern = "^muffle") [17:28:29.124] } [17:28:29.124] } [17:28:29.124] else { [17:28:29.124] if (TRUE) { [17:28:29.124] muffleCondition <- function (cond, pattern = "^muffle") [17:28:29.124] { [17:28:29.124] inherits <- base::inherits [17:28:29.124] invokeRestart <- base::invokeRestart [17:28:29.124] is.null <- base::is.null [17:28:29.124] muffled <- FALSE [17:28:29.124] if (inherits(cond, "message")) { [17:28:29.124] muffled <- grepl(pattern, "muffleMessage") [17:28:29.124] if (muffled) [17:28:29.124] invokeRestart("muffleMessage") [17:28:29.124] } [17:28:29.124] else if (inherits(cond, "warning")) { [17:28:29.124] muffled <- grepl(pattern, "muffleWarning") [17:28:29.124] if (muffled) [17:28:29.124] invokeRestart("muffleWarning") [17:28:29.124] } [17:28:29.124] else if (inherits(cond, "condition")) { [17:28:29.124] if (!is.null(pattern)) { [17:28:29.124] computeRestarts <- base::computeRestarts [17:28:29.124] grepl <- base::grepl [17:28:29.124] restarts <- computeRestarts(cond) [17:28:29.124] for (restart in restarts) { [17:28:29.124] name <- restart$name [17:28:29.124] if (is.null(name)) [17:28:29.124] next [17:28:29.124] if (!grepl(pattern, name)) [17:28:29.124] next [17:28:29.124] invokeRestart(restart) [17:28:29.124] muffled <- TRUE [17:28:29.124] break [17:28:29.124] } [17:28:29.124] } [17:28:29.124] } [17:28:29.124] invisible(muffled) [17:28:29.124] } [17:28:29.124] muffleCondition(cond, pattern = "^muffle") [17:28:29.124] } [17:28:29.124] } [17:28:29.124] } [17:28:29.124] })) [17:28:29.124] }, error = function(ex) { [17:28:29.124] base::structure(base::list(value = NULL, visible = NULL, [17:28:29.124] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:28:29.124] ...future.rng), started = ...future.startTime, [17:28:29.124] finished = Sys.time(), session_uuid = NA_character_, [17:28:29.124] version = "1.8"), class = "FutureResult") [17:28:29.124] }, finally = { [17:28:29.124] if (!identical(...future.workdir, getwd())) [17:28:29.124] setwd(...future.workdir) [17:28:29.124] { [17:28:29.124] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:28:29.124] ...future.oldOptions$nwarnings <- NULL [17:28:29.124] } [17:28:29.124] base::options(...future.oldOptions) [17:28:29.124] if (.Platform$OS.type == "windows") { [17:28:29.124] old_names <- names(...future.oldEnvVars) [17:28:29.124] envs <- base::Sys.getenv() [17:28:29.124] names <- names(envs) [17:28:29.124] common <- intersect(names, old_names) [17:28:29.124] added <- setdiff(names, old_names) [17:28:29.124] removed <- setdiff(old_names, names) [17:28:29.124] changed <- common[...future.oldEnvVars[common] != [17:28:29.124] envs[common]] [17:28:29.124] NAMES <- toupper(changed) [17:28:29.124] args <- list() [17:28:29.124] for (kk in seq_along(NAMES)) { [17:28:29.124] name <- changed[[kk]] [17:28:29.124] NAME <- NAMES[[kk]] [17:28:29.124] if (name != NAME && is.element(NAME, old_names)) [17:28:29.124] next [17:28:29.124] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:29.124] } [17:28:29.124] NAMES <- toupper(added) [17:28:29.124] for (kk in seq_along(NAMES)) { [17:28:29.124] name <- added[[kk]] [17:28:29.124] NAME <- NAMES[[kk]] [17:28:29.124] if (name != NAME && is.element(NAME, old_names)) [17:28:29.124] next [17:28:29.124] args[[name]] <- "" [17:28:29.124] } [17:28:29.124] NAMES <- toupper(removed) [17:28:29.124] for (kk in seq_along(NAMES)) { [17:28:29.124] name <- removed[[kk]] [17:28:29.124] NAME <- NAMES[[kk]] [17:28:29.124] if (name != NAME && is.element(NAME, old_names)) [17:28:29.124] next [17:28:29.124] args[[name]] <- ...future.oldEnvVars[[name]] [17:28:29.124] } [17:28:29.124] if (length(args) > 0) [17:28:29.124] base::do.call(base::Sys.setenv, args = args) [17:28:29.124] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:28:29.124] } [17:28:29.124] else { [17:28:29.124] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:28:29.124] } [17:28:29.124] { [17:28:29.124] if (base::length(...future.futureOptionsAdded) > [17:28:29.124] 0L) { [17:28:29.124] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:28:29.124] base::names(opts) <- ...future.futureOptionsAdded [17:28:29.124] base::options(opts) [17:28:29.124] } [17:28:29.124] { [17:28:29.124] { [17:28:29.124] NULL [17:28:29.124] RNGkind("Mersenne-Twister") [17:28:29.124] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:28:29.124] inherits = FALSE) [17:28:29.124] } [17:28:29.124] options(future.plan = NULL) [17:28:29.124] if (is.na(NA_character_)) [17:28:29.124] Sys.unsetenv("R_FUTURE_PLAN") [17:28:29.124] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:28:29.124] future::plan(...future.strategy.old, .cleanup = FALSE, [17:28:29.124] .init = FALSE) [17:28:29.124] } [17:28:29.124] } [17:28:29.124] } [17:28:29.124] }) [17:28:29.124] if (TRUE) { [17:28:29.124] base::sink(type = "output", split = FALSE) [17:28:29.124] if (TRUE) { [17:28:29.124] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:28:29.124] } [17:28:29.124] else { [17:28:29.124] ...future.result["stdout"] <- base::list(NULL) [17:28:29.124] } [17:28:29.124] base::close(...future.stdout) [17:28:29.124] ...future.stdout <- NULL [17:28:29.124] } [17:28:29.124] ...future.result$conditions <- ...future.conditions [17:28:29.124] ...future.result$finished <- base::Sys.time() [17:28:29.124] ...future.result [17:28:29.124] } [17:28:29.128] assign_globals() ... [17:28:29.128] List of 1 [17:28:29.128] $ plan:function (strategy = NULL, ..., substitute = TRUE, .skip = FALSE, .call = TRUE, [17:28:29.128] .cleanup = TRUE, .init = TRUE) [17:28:29.128] - attr(*, "where")=List of 1 [17:28:29.128] ..$ plan: [17:28:29.128] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list" [17:28:29.128] - attr(*, "resolved")= logi FALSE [17:28:29.128] - attr(*, "total_size")= num 412912 [17:28:29.128] - attr(*, "already-done")= logi TRUE [17:28:29.131] - copied 'plan' to environment [17:28:29.131] assign_globals() ... done [17:28:29.131] plan(): Setting new future strategy stack: [17:28:29.132] List of future strategies: [17:28:29.132] 1. sequential: [17:28:29.132] - args: function (..., abc = FALSE, envir = parent.frame(), workers = "") [17:28:29.132] - tweaked: TRUE [17:28:29.132] - call: plan(list(A = sequential, B = tweak(sequential, abc = FALSE))) [17:28:29.132] plan(): nbrOfWorkers() = 1 [17:28:29.133] plan(): Setting new future strategy stack: [17:28:29.134] List of future strategies: [17:28:29.134] 1. sequential: [17:28:29.134] - args: function (..., envir = parent.frame(), workers = "") [17:28:29.134] - tweaked: FALSE [17:28:29.134] - call: plan(list(A = sequential, B = tweak(sequential, abc = FALSE))) [17:28:29.134] 2. sequential: [17:28:29.134] - args: function (..., abc = FALSE, envir = parent.frame(), workers = "") [17:28:29.134] - tweaked: TRUE [17:28:29.134] - call: plan(list(A = sequential, B = tweak(sequential, abc = FALSE))) [17:28:29.135] plan(): nbrOfWorkers() = 1 [17:28:29.135] SequentialFuture started (and completed) [17:28:29.135] - Launch lazy future ... done [17:28:29.135] 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:28:29.137] getGlobalsAndPackages() ... [17:28:29.137] Searching for globals... [17:28:29.140] - globals found: [4] '{', 'y', 'x', '~' [17:28:29.140] Searching for globals ... DONE [17:28:29.140] Resolving globals: FALSE [17:28:29.141] The total size of the 1 globals is 56 bytes (56 bytes) [17:28:29.141] The total size of the 1 globals exported for future expression ('y ~ x') is 56 bytes.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'x' (56 bytes of class 'numeric') [17:28:29.141] - globals: [1] 'x' [17:28:29.142] [17:28:29.142] 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:28:29.182] plan(): Setting new future strategy stack: [17:28:29.182] List of future strategies: [17:28:29.182] 1. FutureStrategy: [17:28:29.182] - args: function (..., envir = parent.frame(), workers = "") [17:28:29.182] - tweaked: FALSE [17:28:29.182] - call: future::plan(oplan) [17:28:29.183] plan(): nbrOfWorkers() = 1 Failed to undo environment variables: - Expected environment variables: [n=204] '!ExitCode', 'ALLUSERSPROFILE', 'APPDATA', 'BIBINPUTS', 'BINDIR', 'BSTINPUTS', 'COMMONPROGRAMFILES', 'COMPUTERNAME', 'COMSPEC', 'CURL_CA_BUNDLE', 'CYGWIN', 'CommonProgramFiles(x86)', 'CommonProgramW6432', 'DriverData', 'HOME', 'HOMEDRIVE', 'HOMEPATH', 'JAGS_ROOT', 'JAVA_HOME', 'LANGUAGE', 'LC_COLLATE', 'LC_MONETARY', 'LC_TIME', 'LOCALAPPDATA', 'LOGONSERVER', 'LS_HOME', 'LS_LICENSE_PATH', 'MAKE', 'MAKEFLAGS', 'MAKELEVEL', 'MFLAGS', 'MSMPI_BENCHMARKS', 'MSMPI_BIN', 'MSYS2_ENV_CONV_EXCL', 'NUMBER_OF_PROCESSORS', 'OCL', 'OMP_THREAD_LIMIT', 'OS', 'PATH', 'PATHEXT', 'PROCESSOR_ARCHITECTURE', 'PROCESSOR_IDENTIFIER', 'PROCESSOR_LEVEL', 'PROCESSOR_REVISION', 'PROGRAMFILES', 'PROMPT', 'PSModulePath', 'PUBLIC', 'PWD', 'ProgramData', 'ProgramFiles(x86)', 'ProgramW6432', 'RTOOLS43_HOME', '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_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.48 0.07 1.18