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.R") [17:25:56.905] plan(): Setting new future strategy stack: [17:25:56.906] List of future strategies: [17:25:56.906] 1. sequential: [17:25:56.906] - args: function (..., envir = parent.frame(), workers = "") [17:25:56.906] - tweaked: FALSE [17:25:56.906] - call: future::plan("sequential") [17:25:56.922] plan(): nbrOfWorkers() = 1 > > message("*** Future class ...") *** Future class ... > > message("*** Future class - exception ...") *** Future class - exception ... > > f <- Future() [17:25:56.929] getGlobalsAndPackages() ... [17:25:56.929] [17:25:56.929] - globals: [0] [17:25:56.929] getGlobalsAndPackages() ... DONE > print(f) Future: Label: '' Expression: NULL Lazy evaluation: FALSE Asynchronous evaluation: TRUE Local evaluation: TRUE Environment: R_GlobalEnv Capture standard output: TRUE Capture condition classes: 'condition' (excluding 'nothing') Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) Resolved: FALSE Value: Conditions captured: Early signaling: FALSE Owner process: e72f6e13-1baa-285f-b04b-517a698c9677 Class: 'Future', 'environment' > > res <- tryCatch(value(f), error = identity) [17:25:56.931] run() for 'Future' ... [17:25:56.931] - state: 'created' [17:25:56.931] run() for 'Future' ... done > print(res) > stopifnot(inherits(res, "error")) > > ## Invalid seed > res <- tryCatch(f <- Future(42, seed = 1:2), error = identity) > stopifnot(inherits(res, "error")) > > ## When no packages are exported > foo <- structure(function(...) { Future(1) }, class = "future") > plan(foo) [17:25:56.934] plan(): Setting new future strategy stack: [17:25:56.934] List of future strategies: [17:25:56.934] 1. future: [17:25:56.934] - args: function (..., workers = "") [17:25:56.934] - tweaked: FALSE [17:25:56.934] - call: plan(foo) [17:25:56.952] plan(): nbrOfWorkers() = Inf > f <- Future() [17:25:56.952] getGlobalsAndPackages() ... [17:25:56.952] [17:25:56.953] - globals: [0] [17:25:56.953] getGlobalsAndPackages() ... DONE > expr <- getExpression(f) [17:25:56.953] Packages needed by the future expression (n = 0): [17:25:56.954] Packages needed by future strategies (n = 0): [17:25:56.955] { [17:25:56.955] { [17:25:56.955] { [17:25:56.955] ...future.startTime <- base::Sys.time() [17:25:56.955] { [17:25:56.955] { [17:25:56.955] { [17:25:56.955] base::local({ [17:25:56.955] has_future <- base::requireNamespace("future", [17:25:56.955] quietly = TRUE) [17:25:56.955] if (has_future) { [17:25:56.955] ns <- base::getNamespace("future") [17:25:56.955] version <- ns[[".package"]][["version"]] [17:25:56.955] if (is.null(version)) [17:25:56.955] version <- utils::packageVersion("future") [17:25:56.955] } [17:25:56.955] else { [17:25:56.955] version <- NULL [17:25:56.955] } [17:25:56.955] if (!has_future || version < "1.8.0") { [17:25:56.955] info <- base::c(r_version = base::gsub("R version ", [17:25:56.955] "", base::R.version$version.string), [17:25:56.955] platform = base::sprintf("%s (%s-bit)", [17:25:56.955] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:25:56.955] os = base::paste(base::Sys.info()[base::c("sysname", [17:25:56.955] "release", "version")], collapse = " "), [17:25:56.955] hostname = base::Sys.info()[["nodename"]]) [17:25:56.955] info <- base::sprintf("%s: %s", base::names(info), [17:25:56.955] info) [17:25:56.955] info <- base::paste(info, collapse = "; ") [17:25:56.955] if (!has_future) { [17:25:56.955] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:25:56.955] info) [17:25:56.955] } [17:25:56.955] else { [17:25:56.955] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:25:56.955] info, version) [17:25:56.955] } [17:25:56.955] base::stop(msg) [17:25:56.955] } [17:25:56.955] }) [17:25:56.955] } [17:25:56.955] ...future.strategy.old <- future::plan("list") [17:25:56.955] options(future.plan = NULL) [17:25:56.955] Sys.unsetenv("R_FUTURE_PLAN") [17:25:56.955] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:25:56.955] } [17:25:56.955] ...future.workdir <- getwd() [17:25:56.955] } [17:25:56.955] ...future.oldOptions <- base::as.list(base::.Options) [17:25:56.955] ...future.oldEnvVars <- base::Sys.getenv() [17:25:56.955] } [17:25:56.955] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:25:56.955] future.globals.maxSize = NULL, future.globals.method = NULL, [17:25:56.955] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:25:56.955] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:25:56.955] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:25:56.955] future.stdout.windows.reencode = NULL, width = 80L) [17:25:56.955] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:25:56.955] base::names(...future.oldOptions)) [17:25:56.955] } [17:25:56.955] if (FALSE) { [17:25:56.955] } [17:25:56.955] else { [17:25:56.955] if (TRUE) { [17:25:56.955] ...future.stdout <- base::rawConnection(base::raw(0L), [17:25:56.955] open = "w") [17:25:56.955] } [17:25:56.955] else { [17:25:56.955] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:25:56.955] windows = "NUL", "/dev/null"), open = "w") [17:25:56.955] } [17:25:56.955] base::sink(...future.stdout, type = "output", split = FALSE) [17:25:56.955] base::on.exit(if (!base::is.null(...future.stdout)) { [17:25:56.955] base::sink(type = "output", split = FALSE) [17:25:56.955] base::close(...future.stdout) [17:25:56.955] }, add = TRUE) [17:25:56.955] } [17:25:56.955] ...future.frame <- base::sys.nframe() [17:25:56.955] ...future.conditions <- base::list() [17:25:56.955] ...future.rng <- base::globalenv()$.Random.seed [17:25:56.955] if (FALSE) { [17:25:56.955] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:25:56.955] "...future.value", "...future.globalenv.names", ".Random.seed") [17:25:56.955] } [17:25:56.955] ...future.result <- base::tryCatch({ [17:25:56.955] base::withCallingHandlers({ [17:25:56.955] ...future.value <- base::withVisible(base::local(NULL)) [17:25:56.955] future::FutureResult(value = ...future.value$value, [17:25:56.955] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:25:56.955] ...future.rng), globalenv = if (FALSE) [17:25:56.955] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:25:56.955] ...future.globalenv.names)) [17:25:56.955] else NULL, started = ...future.startTime, version = "1.8") [17:25:56.955] }, condition = base::local({ [17:25:56.955] c <- base::c [17:25:56.955] inherits <- base::inherits [17:25:56.955] invokeRestart <- base::invokeRestart [17:25:56.955] length <- base::length [17:25:56.955] list <- base::list [17:25:56.955] seq.int <- base::seq.int [17:25:56.955] signalCondition <- base::signalCondition [17:25:56.955] sys.calls <- base::sys.calls [17:25:56.955] `[[` <- base::`[[` [17:25:56.955] `+` <- base::`+` [17:25:56.955] `<<-` <- base::`<<-` [17:25:56.955] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:25:56.955] calls[seq.int(from = from + 12L, to = length(calls) - [17:25:56.955] 3L)] [17:25:56.955] } [17:25:56.955] function(cond) { [17:25:56.955] is_error <- inherits(cond, "error") [17:25:56.955] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:25:56.955] NULL) [17:25:56.955] if (is_error) { [17:25:56.955] sessionInformation <- function() { [17:25:56.955] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:25:56.955] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:25:56.955] search = base::search(), system = base::Sys.info()) [17:25:56.955] } [17:25:56.955] ...future.conditions[[length(...future.conditions) + [17:25:56.955] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:25:56.955] cond$call), session = sessionInformation(), [17:25:56.955] timestamp = base::Sys.time(), signaled = 0L) [17:25:56.955] signalCondition(cond) [17:25:56.955] } [17:25:56.955] else if (!ignore && TRUE && inherits(cond, "condition")) { [17:25:56.955] signal <- FALSE && inherits(cond, character(0)) [17:25:56.955] ...future.conditions[[length(...future.conditions) + [17:25:56.955] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:25:56.955] if (FALSE && !signal) { [17:25:56.955] muffleCondition <- function (cond, pattern = "^muffle") [17:25:56.955] { [17:25:56.955] inherits <- base::inherits [17:25:56.955] invokeRestart <- base::invokeRestart [17:25:56.955] is.null <- base::is.null [17:25:56.955] muffled <- FALSE [17:25:56.955] if (inherits(cond, "message")) { [17:25:56.955] muffled <- grepl(pattern, "muffleMessage") [17:25:56.955] if (muffled) [17:25:56.955] invokeRestart("muffleMessage") [17:25:56.955] } [17:25:56.955] else if (inherits(cond, "warning")) { [17:25:56.955] muffled <- grepl(pattern, "muffleWarning") [17:25:56.955] if (muffled) [17:25:56.955] invokeRestart("muffleWarning") [17:25:56.955] } [17:25:56.955] else if (inherits(cond, "condition")) { [17:25:56.955] if (!is.null(pattern)) { [17:25:56.955] computeRestarts <- base::computeRestarts [17:25:56.955] grepl <- base::grepl [17:25:56.955] restarts <- computeRestarts(cond) [17:25:56.955] for (restart in restarts) { [17:25:56.955] name <- restart$name [17:25:56.955] if (is.null(name)) [17:25:56.955] next [17:25:56.955] if (!grepl(pattern, name)) [17:25:56.955] next [17:25:56.955] invokeRestart(restart) [17:25:56.955] muffled <- TRUE [17:25:56.955] break [17:25:56.955] } [17:25:56.955] } [17:25:56.955] } [17:25:56.955] invisible(muffled) [17:25:56.955] } [17:25:56.955] muffleCondition(cond, pattern = "^muffle") [17:25:56.955] } [17:25:56.955] } [17:25:56.955] else { [17:25:56.955] if (TRUE) { [17:25:56.955] muffleCondition <- function (cond, pattern = "^muffle") [17:25:56.955] { [17:25:56.955] inherits <- base::inherits [17:25:56.955] invokeRestart <- base::invokeRestart [17:25:56.955] is.null <- base::is.null [17:25:56.955] muffled <- FALSE [17:25:56.955] if (inherits(cond, "message")) { [17:25:56.955] muffled <- grepl(pattern, "muffleMessage") [17:25:56.955] if (muffled) [17:25:56.955] invokeRestart("muffleMessage") [17:25:56.955] } [17:25:56.955] else if (inherits(cond, "warning")) { [17:25:56.955] muffled <- grepl(pattern, "muffleWarning") [17:25:56.955] if (muffled) [17:25:56.955] invokeRestart("muffleWarning") [17:25:56.955] } [17:25:56.955] else if (inherits(cond, "condition")) { [17:25:56.955] if (!is.null(pattern)) { [17:25:56.955] computeRestarts <- base::computeRestarts [17:25:56.955] grepl <- base::grepl [17:25:56.955] restarts <- computeRestarts(cond) [17:25:56.955] for (restart in restarts) { [17:25:56.955] name <- restart$name [17:25:56.955] if (is.null(name)) [17:25:56.955] next [17:25:56.955] if (!grepl(pattern, name)) [17:25:56.955] next [17:25:56.955] invokeRestart(restart) [17:25:56.955] muffled <- TRUE [17:25:56.955] break [17:25:56.955] } [17:25:56.955] } [17:25:56.955] } [17:25:56.955] invisible(muffled) [17:25:56.955] } [17:25:56.955] muffleCondition(cond, pattern = "^muffle") [17:25:56.955] } [17:25:56.955] } [17:25:56.955] } [17:25:56.955] })) [17:25:56.955] }, error = function(ex) { [17:25:56.955] base::structure(base::list(value = NULL, visible = NULL, [17:25:56.955] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:25:56.955] ...future.rng), started = ...future.startTime, [17:25:56.955] finished = Sys.time(), session_uuid = NA_character_, [17:25:56.955] version = "1.8"), class = "FutureResult") [17:25:56.955] }, finally = { [17:25:56.955] if (!identical(...future.workdir, getwd())) [17:25:56.955] setwd(...future.workdir) [17:25:56.955] { [17:25:56.955] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:25:56.955] ...future.oldOptions$nwarnings <- NULL [17:25:56.955] } [17:25:56.955] base::options(...future.oldOptions) [17:25:56.955] if (.Platform$OS.type == "windows") { [17:25:56.955] old_names <- names(...future.oldEnvVars) [17:25:56.955] envs <- base::Sys.getenv() [17:25:56.955] names <- names(envs) [17:25:56.955] common <- intersect(names, old_names) [17:25:56.955] added <- setdiff(names, old_names) [17:25:56.955] removed <- setdiff(old_names, names) [17:25:56.955] changed <- common[...future.oldEnvVars[common] != [17:25:56.955] envs[common]] [17:25:56.955] NAMES <- toupper(changed) [17:25:56.955] args <- list() [17:25:56.955] for (kk in seq_along(NAMES)) { [17:25:56.955] name <- changed[[kk]] [17:25:56.955] NAME <- NAMES[[kk]] [17:25:56.955] if (name != NAME && is.element(NAME, old_names)) [17:25:56.955] next [17:25:56.955] args[[name]] <- ...future.oldEnvVars[[name]] [17:25:56.955] } [17:25:56.955] NAMES <- toupper(added) [17:25:56.955] for (kk in seq_along(NAMES)) { [17:25:56.955] name <- added[[kk]] [17:25:56.955] NAME <- NAMES[[kk]] [17:25:56.955] if (name != NAME && is.element(NAME, old_names)) [17:25:56.955] next [17:25:56.955] args[[name]] <- "" [17:25:56.955] } [17:25:56.955] NAMES <- toupper(removed) [17:25:56.955] for (kk in seq_along(NAMES)) { [17:25:56.955] name <- removed[[kk]] [17:25:56.955] NAME <- NAMES[[kk]] [17:25:56.955] if (name != NAME && is.element(NAME, old_names)) [17:25:56.955] next [17:25:56.955] args[[name]] <- ...future.oldEnvVars[[name]] [17:25:56.955] } [17:25:56.955] if (length(args) > 0) [17:25:56.955] base::do.call(base::Sys.setenv, args = args) [17:25:56.955] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:25:56.955] } [17:25:56.955] else { [17:25:56.955] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:25:56.955] } [17:25:56.955] { [17:25:56.955] if (base::length(...future.futureOptionsAdded) > [17:25:56.955] 0L) { [17:25:56.955] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:25:56.955] base::names(opts) <- ...future.futureOptionsAdded [17:25:56.955] base::options(opts) [17:25:56.955] } [17:25:56.955] { [17:25:56.955] NULL [17:25:56.955] options(future.plan = NULL) [17:25:56.955] if (is.na(NA_character_)) [17:25:56.955] Sys.unsetenv("R_FUTURE_PLAN") [17:25:56.955] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:25:56.955] future::plan(...future.strategy.old, .cleanup = FALSE, [17:25:56.955] .init = FALSE) [17:25:56.955] } [17:25:56.955] } [17:25:56.955] } [17:25:56.955] }) [17:25:56.955] if (TRUE) { [17:25:56.955] base::sink(type = "output", split = FALSE) [17:25:56.955] if (TRUE) { [17:25:56.955] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:25:56.955] } [17:25:56.955] else { [17:25:56.955] ...future.result["stdout"] <- base::list(NULL) [17:25:56.955] } [17:25:56.955] base::close(...future.stdout) [17:25:56.955] ...future.stdout <- NULL [17:25:56.955] } [17:25:56.955] ...future.result$conditions <- ...future.conditions [17:25:56.955] ...future.result$finished <- base::Sys.time() [17:25:56.955] ...future.result [17:25:56.955] } > print(expr) { { { ...future.startTime <- base::Sys.time() { { { base::local({ has_future <- base::requireNamespace("future", quietly = TRUE) if (has_future) { ns <- base::getNamespace("future") version <- ns[[".package"]][["version"]] if (is.null(version)) version <- utils::packageVersion("future") } else { version <- NULL } if (!has_future || version < "1.8.0") { info <- base::c(r_version = base::gsub("R version ", "", base::R.version$version.string), platform = base::sprintf("%s (%s-bit)", base::R.version$platform, 8 * base::.Machine$sizeof.pointer), os = base::paste(base::Sys.info()[base::c("sysname", "release", "version")], collapse = " "), hostname = base::Sys.info()[["nodename"]]) info <- base::sprintf("%s: %s", base::names(info), info) info <- base::paste(info, collapse = "; ") if (!has_future) { msg <- base::sprintf("Package 'future' is not installed on worker (%s)", info) } else { msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", info, version) } base::stop(msg) } }) } ...future.strategy.old <- future::plan("list") options(future.plan = NULL) Sys.unsetenv("R_FUTURE_PLAN") future::plan("default", .cleanup = FALSE, .init = FALSE) } ...future.workdir <- getwd() } ...future.oldOptions <- base::as.list(base::.Options) ...future.oldEnvVars <- base::Sys.getenv() } base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, future.globals.maxSize = NULL, future.globals.method = NULL, future.globals.onMissing = NULL, future.globals.onReference = NULL, future.globals.resolve = NULL, future.resolve.recursive = NULL, future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, future.stdout.windows.reencode = NULL, width = 80L) ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), base::names(...future.oldOptions)) } if (FALSE) { } else { if (TRUE) { ...future.stdout <- base::rawConnection(base::raw(0L), open = "w") } else { ...future.stdout <- base::file(base::switch(.Platform$OS.type, windows = "NUL", "/dev/null"), open = "w") } base::sink(...future.stdout, type = "output", split = FALSE) base::on.exit(if (!base::is.null(...future.stdout)) { base::sink(type = "output", split = FALSE) base::close(...future.stdout) }, add = TRUE) } ...future.frame <- base::sys.nframe() ...future.conditions <- base::list() ...future.rng <- base::globalenv()$.Random.seed if (FALSE) { ...future.globalenv.names <- c(base::names(base::.GlobalEnv), "...future.value", "...future.globalenv.names", ".Random.seed") } ...future.result <- base::tryCatch({ base::withCallingHandlers({ ...future.value <- base::withVisible(base::local(NULL)) future::FutureResult(value = ...future.value$value, visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, ...future.rng), globalenv = if (FALSE) list(added = base::setdiff(base::names(base::.GlobalEnv), ...future.globalenv.names)) else NULL, started = ...future.startTime, version = "1.8") }, condition = base::local({ c <- base::c inherits <- base::inherits invokeRestart <- base::invokeRestart length <- base::length list <- base::list seq.int <- base::seq.int signalCondition <- base::signalCondition sys.calls <- base::sys.calls `[[` <- base::`[[` `+` <- base::`+` `<<-` <- base::`<<-` sysCalls <- function(calls = sys.calls(), from = 1L) { calls[seq.int(from = from + 12L, to = length(calls) - 3L)] } function(cond) { is_error <- inherits(cond, "error") ignore <- !is_error && !is.null(NULL) && inherits(cond, NULL) if (is_error) { sessionInformation <- function() { list(r = base::R.Version(), locale = base::Sys.getlocale(), rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), search = base::search(), system = base::Sys.info()) } ...future.conditions[[length(...future.conditions) + 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), cond$call), session = sessionInformation(), timestamp = base::Sys.time(), signaled = 0L) signalCondition(cond) } else if (!ignore && TRUE && inherits(cond, "condition")) { signal <- FALSE && inherits(cond, character(0)) ...future.conditions[[length(...future.conditions) + 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) if (FALSE && !signal) { muffleCondition <- function (cond, pattern = "^muffle") { inherits <- base::inherits invokeRestart <- base::invokeRestart is.null <- base::is.null muffled <- FALSE if (inherits(cond, "message")) { muffled <- grepl(pattern, "muffleMessage") if (muffled) invokeRestart("muffleMessage") } else if (inherits(cond, "warning")) { muffled <- grepl(pattern, "muffleWarning") if (muffled) invokeRestart("muffleWarning") } else if (inherits(cond, "condition")) { if (!is.null(pattern)) { computeRestarts <- base::computeRestarts grepl <- base::grepl restarts <- computeRestarts(cond) for (restart in restarts) { name <- restart$name if (is.null(name)) next if (!grepl(pattern, name)) next invokeRestart(restart) muffled <- TRUE break } } } invisible(muffled) } muffleCondition(cond, pattern = "^muffle") } } else { if (TRUE) { muffleCondition <- function (cond, pattern = "^muffle") { inherits <- base::inherits invokeRestart <- base::invokeRestart is.null <- base::is.null muffled <- FALSE if (inherits(cond, "message")) { muffled <- grepl(pattern, "muffleMessage") if (muffled) invokeRestart("muffleMessage") } else if (inherits(cond, "warning")) { muffled <- grepl(pattern, "muffleWarning") if (muffled) invokeRestart("muffleWarning") } else if (inherits(cond, "condition")) { if (!is.null(pattern)) { computeRestarts <- base::computeRestarts grepl <- base::grepl restarts <- computeRestarts(cond) for (restart in restarts) { name <- restart$name if (is.null(name)) next if (!grepl(pattern, name)) next invokeRestart(restart) muffled <- TRUE break } } } invisible(muffled) } muffleCondition(cond, pattern = "^muffle") } } } })) }, error = function(ex) { base::structure(base::list(value = NULL, visible = NULL, conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, ...future.rng), started = ...future.startTime, finished = Sys.time(), session_uuid = NA_character_, version = "1.8"), class = "FutureResult") }, finally = { if (!identical(...future.workdir, getwd())) setwd(...future.workdir) { if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { ...future.oldOptions$nwarnings <- NULL } base::options(...future.oldOptions) if (.Platform$OS.type == "windows") { old_names <- names(...future.oldEnvVars) envs <- base::Sys.getenv() names <- names(envs) common <- intersect(names, old_names) added <- setdiff(names, old_names) removed <- setdiff(old_names, names) changed <- common[...future.oldEnvVars[common] != envs[common]] NAMES <- toupper(changed) args <- list() for (kk in seq_along(NAMES)) { name <- changed[[kk]] NAME <- NAMES[[kk]] if (name != NAME && is.element(NAME, old_names)) next args[[name]] <- ...future.oldEnvVars[[name]] } NAMES <- toupper(added) for (kk in seq_along(NAMES)) { name <- added[[kk]] NAME <- NAMES[[kk]] if (name != NAME && is.element(NAME, old_names)) next args[[name]] <- "" } NAMES <- toupper(removed) for (kk in seq_along(NAMES)) { name <- removed[[kk]] NAME <- NAMES[[kk]] if (name != NAME && is.element(NAME, old_names)) next args[[name]] <- ...future.oldEnvVars[[name]] } if (length(args) > 0) base::do.call(base::Sys.setenv, args = args) args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL } else { base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) } { if (base::length(...future.futureOptionsAdded) > 0L) { opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) base::names(opts) <- ...future.futureOptionsAdded base::options(opts) } { NULL options(future.plan = NULL) if (is.na(NA_character_)) Sys.unsetenv("R_FUTURE_PLAN") else Sys.setenv(R_FUTURE_PLAN = NA_character_) future::plan(...future.strategy.old, .cleanup = FALSE, .init = FALSE) } } } }) if (TRUE) { base::sink(type = "output", split = FALSE) if (TRUE) { ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) } else { ...future.result["stdout"] <- base::list(NULL) } base::close(...future.stdout) ...future.stdout <- NULL } ...future.result$conditions <- ...future.conditions ...future.result$finished <- base::Sys.time() ...future.result } > stopifnot(is.call(expr)) > > clazzes <- list( + sequential = SequentialFuture, + multisession = function(...) MultisessionFuture(..., workers = 2L), + sequential = SequentialFuture + ) > if (supportsMulticore()) { + clazzes$multicore = function(...) MulticoreFuture(..., workers = 2L) + } > > for (clazz in clazzes) { + ## Calling run() more than once + f <- clazz({ 42L }) + print(f) + run(f) + res <- tryCatch(run(f), error = identity) + stopifnot(inherits(res, "error")) + v <- value(f) + print(v) + stopifnot(v == 42L) + + ## Call value() without run() + f <- clazz({ 42L }) + v <- value(f) + print(v) + stopifnot(v == 42L) + } [17:25:56.974] getGlobalsAndPackages() ... [17:25:56.974] Searching for globals... [17:25:56.977] - globals found: [1] '{' [17:25:56.977] Searching for globals ... DONE [17:25:56.978] Resolving globals: FALSE [17:25:56.978] [17:25:56.978] [17:25:56.979] getGlobalsAndPackages() ... DONE SequentialFuture: Label: '' Expression: { 42L } Lazy evaluation: FALSE Asynchronous evaluation: FALSE Local evaluation: TRUE Environment: R_GlobalEnv Capture standard output: TRUE Capture condition classes: 'condition' (excluding 'nothing') Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) Resolved: FALSE Value: Conditions captured: Early signaling: FALSE Owner process: e72f6e13-1baa-285f-b04b-517a698c9677 Class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:25:56.980] Packages needed by the future expression (n = 0): [17:25:56.980] Packages needed by future strategies (n = 0): [17:25:56.980] { [17:25:56.980] { [17:25:56.980] { [17:25:56.980] ...future.startTime <- base::Sys.time() [17:25:56.980] { [17:25:56.980] { [17:25:56.980] { [17:25:56.980] base::local({ [17:25:56.980] has_future <- base::requireNamespace("future", [17:25:56.980] quietly = TRUE) [17:25:56.980] if (has_future) { [17:25:56.980] ns <- base::getNamespace("future") [17:25:56.980] version <- ns[[".package"]][["version"]] [17:25:56.980] if (is.null(version)) [17:25:56.980] version <- utils::packageVersion("future") [17:25:56.980] } [17:25:56.980] else { [17:25:56.980] version <- NULL [17:25:56.980] } [17:25:56.980] if (!has_future || version < "1.8.0") { [17:25:56.980] info <- base::c(r_version = base::gsub("R version ", [17:25:56.980] "", base::R.version$version.string), [17:25:56.980] platform = base::sprintf("%s (%s-bit)", [17:25:56.980] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:25:56.980] os = base::paste(base::Sys.info()[base::c("sysname", [17:25:56.980] "release", "version")], collapse = " "), [17:25:56.980] hostname = base::Sys.info()[["nodename"]]) [17:25:56.980] info <- base::sprintf("%s: %s", base::names(info), [17:25:56.980] info) [17:25:56.980] info <- base::paste(info, collapse = "; ") [17:25:56.980] if (!has_future) { [17:25:56.980] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:25:56.980] info) [17:25:56.980] } [17:25:56.980] else { [17:25:56.980] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:25:56.980] info, version) [17:25:56.980] } [17:25:56.980] base::stop(msg) [17:25:56.980] } [17:25:56.980] }) [17:25:56.980] } [17:25:56.980] ...future.strategy.old <- future::plan("list") [17:25:56.980] options(future.plan = NULL) [17:25:56.980] Sys.unsetenv("R_FUTURE_PLAN") [17:25:56.980] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:25:56.980] } [17:25:56.980] ...future.workdir <- getwd() [17:25:56.980] } [17:25:56.980] ...future.oldOptions <- base::as.list(base::.Options) [17:25:56.980] ...future.oldEnvVars <- base::Sys.getenv() [17:25:56.980] } [17:25:56.980] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:25:56.980] future.globals.maxSize = NULL, future.globals.method = NULL, [17:25:56.980] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:25:56.980] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:25:56.980] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:25:56.980] future.stdout.windows.reencode = NULL, width = 80L) [17:25:56.980] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:25:56.980] base::names(...future.oldOptions)) [17:25:56.980] } [17:25:56.980] if (FALSE) { [17:25:56.980] } [17:25:56.980] else { [17:25:56.980] if (TRUE) { [17:25:56.980] ...future.stdout <- base::rawConnection(base::raw(0L), [17:25:56.980] open = "w") [17:25:56.980] } [17:25:56.980] else { [17:25:56.980] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:25:56.980] windows = "NUL", "/dev/null"), open = "w") [17:25:56.980] } [17:25:56.980] base::sink(...future.stdout, type = "output", split = FALSE) [17:25:56.980] base::on.exit(if (!base::is.null(...future.stdout)) { [17:25:56.980] base::sink(type = "output", split = FALSE) [17:25:56.980] base::close(...future.stdout) [17:25:56.980] }, add = TRUE) [17:25:56.980] } [17:25:56.980] ...future.frame <- base::sys.nframe() [17:25:56.980] ...future.conditions <- base::list() [17:25:56.980] ...future.rng <- base::globalenv()$.Random.seed [17:25:56.980] if (FALSE) { [17:25:56.980] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:25:56.980] "...future.value", "...future.globalenv.names", ".Random.seed") [17:25:56.980] } [17:25:56.980] ...future.result <- base::tryCatch({ [17:25:56.980] base::withCallingHandlers({ [17:25:56.980] ...future.value <- base::withVisible(base::local({ [17:25:56.980] 42L [17:25:56.980] })) [17:25:56.980] future::FutureResult(value = ...future.value$value, [17:25:56.980] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:25:56.980] ...future.rng), globalenv = if (FALSE) [17:25:56.980] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:25:56.980] ...future.globalenv.names)) [17:25:56.980] else NULL, started = ...future.startTime, version = "1.8") [17:25:56.980] }, condition = base::local({ [17:25:56.980] c <- base::c [17:25:56.980] inherits <- base::inherits [17:25:56.980] invokeRestart <- base::invokeRestart [17:25:56.980] length <- base::length [17:25:56.980] list <- base::list [17:25:56.980] seq.int <- base::seq.int [17:25:56.980] signalCondition <- base::signalCondition [17:25:56.980] sys.calls <- base::sys.calls [17:25:56.980] `[[` <- base::`[[` [17:25:56.980] `+` <- base::`+` [17:25:56.980] `<<-` <- base::`<<-` [17:25:56.980] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:25:56.980] calls[seq.int(from = from + 12L, to = length(calls) - [17:25:56.980] 3L)] [17:25:56.980] } [17:25:56.980] function(cond) { [17:25:56.980] is_error <- inherits(cond, "error") [17:25:56.980] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:25:56.980] NULL) [17:25:56.980] if (is_error) { [17:25:56.980] sessionInformation <- function() { [17:25:56.980] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:25:56.980] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:25:56.980] search = base::search(), system = base::Sys.info()) [17:25:56.980] } [17:25:56.980] ...future.conditions[[length(...future.conditions) + [17:25:56.980] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:25:56.980] cond$call), session = sessionInformation(), [17:25:56.980] timestamp = base::Sys.time(), signaled = 0L) [17:25:56.980] signalCondition(cond) [17:25:56.980] } [17:25:56.980] else if (!ignore && TRUE && inherits(cond, c("condition", [17:25:56.980] "immediateCondition"))) { [17:25:56.980] signal <- TRUE && inherits(cond, "immediateCondition") [17:25:56.980] ...future.conditions[[length(...future.conditions) + [17:25:56.980] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:25:56.980] if (TRUE && !signal) { [17:25:56.980] muffleCondition <- function (cond, pattern = "^muffle") [17:25:56.980] { [17:25:56.980] inherits <- base::inherits [17:25:56.980] invokeRestart <- base::invokeRestart [17:25:56.980] is.null <- base::is.null [17:25:56.980] muffled <- FALSE [17:25:56.980] if (inherits(cond, "message")) { [17:25:56.980] muffled <- grepl(pattern, "muffleMessage") [17:25:56.980] if (muffled) [17:25:56.980] invokeRestart("muffleMessage") [17:25:56.980] } [17:25:56.980] else if (inherits(cond, "warning")) { [17:25:56.980] muffled <- grepl(pattern, "muffleWarning") [17:25:56.980] if (muffled) [17:25:56.980] invokeRestart("muffleWarning") [17:25:56.980] } [17:25:56.980] else if (inherits(cond, "condition")) { [17:25:56.980] if (!is.null(pattern)) { [17:25:56.980] computeRestarts <- base::computeRestarts [17:25:56.980] grepl <- base::grepl [17:25:56.980] restarts <- computeRestarts(cond) [17:25:56.980] for (restart in restarts) { [17:25:56.980] name <- restart$name [17:25:56.980] if (is.null(name)) [17:25:56.980] next [17:25:56.980] if (!grepl(pattern, name)) [17:25:56.980] next [17:25:56.980] invokeRestart(restart) [17:25:56.980] muffled <- TRUE [17:25:56.980] break [17:25:56.980] } [17:25:56.980] } [17:25:56.980] } [17:25:56.980] invisible(muffled) [17:25:56.980] } [17:25:56.980] muffleCondition(cond, pattern = "^muffle") [17:25:56.980] } [17:25:56.980] } [17:25:56.980] else { [17:25:56.980] if (TRUE) { [17:25:56.980] muffleCondition <- function (cond, pattern = "^muffle") [17:25:56.980] { [17:25:56.980] inherits <- base::inherits [17:25:56.980] invokeRestart <- base::invokeRestart [17:25:56.980] is.null <- base::is.null [17:25:56.980] muffled <- FALSE [17:25:56.980] if (inherits(cond, "message")) { [17:25:56.980] muffled <- grepl(pattern, "muffleMessage") [17:25:56.980] if (muffled) [17:25:56.980] invokeRestart("muffleMessage") [17:25:56.980] } [17:25:56.980] else if (inherits(cond, "warning")) { [17:25:56.980] muffled <- grepl(pattern, "muffleWarning") [17:25:56.980] if (muffled) [17:25:56.980] invokeRestart("muffleWarning") [17:25:56.980] } [17:25:56.980] else if (inherits(cond, "condition")) { [17:25:56.980] if (!is.null(pattern)) { [17:25:56.980] computeRestarts <- base::computeRestarts [17:25:56.980] grepl <- base::grepl [17:25:56.980] restarts <- computeRestarts(cond) [17:25:56.980] for (restart in restarts) { [17:25:56.980] name <- restart$name [17:25:56.980] if (is.null(name)) [17:25:56.980] next [17:25:56.980] if (!grepl(pattern, name)) [17:25:56.980] next [17:25:56.980] invokeRestart(restart) [17:25:56.980] muffled <- TRUE [17:25:56.980] break [17:25:56.980] } [17:25:56.980] } [17:25:56.980] } [17:25:56.980] invisible(muffled) [17:25:56.980] } [17:25:56.980] muffleCondition(cond, pattern = "^muffle") [17:25:56.980] } [17:25:56.980] } [17:25:56.980] } [17:25:56.980] })) [17:25:56.980] }, error = function(ex) { [17:25:56.980] base::structure(base::list(value = NULL, visible = NULL, [17:25:56.980] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:25:56.980] ...future.rng), started = ...future.startTime, [17:25:56.980] finished = Sys.time(), session_uuid = NA_character_, [17:25:56.980] version = "1.8"), class = "FutureResult") [17:25:56.980] }, finally = { [17:25:56.980] if (!identical(...future.workdir, getwd())) [17:25:56.980] setwd(...future.workdir) [17:25:56.980] { [17:25:56.980] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:25:56.980] ...future.oldOptions$nwarnings <- NULL [17:25:56.980] } [17:25:56.980] base::options(...future.oldOptions) [17:25:56.980] if (.Platform$OS.type == "windows") { [17:25:56.980] old_names <- names(...future.oldEnvVars) [17:25:56.980] envs <- base::Sys.getenv() [17:25:56.980] names <- names(envs) [17:25:56.980] common <- intersect(names, old_names) [17:25:56.980] added <- setdiff(names, old_names) [17:25:56.980] removed <- setdiff(old_names, names) [17:25:56.980] changed <- common[...future.oldEnvVars[common] != [17:25:56.980] envs[common]] [17:25:56.980] NAMES <- toupper(changed) [17:25:56.980] args <- list() [17:25:56.980] for (kk in seq_along(NAMES)) { [17:25:56.980] name <- changed[[kk]] [17:25:56.980] NAME <- NAMES[[kk]] [17:25:56.980] if (name != NAME && is.element(NAME, old_names)) [17:25:56.980] next [17:25:56.980] args[[name]] <- ...future.oldEnvVars[[name]] [17:25:56.980] } [17:25:56.980] NAMES <- toupper(added) [17:25:56.980] for (kk in seq_along(NAMES)) { [17:25:56.980] name <- added[[kk]] [17:25:56.980] NAME <- NAMES[[kk]] [17:25:56.980] if (name != NAME && is.element(NAME, old_names)) [17:25:56.980] next [17:25:56.980] args[[name]] <- "" [17:25:56.980] } [17:25:56.980] NAMES <- toupper(removed) [17:25:56.980] for (kk in seq_along(NAMES)) { [17:25:56.980] name <- removed[[kk]] [17:25:56.980] NAME <- NAMES[[kk]] [17:25:56.980] if (name != NAME && is.element(NAME, old_names)) [17:25:56.980] next [17:25:56.980] args[[name]] <- ...future.oldEnvVars[[name]] [17:25:56.980] } [17:25:56.980] if (length(args) > 0) [17:25:56.980] base::do.call(base::Sys.setenv, args = args) [17:25:56.980] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:25:56.980] } [17:25:56.980] else { [17:25:56.980] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:25:56.980] } [17:25:56.980] { [17:25:56.980] if (base::length(...future.futureOptionsAdded) > [17:25:56.980] 0L) { [17:25:56.980] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:25:56.980] base::names(opts) <- ...future.futureOptionsAdded [17:25:56.980] base::options(opts) [17:25:56.980] } [17:25:56.980] { [17:25:56.980] { [17:25:56.980] NULL [17:25:56.980] RNGkind("Mersenne-Twister") [17:25:56.980] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:25:56.980] inherits = FALSE) [17:25:56.980] } [17:25:56.980] options(future.plan = NULL) [17:25:56.980] if (is.na(NA_character_)) [17:25:56.980] Sys.unsetenv("R_FUTURE_PLAN") [17:25:56.980] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:25:56.980] future::plan(...future.strategy.old, .cleanup = FALSE, [17:25:56.980] .init = FALSE) [17:25:56.980] } [17:25:56.980] } [17:25:56.980] } [17:25:56.980] }) [17:25:56.980] if (TRUE) { [17:25:56.980] base::sink(type = "output", split = FALSE) [17:25:56.980] if (TRUE) { [17:25:56.980] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:25:56.980] } [17:25:56.980] else { [17:25:56.980] ...future.result["stdout"] <- base::list(NULL) [17:25:56.980] } [17:25:56.980] base::close(...future.stdout) [17:25:56.980] ...future.stdout <- NULL [17:25:56.980] } [17:25:56.980] ...future.result$conditions <- ...future.conditions [17:25:56.980] ...future.result$finished <- base::Sys.time() [17:25:56.980] ...future.result [17:25:56.980] } [17:25:56.984] plan(): Setting new future strategy stack: [17:25:56.985] List of future strategies: [17:25:56.985] 1. sequential: [17:25:56.985] - args: function (..., envir = parent.frame(), workers = "") [17:25:56.985] - tweaked: FALSE [17:25:56.985] - call: NULL [17:25:56.985] plan(): nbrOfWorkers() = 1 [17:25:56.987] plan(): Setting new future strategy stack: [17:25:56.987] List of future strategies: [17:25:56.987] 1. future: [17:25:56.987] - args: function (..., workers = "") [17:25:56.987] - tweaked: FALSE [17:25:56.987] - call: plan(foo) [17:25:56.988] plan(): nbrOfWorkers() = Inf [17:25:56.988] SequentialFuture started (and completed) [1] 42 [17:25:56.989] getGlobalsAndPackages() ... [17:25:56.989] Searching for globals... [17:25:56.990] - globals found: [1] '{' [17:25:56.990] Searching for globals ... DONE [17:25:56.990] Resolving globals: FALSE [17:25:56.991] [17:25:56.991] [17:25:56.991] getGlobalsAndPackages() ... DONE [17:25:56.991] Packages needed by the future expression (n = 0): [17:25:56.992] Packages needed by future strategies (n = 0): [17:25:56.992] { [17:25:56.992] { [17:25:56.992] { [17:25:56.992] ...future.startTime <- base::Sys.time() [17:25:56.992] { [17:25:56.992] { [17:25:56.992] { [17:25:56.992] base::local({ [17:25:56.992] has_future <- base::requireNamespace("future", [17:25:56.992] quietly = TRUE) [17:25:56.992] if (has_future) { [17:25:56.992] ns <- base::getNamespace("future") [17:25:56.992] version <- ns[[".package"]][["version"]] [17:25:56.992] if (is.null(version)) [17:25:56.992] version <- utils::packageVersion("future") [17:25:56.992] } [17:25:56.992] else { [17:25:56.992] version <- NULL [17:25:56.992] } [17:25:56.992] if (!has_future || version < "1.8.0") { [17:25:56.992] info <- base::c(r_version = base::gsub("R version ", [17:25:56.992] "", base::R.version$version.string), [17:25:56.992] platform = base::sprintf("%s (%s-bit)", [17:25:56.992] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:25:56.992] os = base::paste(base::Sys.info()[base::c("sysname", [17:25:56.992] "release", "version")], collapse = " "), [17:25:56.992] hostname = base::Sys.info()[["nodename"]]) [17:25:56.992] info <- base::sprintf("%s: %s", base::names(info), [17:25:56.992] info) [17:25:56.992] info <- base::paste(info, collapse = "; ") [17:25:56.992] if (!has_future) { [17:25:56.992] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:25:56.992] info) [17:25:56.992] } [17:25:56.992] else { [17:25:56.992] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:25:56.992] info, version) [17:25:56.992] } [17:25:56.992] base::stop(msg) [17:25:56.992] } [17:25:56.992] }) [17:25:56.992] } [17:25:56.992] ...future.strategy.old <- future::plan("list") [17:25:56.992] options(future.plan = NULL) [17:25:56.992] Sys.unsetenv("R_FUTURE_PLAN") [17:25:56.992] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:25:56.992] } [17:25:56.992] ...future.workdir <- getwd() [17:25:56.992] } [17:25:56.992] ...future.oldOptions <- base::as.list(base::.Options) [17:25:56.992] ...future.oldEnvVars <- base::Sys.getenv() [17:25:56.992] } [17:25:56.992] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:25:56.992] future.globals.maxSize = NULL, future.globals.method = NULL, [17:25:56.992] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:25:56.992] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:25:56.992] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:25:56.992] future.stdout.windows.reencode = NULL, width = 80L) [17:25:56.992] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:25:56.992] base::names(...future.oldOptions)) [17:25:56.992] } [17:25:56.992] if (FALSE) { [17:25:56.992] } [17:25:56.992] else { [17:25:56.992] if (TRUE) { [17:25:56.992] ...future.stdout <- base::rawConnection(base::raw(0L), [17:25:56.992] open = "w") [17:25:56.992] } [17:25:56.992] else { [17:25:56.992] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:25:56.992] windows = "NUL", "/dev/null"), open = "w") [17:25:56.992] } [17:25:56.992] base::sink(...future.stdout, type = "output", split = FALSE) [17:25:56.992] base::on.exit(if (!base::is.null(...future.stdout)) { [17:25:56.992] base::sink(type = "output", split = FALSE) [17:25:56.992] base::close(...future.stdout) [17:25:56.992] }, add = TRUE) [17:25:56.992] } [17:25:56.992] ...future.frame <- base::sys.nframe() [17:25:56.992] ...future.conditions <- base::list() [17:25:56.992] ...future.rng <- base::globalenv()$.Random.seed [17:25:56.992] if (FALSE) { [17:25:56.992] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:25:56.992] "...future.value", "...future.globalenv.names", ".Random.seed") [17:25:56.992] } [17:25:56.992] ...future.result <- base::tryCatch({ [17:25:56.992] base::withCallingHandlers({ [17:25:56.992] ...future.value <- base::withVisible(base::local({ [17:25:56.992] 42L [17:25:56.992] })) [17:25:56.992] future::FutureResult(value = ...future.value$value, [17:25:56.992] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:25:56.992] ...future.rng), globalenv = if (FALSE) [17:25:56.992] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:25:56.992] ...future.globalenv.names)) [17:25:56.992] else NULL, started = ...future.startTime, version = "1.8") [17:25:56.992] }, condition = base::local({ [17:25:56.992] c <- base::c [17:25:56.992] inherits <- base::inherits [17:25:56.992] invokeRestart <- base::invokeRestart [17:25:56.992] length <- base::length [17:25:56.992] list <- base::list [17:25:56.992] seq.int <- base::seq.int [17:25:56.992] signalCondition <- base::signalCondition [17:25:56.992] sys.calls <- base::sys.calls [17:25:56.992] `[[` <- base::`[[` [17:25:56.992] `+` <- base::`+` [17:25:56.992] `<<-` <- base::`<<-` [17:25:56.992] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:25:56.992] calls[seq.int(from = from + 12L, to = length(calls) - [17:25:56.992] 3L)] [17:25:56.992] } [17:25:56.992] function(cond) { [17:25:56.992] is_error <- inherits(cond, "error") [17:25:56.992] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:25:56.992] NULL) [17:25:56.992] if (is_error) { [17:25:56.992] sessionInformation <- function() { [17:25:56.992] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:25:56.992] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:25:56.992] search = base::search(), system = base::Sys.info()) [17:25:56.992] } [17:25:56.992] ...future.conditions[[length(...future.conditions) + [17:25:56.992] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:25:56.992] cond$call), session = sessionInformation(), [17:25:56.992] timestamp = base::Sys.time(), signaled = 0L) [17:25:56.992] signalCondition(cond) [17:25:56.992] } [17:25:56.992] else if (!ignore && TRUE && inherits(cond, c("condition", [17:25:56.992] "immediateCondition"))) { [17:25:56.992] signal <- TRUE && inherits(cond, "immediateCondition") [17:25:56.992] ...future.conditions[[length(...future.conditions) + [17:25:56.992] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:25:56.992] if (TRUE && !signal) { [17:25:56.992] muffleCondition <- function (cond, pattern = "^muffle") [17:25:56.992] { [17:25:56.992] inherits <- base::inherits [17:25:56.992] invokeRestart <- base::invokeRestart [17:25:56.992] is.null <- base::is.null [17:25:56.992] muffled <- FALSE [17:25:56.992] if (inherits(cond, "message")) { [17:25:56.992] muffled <- grepl(pattern, "muffleMessage") [17:25:56.992] if (muffled) [17:25:56.992] invokeRestart("muffleMessage") [17:25:56.992] } [17:25:56.992] else if (inherits(cond, "warning")) { [17:25:56.992] muffled <- grepl(pattern, "muffleWarning") [17:25:56.992] if (muffled) [17:25:56.992] invokeRestart("muffleWarning") [17:25:56.992] } [17:25:56.992] else if (inherits(cond, "condition")) { [17:25:56.992] if (!is.null(pattern)) { [17:25:56.992] computeRestarts <- base::computeRestarts [17:25:56.992] grepl <- base::grepl [17:25:56.992] restarts <- computeRestarts(cond) [17:25:56.992] for (restart in restarts) { [17:25:56.992] name <- restart$name [17:25:56.992] if (is.null(name)) [17:25:56.992] next [17:25:56.992] if (!grepl(pattern, name)) [17:25:56.992] next [17:25:56.992] invokeRestart(restart) [17:25:56.992] muffled <- TRUE [17:25:56.992] break [17:25:56.992] } [17:25:56.992] } [17:25:56.992] } [17:25:56.992] invisible(muffled) [17:25:56.992] } [17:25:56.992] muffleCondition(cond, pattern = "^muffle") [17:25:56.992] } [17:25:56.992] } [17:25:56.992] else { [17:25:56.992] if (TRUE) { [17:25:56.992] muffleCondition <- function (cond, pattern = "^muffle") [17:25:56.992] { [17:25:56.992] inherits <- base::inherits [17:25:56.992] invokeRestart <- base::invokeRestart [17:25:56.992] is.null <- base::is.null [17:25:56.992] muffled <- FALSE [17:25:56.992] if (inherits(cond, "message")) { [17:25:56.992] muffled <- grepl(pattern, "muffleMessage") [17:25:56.992] if (muffled) [17:25:56.992] invokeRestart("muffleMessage") [17:25:56.992] } [17:25:56.992] else if (inherits(cond, "warning")) { [17:25:56.992] muffled <- grepl(pattern, "muffleWarning") [17:25:56.992] if (muffled) [17:25:56.992] invokeRestart("muffleWarning") [17:25:56.992] } [17:25:56.992] else if (inherits(cond, "condition")) { [17:25:56.992] if (!is.null(pattern)) { [17:25:56.992] computeRestarts <- base::computeRestarts [17:25:56.992] grepl <- base::grepl [17:25:56.992] restarts <- computeRestarts(cond) [17:25:56.992] for (restart in restarts) { [17:25:56.992] name <- restart$name [17:25:56.992] if (is.null(name)) [17:25:56.992] next [17:25:56.992] if (!grepl(pattern, name)) [17:25:56.992] next [17:25:56.992] invokeRestart(restart) [17:25:56.992] muffled <- TRUE [17:25:56.992] break [17:25:56.992] } [17:25:56.992] } [17:25:56.992] } [17:25:56.992] invisible(muffled) [17:25:56.992] } [17:25:56.992] muffleCondition(cond, pattern = "^muffle") [17:25:56.992] } [17:25:56.992] } [17:25:56.992] } [17:25:56.992] })) [17:25:56.992] }, error = function(ex) { [17:25:56.992] base::structure(base::list(value = NULL, visible = NULL, [17:25:56.992] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:25:56.992] ...future.rng), started = ...future.startTime, [17:25:56.992] finished = Sys.time(), session_uuid = NA_character_, [17:25:56.992] version = "1.8"), class = "FutureResult") [17:25:56.992] }, finally = { [17:25:56.992] if (!identical(...future.workdir, getwd())) [17:25:56.992] setwd(...future.workdir) [17:25:56.992] { [17:25:56.992] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:25:56.992] ...future.oldOptions$nwarnings <- NULL [17:25:56.992] } [17:25:56.992] base::options(...future.oldOptions) [17:25:56.992] if (.Platform$OS.type == "windows") { [17:25:56.992] old_names <- names(...future.oldEnvVars) [17:25:56.992] envs <- base::Sys.getenv() [17:25:56.992] names <- names(envs) [17:25:56.992] common <- intersect(names, old_names) [17:25:56.992] added <- setdiff(names, old_names) [17:25:56.992] removed <- setdiff(old_names, names) [17:25:56.992] changed <- common[...future.oldEnvVars[common] != [17:25:56.992] envs[common]] [17:25:56.992] NAMES <- toupper(changed) [17:25:56.992] args <- list() [17:25:56.992] for (kk in seq_along(NAMES)) { [17:25:56.992] name <- changed[[kk]] [17:25:56.992] NAME <- NAMES[[kk]] [17:25:56.992] if (name != NAME && is.element(NAME, old_names)) [17:25:56.992] next [17:25:56.992] args[[name]] <- ...future.oldEnvVars[[name]] [17:25:56.992] } [17:25:56.992] NAMES <- toupper(added) [17:25:56.992] for (kk in seq_along(NAMES)) { [17:25:56.992] name <- added[[kk]] [17:25:56.992] NAME <- NAMES[[kk]] [17:25:56.992] if (name != NAME && is.element(NAME, old_names)) [17:25:56.992] next [17:25:56.992] args[[name]] <- "" [17:25:56.992] } [17:25:56.992] NAMES <- toupper(removed) [17:25:56.992] for (kk in seq_along(NAMES)) { [17:25:56.992] name <- removed[[kk]] [17:25:56.992] NAME <- NAMES[[kk]] [17:25:56.992] if (name != NAME && is.element(NAME, old_names)) [17:25:56.992] next [17:25:56.992] args[[name]] <- ...future.oldEnvVars[[name]] [17:25:56.992] } [17:25:56.992] if (length(args) > 0) [17:25:56.992] base::do.call(base::Sys.setenv, args = args) [17:25:56.992] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:25:56.992] } [17:25:56.992] else { [17:25:56.992] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:25:56.992] } [17:25:56.992] { [17:25:56.992] if (base::length(...future.futureOptionsAdded) > [17:25:56.992] 0L) { [17:25:56.992] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:25:56.992] base::names(opts) <- ...future.futureOptionsAdded [17:25:56.992] base::options(opts) [17:25:56.992] } [17:25:56.992] { [17:25:56.992] { [17:25:56.992] NULL [17:25:56.992] RNGkind("Mersenne-Twister") [17:25:56.992] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:25:56.992] inherits = FALSE) [17:25:56.992] } [17:25:56.992] options(future.plan = NULL) [17:25:56.992] if (is.na(NA_character_)) [17:25:56.992] Sys.unsetenv("R_FUTURE_PLAN") [17:25:56.992] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:25:56.992] future::plan(...future.strategy.old, .cleanup = FALSE, [17:25:56.992] .init = FALSE) [17:25:56.992] } [17:25:56.992] } [17:25:56.992] } [17:25:56.992] }) [17:25:56.992] if (TRUE) { [17:25:56.992] base::sink(type = "output", split = FALSE) [17:25:56.992] if (TRUE) { [17:25:56.992] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:25:56.992] } [17:25:56.992] else { [17:25:56.992] ...future.result["stdout"] <- base::list(NULL) [17:25:56.992] } [17:25:56.992] base::close(...future.stdout) [17:25:56.992] ...future.stdout <- NULL [17:25:56.992] } [17:25:56.992] ...future.result$conditions <- ...future.conditions [17:25:56.992] ...future.result$finished <- base::Sys.time() [17:25:56.992] ...future.result [17:25:56.992] } [17:25:56.996] plan(): Setting new future strategy stack: [17:25:56.996] List of future strategies: [17:25:56.996] 1. sequential: [17:25:56.996] - args: function (..., envir = parent.frame(), workers = "") [17:25:56.996] - tweaked: FALSE [17:25:56.996] - call: NULL [17:25:56.998] plan(): nbrOfWorkers() = 1 [17:25:56.999] plan(): Setting new future strategy stack: [17:25:57.000] List of future strategies: [17:25:57.000] 1. future: [17:25:57.000] - args: function (..., workers = "") [17:25:57.000] - tweaked: FALSE [17:25:57.000] - call: plan(foo) [17:25:57.000] plan(): nbrOfWorkers() = Inf [17:25:57.000] SequentialFuture started (and completed) [1] 42 [17:25:57.002] getGlobalsAndPackages() ... [17:25:57.003] [17:25:57.003] - globals: [0] [17:25:57.003] getGlobalsAndPackages() ... DONE [17:25:57.003] [local output] makeClusterPSOCK() ... [17:25:57.033] [local output] Workers: [n = 2] 'localhost', 'localhost' [17:25:57.039] [local output] Base port: 29802 [17:25:57.040] [local output] Getting setup options for 2 cluster nodes ... [17:25:57.040] [local output] - Node 1 of 2 ... [17:25:57.040] [local output] localMachine=TRUE => revtunnel=FALSE [17:25:57.042] Testing if worker's PID can be inferred: '"D:/RCompile/recent/R/bin/x64/Rscript" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpSm6Nei/worker.rank=1.parallelly.parent=138052.21b4453c12f8b.pid\")), silent = TRUE)" -e "file.exists(\"D:/temp/RtmpSm6Nei/worker.rank=1.parallelly.parent=138052.21b4453c12f8b.pid\")"' [17:25:57.489] - Possible to infer worker's PID: TRUE [17:25:57.490] [local output] Rscript port: 29802 [17:25:57.490] [local output] - Node 2 of 2 ... [17:25:57.491] [local output] localMachine=TRUE => revtunnel=FALSE [17:25:57.492] [local output] Rscript port: 29802 [17:25:57.492] [local output] Getting setup options for 2 cluster nodes ... done [17:25:57.493] [local output] - Parallel setup requested for some PSOCK nodes [17:25:57.493] [local output] Setting up PSOCK nodes in parallel [17:25:57.493] List of 36 [17:25:57.493] $ worker : chr "localhost" [17:25:57.493] ..- attr(*, "localhost")= logi TRUE [17:25:57.493] $ master : chr "localhost" [17:25:57.493] $ port : int 29802 [17:25:57.493] $ connectTimeout : num 120 [17:25:57.493] $ timeout : num 120 [17:25:57.493] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [17:25:57.493] $ homogeneous : logi TRUE [17:25:57.493] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=Future-class.R:138052:CRANWIN3:C"| __truncated__ [17:25:57.493] $ rscript_envs : NULL [17:25:57.493] $ rscript_libs : NULL [17:25:57.493] $ rscript_startup : NULL [17:25:57.493] $ rscript_sh : chr "cmd" [17:25:57.493] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:25:57.493] $ methods : logi TRUE [17:25:57.493] $ socketOptions : chr "no-delay" [17:25:57.493] $ useXDR : logi FALSE [17:25:57.493] $ outfile : chr "/dev/null" [17:25:57.493] $ renice : int NA [17:25:57.493] $ rshcmd : NULL [17:25:57.493] $ user : chr(0) [17:25:57.493] $ revtunnel : logi FALSE [17:25:57.493] $ rshlogfile : NULL [17:25:57.493] $ rshopts : chr(0) [17:25:57.493] $ rank : int 1 [17:25:57.493] $ manual : logi FALSE [17:25:57.493] $ dryrun : logi FALSE [17:25:57.493] $ quiet : logi FALSE [17:25:57.493] $ setup_strategy : chr "parallel" [17:25:57.493] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:25:57.493] $ pidfile : chr "D:/temp/RtmpSm6Nei/worker.rank=1.parallelly.parent=138052.21b4453c12f8b.pid" [17:25:57.493] $ rshcmd_label : NULL [17:25:57.493] $ rsh_call : NULL [17:25:57.493] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [17:25:57.493] $ localMachine : logi TRUE [17:25:57.493] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [17:25:57.493] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [17:25:57.493] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [17:25:57.493] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [17:25:57.493] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [17:25:57.493] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [17:25:57.493] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [17:25:57.493] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [17:25:57.493] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [17:25:57.493] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [17:25:57.493] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [17:25:57.493] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [17:25:57.493] "parallel"), action = c("launch", "options"), verbose = FALSE) [17:25:57.493] $ arguments :List of 28 [17:25:57.493] ..$ worker : chr "localhost" [17:25:57.493] ..$ master : NULL [17:25:57.493] ..$ port : int 29802 [17:25:57.493] ..$ connectTimeout : num 120 [17:25:57.493] ..$ timeout : num 120 [17:25:57.493] ..$ rscript : NULL [17:25:57.493] ..$ homogeneous : NULL [17:25:57.493] ..$ rscript_args : NULL [17:25:57.493] ..$ rscript_envs : NULL [17:25:57.493] ..$ rscript_libs : NULL [17:25:57.493] ..$ rscript_startup : NULL [17:25:57.493] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [17:25:57.493] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [17:25:57.493] ..$ methods : logi TRUE [17:25:57.493] ..$ socketOptions : chr "no-delay" [17:25:57.493] ..$ useXDR : logi FALSE [17:25:57.493] ..$ outfile : chr "/dev/null" [17:25:57.493] ..$ renice : int NA [17:25:57.493] ..$ rshcmd : NULL [17:25:57.493] ..$ user : NULL [17:25:57.493] ..$ revtunnel : logi NA [17:25:57.493] ..$ rshlogfile : NULL [17:25:57.493] ..$ rshopts : NULL [17:25:57.493] ..$ rank : int 1 [17:25:57.493] ..$ manual : logi FALSE [17:25:57.493] ..$ dryrun : logi FALSE [17:25:57.493] ..$ quiet : logi FALSE [17:25:57.493] ..$ setup_strategy : chr "parallel" [17:25:57.493] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [17:25:57.515] [local output] System call to launch all workers: [17:25:57.515] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=Future-class.R:138052:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpSm6Nei/worker.rank=1.parallelly.parent=138052.21b4453c12f8b.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=29802 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [17:25:57.515] [local output] Starting PSOCK main server [17:25:57.521] [local output] Workers launched [17:25:57.521] [local output] Waiting for workers to connect back [17:25:57.521] - [local output] 0 workers out of 2 ready [17:25:57.684] - [local output] 0 workers out of 2 ready [17:25:57.684] - [local output] 1 workers out of 2 ready [17:25:57.685] - [local output] 1 workers out of 2 ready [17:25:57.685] - [local output] 2 workers out of 2 ready [17:25:57.685] [local output] Launching of workers completed [17:25:57.686] [local output] Collecting session information from workers [17:25:57.687] [local output] - Worker #1 of 2 [17:25:57.687] [local output] - Worker #2 of 2 [17:25:57.687] [local output] makeClusterPSOCK() ... done MultisessionFuture: Label: '' Expression: { 42L } Lazy evaluation: FALSE Asynchronous evaluation: TRUE Local evaluation: TRUE Environment: 0x000001d600a99d80 Capture standard output: TRUE Capture condition classes: 'condition' (excluding 'nothing') Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) Resolved: FALSE Value: Conditions captured: Early signaling: FALSE Owner process: e72f6e13-1baa-285f-b04b-517a698c9677 Class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [17:25:57.701] Packages needed by the future expression (n = 0): [17:25:57.701] Packages needed by future strategies (n = 0): [17:25:57.701] { [17:25:57.701] { [17:25:57.701] { [17:25:57.701] ...future.startTime <- base::Sys.time() [17:25:57.701] { [17:25:57.701] { [17:25:57.701] { [17:25:57.701] { [17:25:57.701] base::local({ [17:25:57.701] has_future <- base::requireNamespace("future", [17:25:57.701] quietly = TRUE) [17:25:57.701] if (has_future) { [17:25:57.701] ns <- base::getNamespace("future") [17:25:57.701] version <- ns[[".package"]][["version"]] [17:25:57.701] if (is.null(version)) [17:25:57.701] version <- utils::packageVersion("future") [17:25:57.701] } [17:25:57.701] else { [17:25:57.701] version <- NULL [17:25:57.701] } [17:25:57.701] if (!has_future || version < "1.8.0") { [17:25:57.701] info <- base::c(r_version = base::gsub("R version ", [17:25:57.701] "", base::R.version$version.string), [17:25:57.701] platform = base::sprintf("%s (%s-bit)", [17:25:57.701] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:25:57.701] os = base::paste(base::Sys.info()[base::c("sysname", [17:25:57.701] "release", "version")], collapse = " "), [17:25:57.701] hostname = base::Sys.info()[["nodename"]]) [17:25:57.701] info <- base::sprintf("%s: %s", base::names(info), [17:25:57.701] info) [17:25:57.701] info <- base::paste(info, collapse = "; ") [17:25:57.701] if (!has_future) { [17:25:57.701] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:25:57.701] info) [17:25:57.701] } [17:25:57.701] else { [17:25:57.701] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:25:57.701] info, version) [17:25:57.701] } [17:25:57.701] base::stop(msg) [17:25:57.701] } [17:25:57.701] }) [17:25:57.701] } [17:25:57.701] ...future.mc.cores.old <- base::getOption("mc.cores") [17:25:57.701] base::options(mc.cores = 1L) [17:25:57.701] } [17:25:57.701] ...future.strategy.old <- future::plan("list") [17:25:57.701] options(future.plan = NULL) [17:25:57.701] Sys.unsetenv("R_FUTURE_PLAN") [17:25:57.701] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:25:57.701] } [17:25:57.701] ...future.workdir <- getwd() [17:25:57.701] } [17:25:57.701] ...future.oldOptions <- base::as.list(base::.Options) [17:25:57.701] ...future.oldEnvVars <- base::Sys.getenv() [17:25:57.701] } [17:25:57.701] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:25:57.701] future.globals.maxSize = NULL, future.globals.method = NULL, [17:25:57.701] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:25:57.701] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:25:57.701] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:25:57.701] future.stdout.windows.reencode = NULL, width = 80L) [17:25:57.701] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:25:57.701] base::names(...future.oldOptions)) [17:25:57.701] } [17:25:57.701] if (FALSE) { [17:25:57.701] } [17:25:57.701] else { [17:25:57.701] if (TRUE) { [17:25:57.701] ...future.stdout <- base::rawConnection(base::raw(0L), [17:25:57.701] open = "w") [17:25:57.701] } [17:25:57.701] else { [17:25:57.701] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:25:57.701] windows = "NUL", "/dev/null"), open = "w") [17:25:57.701] } [17:25:57.701] base::sink(...future.stdout, type = "output", split = FALSE) [17:25:57.701] base::on.exit(if (!base::is.null(...future.stdout)) { [17:25:57.701] base::sink(type = "output", split = FALSE) [17:25:57.701] base::close(...future.stdout) [17:25:57.701] }, add = TRUE) [17:25:57.701] } [17:25:57.701] ...future.frame <- base::sys.nframe() [17:25:57.701] ...future.conditions <- base::list() [17:25:57.701] ...future.rng <- base::globalenv()$.Random.seed [17:25:57.701] if (FALSE) { [17:25:57.701] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:25:57.701] "...future.value", "...future.globalenv.names", ".Random.seed") [17:25:57.701] } [17:25:57.701] ...future.result <- base::tryCatch({ [17:25:57.701] base::withCallingHandlers({ [17:25:57.701] ...future.value <- base::withVisible(base::local({ [17:25:57.701] ...future.makeSendCondition <- base::local({ [17:25:57.701] sendCondition <- NULL [17:25:57.701] function(frame = 1L) { [17:25:57.701] if (is.function(sendCondition)) [17:25:57.701] return(sendCondition) [17:25:57.701] ns <- getNamespace("parallel") [17:25:57.701] if (exists("sendData", mode = "function", [17:25:57.701] envir = ns)) { [17:25:57.701] parallel_sendData <- get("sendData", mode = "function", [17:25:57.701] envir = ns) [17:25:57.701] envir <- sys.frame(frame) [17:25:57.701] master <- NULL [17:25:57.701] while (!identical(envir, .GlobalEnv) && [17:25:57.701] !identical(envir, emptyenv())) { [17:25:57.701] if (exists("master", mode = "list", envir = envir, [17:25:57.701] inherits = FALSE)) { [17:25:57.701] master <- get("master", mode = "list", [17:25:57.701] envir = envir, inherits = FALSE) [17:25:57.701] if (inherits(master, c("SOCKnode", [17:25:57.701] "SOCK0node"))) { [17:25:57.701] sendCondition <<- function(cond) { [17:25:57.701] data <- list(type = "VALUE", value = cond, [17:25:57.701] success = TRUE) [17:25:57.701] parallel_sendData(master, data) [17:25:57.701] } [17:25:57.701] return(sendCondition) [17:25:57.701] } [17:25:57.701] } [17:25:57.701] frame <- frame + 1L [17:25:57.701] envir <- sys.frame(frame) [17:25:57.701] } [17:25:57.701] } [17:25:57.701] sendCondition <<- function(cond) NULL [17:25:57.701] } [17:25:57.701] }) [17:25:57.701] withCallingHandlers({ [17:25:57.701] { [17:25:57.701] 42L [17:25:57.701] } [17:25:57.701] }, immediateCondition = function(cond) { [17:25:57.701] sendCondition <- ...future.makeSendCondition() [17:25:57.701] sendCondition(cond) [17:25:57.701] muffleCondition <- function (cond, pattern = "^muffle") [17:25:57.701] { [17:25:57.701] inherits <- base::inherits [17:25:57.701] invokeRestart <- base::invokeRestart [17:25:57.701] is.null <- base::is.null [17:25:57.701] muffled <- FALSE [17:25:57.701] if (inherits(cond, "message")) { [17:25:57.701] muffled <- grepl(pattern, "muffleMessage") [17:25:57.701] if (muffled) [17:25:57.701] invokeRestart("muffleMessage") [17:25:57.701] } [17:25:57.701] else if (inherits(cond, "warning")) { [17:25:57.701] muffled <- grepl(pattern, "muffleWarning") [17:25:57.701] if (muffled) [17:25:57.701] invokeRestart("muffleWarning") [17:25:57.701] } [17:25:57.701] else if (inherits(cond, "condition")) { [17:25:57.701] if (!is.null(pattern)) { [17:25:57.701] computeRestarts <- base::computeRestarts [17:25:57.701] grepl <- base::grepl [17:25:57.701] restarts <- computeRestarts(cond) [17:25:57.701] for (restart in restarts) { [17:25:57.701] name <- restart$name [17:25:57.701] if (is.null(name)) [17:25:57.701] next [17:25:57.701] if (!grepl(pattern, name)) [17:25:57.701] next [17:25:57.701] invokeRestart(restart) [17:25:57.701] muffled <- TRUE [17:25:57.701] break [17:25:57.701] } [17:25:57.701] } [17:25:57.701] } [17:25:57.701] invisible(muffled) [17:25:57.701] } [17:25:57.701] muffleCondition(cond) [17:25:57.701] }) [17:25:57.701] })) [17:25:57.701] future::FutureResult(value = ...future.value$value, [17:25:57.701] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:25:57.701] ...future.rng), globalenv = if (FALSE) [17:25:57.701] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:25:57.701] ...future.globalenv.names)) [17:25:57.701] else NULL, started = ...future.startTime, version = "1.8") [17:25:57.701] }, condition = base::local({ [17:25:57.701] c <- base::c [17:25:57.701] inherits <- base::inherits [17:25:57.701] invokeRestart <- base::invokeRestart [17:25:57.701] length <- base::length [17:25:57.701] list <- base::list [17:25:57.701] seq.int <- base::seq.int [17:25:57.701] signalCondition <- base::signalCondition [17:25:57.701] sys.calls <- base::sys.calls [17:25:57.701] `[[` <- base::`[[` [17:25:57.701] `+` <- base::`+` [17:25:57.701] `<<-` <- base::`<<-` [17:25:57.701] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:25:57.701] calls[seq.int(from = from + 12L, to = length(calls) - [17:25:57.701] 3L)] [17:25:57.701] } [17:25:57.701] function(cond) { [17:25:57.701] is_error <- inherits(cond, "error") [17:25:57.701] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:25:57.701] NULL) [17:25:57.701] if (is_error) { [17:25:57.701] sessionInformation <- function() { [17:25:57.701] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:25:57.701] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:25:57.701] search = base::search(), system = base::Sys.info()) [17:25:57.701] } [17:25:57.701] ...future.conditions[[length(...future.conditions) + [17:25:57.701] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:25:57.701] cond$call), session = sessionInformation(), [17:25:57.701] timestamp = base::Sys.time(), signaled = 0L) [17:25:57.701] signalCondition(cond) [17:25:57.701] } [17:25:57.701] else if (!ignore && TRUE && inherits(cond, c("condition", [17:25:57.701] "immediateCondition"))) { [17:25:57.701] signal <- TRUE && inherits(cond, "immediateCondition") [17:25:57.701] ...future.conditions[[length(...future.conditions) + [17:25:57.701] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:25:57.701] if (TRUE && !signal) { [17:25:57.701] muffleCondition <- function (cond, pattern = "^muffle") [17:25:57.701] { [17:25:57.701] inherits <- base::inherits [17:25:57.701] invokeRestart <- base::invokeRestart [17:25:57.701] is.null <- base::is.null [17:25:57.701] muffled <- FALSE [17:25:57.701] if (inherits(cond, "message")) { [17:25:57.701] muffled <- grepl(pattern, "muffleMessage") [17:25:57.701] if (muffled) [17:25:57.701] invokeRestart("muffleMessage") [17:25:57.701] } [17:25:57.701] else if (inherits(cond, "warning")) { [17:25:57.701] muffled <- grepl(pattern, "muffleWarning") [17:25:57.701] if (muffled) [17:25:57.701] invokeRestart("muffleWarning") [17:25:57.701] } [17:25:57.701] else if (inherits(cond, "condition")) { [17:25:57.701] if (!is.null(pattern)) { [17:25:57.701] computeRestarts <- base::computeRestarts [17:25:57.701] grepl <- base::grepl [17:25:57.701] restarts <- computeRestarts(cond) [17:25:57.701] for (restart in restarts) { [17:25:57.701] name <- restart$name [17:25:57.701] if (is.null(name)) [17:25:57.701] next [17:25:57.701] if (!grepl(pattern, name)) [17:25:57.701] next [17:25:57.701] invokeRestart(restart) [17:25:57.701] muffled <- TRUE [17:25:57.701] break [17:25:57.701] } [17:25:57.701] } [17:25:57.701] } [17:25:57.701] invisible(muffled) [17:25:57.701] } [17:25:57.701] muffleCondition(cond, pattern = "^muffle") [17:25:57.701] } [17:25:57.701] } [17:25:57.701] else { [17:25:57.701] if (TRUE) { [17:25:57.701] muffleCondition <- function (cond, pattern = "^muffle") [17:25:57.701] { [17:25:57.701] inherits <- base::inherits [17:25:57.701] invokeRestart <- base::invokeRestart [17:25:57.701] is.null <- base::is.null [17:25:57.701] muffled <- FALSE [17:25:57.701] if (inherits(cond, "message")) { [17:25:57.701] muffled <- grepl(pattern, "muffleMessage") [17:25:57.701] if (muffled) [17:25:57.701] invokeRestart("muffleMessage") [17:25:57.701] } [17:25:57.701] else if (inherits(cond, "warning")) { [17:25:57.701] muffled <- grepl(pattern, "muffleWarning") [17:25:57.701] if (muffled) [17:25:57.701] invokeRestart("muffleWarning") [17:25:57.701] } [17:25:57.701] else if (inherits(cond, "condition")) { [17:25:57.701] if (!is.null(pattern)) { [17:25:57.701] computeRestarts <- base::computeRestarts [17:25:57.701] grepl <- base::grepl [17:25:57.701] restarts <- computeRestarts(cond) [17:25:57.701] for (restart in restarts) { [17:25:57.701] name <- restart$name [17:25:57.701] if (is.null(name)) [17:25:57.701] next [17:25:57.701] if (!grepl(pattern, name)) [17:25:57.701] next [17:25:57.701] invokeRestart(restart) [17:25:57.701] muffled <- TRUE [17:25:57.701] break [17:25:57.701] } [17:25:57.701] } [17:25:57.701] } [17:25:57.701] invisible(muffled) [17:25:57.701] } [17:25:57.701] muffleCondition(cond, pattern = "^muffle") [17:25:57.701] } [17:25:57.701] } [17:25:57.701] } [17:25:57.701] })) [17:25:57.701] }, error = function(ex) { [17:25:57.701] base::structure(base::list(value = NULL, visible = NULL, [17:25:57.701] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:25:57.701] ...future.rng), started = ...future.startTime, [17:25:57.701] finished = Sys.time(), session_uuid = NA_character_, [17:25:57.701] version = "1.8"), class = "FutureResult") [17:25:57.701] }, finally = { [17:25:57.701] if (!identical(...future.workdir, getwd())) [17:25:57.701] setwd(...future.workdir) [17:25:57.701] { [17:25:57.701] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:25:57.701] ...future.oldOptions$nwarnings <- NULL [17:25:57.701] } [17:25:57.701] base::options(...future.oldOptions) [17:25:57.701] if (.Platform$OS.type == "windows") { [17:25:57.701] old_names <- names(...future.oldEnvVars) [17:25:57.701] envs <- base::Sys.getenv() [17:25:57.701] names <- names(envs) [17:25:57.701] common <- intersect(names, old_names) [17:25:57.701] added <- setdiff(names, old_names) [17:25:57.701] removed <- setdiff(old_names, names) [17:25:57.701] changed <- common[...future.oldEnvVars[common] != [17:25:57.701] envs[common]] [17:25:57.701] NAMES <- toupper(changed) [17:25:57.701] args <- list() [17:25:57.701] for (kk in seq_along(NAMES)) { [17:25:57.701] name <- changed[[kk]] [17:25:57.701] NAME <- NAMES[[kk]] [17:25:57.701] if (name != NAME && is.element(NAME, old_names)) [17:25:57.701] next [17:25:57.701] args[[name]] <- ...future.oldEnvVars[[name]] [17:25:57.701] } [17:25:57.701] NAMES <- toupper(added) [17:25:57.701] for (kk in seq_along(NAMES)) { [17:25:57.701] name <- added[[kk]] [17:25:57.701] NAME <- NAMES[[kk]] [17:25:57.701] if (name != NAME && is.element(NAME, old_names)) [17:25:57.701] next [17:25:57.701] args[[name]] <- "" [17:25:57.701] } [17:25:57.701] NAMES <- toupper(removed) [17:25:57.701] for (kk in seq_along(NAMES)) { [17:25:57.701] name <- removed[[kk]] [17:25:57.701] NAME <- NAMES[[kk]] [17:25:57.701] if (name != NAME && is.element(NAME, old_names)) [17:25:57.701] next [17:25:57.701] args[[name]] <- ...future.oldEnvVars[[name]] [17:25:57.701] } [17:25:57.701] if (length(args) > 0) [17:25:57.701] base::do.call(base::Sys.setenv, args = args) [17:25:57.701] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:25:57.701] } [17:25:57.701] else { [17:25:57.701] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:25:57.701] } [17:25:57.701] { [17:25:57.701] if (base::length(...future.futureOptionsAdded) > [17:25:57.701] 0L) { [17:25:57.701] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:25:57.701] base::names(opts) <- ...future.futureOptionsAdded [17:25:57.701] base::options(opts) [17:25:57.701] } [17:25:57.701] { [17:25:57.701] { [17:25:57.701] base::options(mc.cores = ...future.mc.cores.old) [17:25:57.701] NULL [17:25:57.701] } [17:25:57.701] options(future.plan = NULL) [17:25:57.701] if (is.na(NA_character_)) [17:25:57.701] Sys.unsetenv("R_FUTURE_PLAN") [17:25:57.701] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:25:57.701] future::plan(...future.strategy.old, .cleanup = FALSE, [17:25:57.701] .init = FALSE) [17:25:57.701] } [17:25:57.701] } [17:25:57.701] } [17:25:57.701] }) [17:25:57.701] if (TRUE) { [17:25:57.701] base::sink(type = "output", split = FALSE) [17:25:57.701] if (TRUE) { [17:25:57.701] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:25:57.701] } [17:25:57.701] else { [17:25:57.701] ...future.result["stdout"] <- base::list(NULL) [17:25:57.701] } [17:25:57.701] base::close(...future.stdout) [17:25:57.701] ...future.stdout <- NULL [17:25:57.701] } [17:25:57.701] ...future.result$conditions <- ...future.conditions [17:25:57.701] ...future.result$finished <- base::Sys.time() [17:25:57.701] ...future.result [17:25:57.701] } [17:25:57.787] MultisessionFuture started [17:25:57.788] result() for ClusterFuture ... [17:25:57.788] receiveMessageFromWorker() for ClusterFuture ... [17:25:57.788] - Validating connection of MultisessionFuture [17:25:57.839] - received message: FutureResult [17:25:57.839] - Received FutureResult [17:25:57.843] - Erased future from FutureRegistry [17:25:57.843] result() for ClusterFuture ... [17:25:57.843] - result already collected: FutureResult [17:25:57.843] result() for ClusterFuture ... done [17:25:57.844] receiveMessageFromWorker() for ClusterFuture ... done [17:25:57.844] result() for ClusterFuture ... done [17:25:57.844] result() for ClusterFuture ... [17:25:57.844] - result already collected: FutureResult [17:25:57.844] result() for ClusterFuture ... done [1] 42 [17:25:57.845] getGlobalsAndPackages() ... [17:25:57.846] [17:25:57.846] - globals: [0] [17:25:57.846] getGlobalsAndPackages() ... DONE [17:25:57.858] Packages needed by the future expression (n = 0): [17:25:57.858] Packages needed by future strategies (n = 0): [17:25:57.859] { [17:25:57.859] { [17:25:57.859] { [17:25:57.859] ...future.startTime <- base::Sys.time() [17:25:57.859] { [17:25:57.859] { [17:25:57.859] { [17:25:57.859] { [17:25:57.859] base::local({ [17:25:57.859] has_future <- base::requireNamespace("future", [17:25:57.859] quietly = TRUE) [17:25:57.859] if (has_future) { [17:25:57.859] ns <- base::getNamespace("future") [17:25:57.859] version <- ns[[".package"]][["version"]] [17:25:57.859] if (is.null(version)) [17:25:57.859] version <- utils::packageVersion("future") [17:25:57.859] } [17:25:57.859] else { [17:25:57.859] version <- NULL [17:25:57.859] } [17:25:57.859] if (!has_future || version < "1.8.0") { [17:25:57.859] info <- base::c(r_version = base::gsub("R version ", [17:25:57.859] "", base::R.version$version.string), [17:25:57.859] platform = base::sprintf("%s (%s-bit)", [17:25:57.859] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:25:57.859] os = base::paste(base::Sys.info()[base::c("sysname", [17:25:57.859] "release", "version")], collapse = " "), [17:25:57.859] hostname = base::Sys.info()[["nodename"]]) [17:25:57.859] info <- base::sprintf("%s: %s", base::names(info), [17:25:57.859] info) [17:25:57.859] info <- base::paste(info, collapse = "; ") [17:25:57.859] if (!has_future) { [17:25:57.859] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:25:57.859] info) [17:25:57.859] } [17:25:57.859] else { [17:25:57.859] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:25:57.859] info, version) [17:25:57.859] } [17:25:57.859] base::stop(msg) [17:25:57.859] } [17:25:57.859] }) [17:25:57.859] } [17:25:57.859] ...future.mc.cores.old <- base::getOption("mc.cores") [17:25:57.859] base::options(mc.cores = 1L) [17:25:57.859] } [17:25:57.859] ...future.strategy.old <- future::plan("list") [17:25:57.859] options(future.plan = NULL) [17:25:57.859] Sys.unsetenv("R_FUTURE_PLAN") [17:25:57.859] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:25:57.859] } [17:25:57.859] ...future.workdir <- getwd() [17:25:57.859] } [17:25:57.859] ...future.oldOptions <- base::as.list(base::.Options) [17:25:57.859] ...future.oldEnvVars <- base::Sys.getenv() [17:25:57.859] } [17:25:57.859] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:25:57.859] future.globals.maxSize = NULL, future.globals.method = NULL, [17:25:57.859] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:25:57.859] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:25:57.859] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:25:57.859] future.stdout.windows.reencode = NULL, width = 80L) [17:25:57.859] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:25:57.859] base::names(...future.oldOptions)) [17:25:57.859] } [17:25:57.859] if (FALSE) { [17:25:57.859] } [17:25:57.859] else { [17:25:57.859] if (TRUE) { [17:25:57.859] ...future.stdout <- base::rawConnection(base::raw(0L), [17:25:57.859] open = "w") [17:25:57.859] } [17:25:57.859] else { [17:25:57.859] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:25:57.859] windows = "NUL", "/dev/null"), open = "w") [17:25:57.859] } [17:25:57.859] base::sink(...future.stdout, type = "output", split = FALSE) [17:25:57.859] base::on.exit(if (!base::is.null(...future.stdout)) { [17:25:57.859] base::sink(type = "output", split = FALSE) [17:25:57.859] base::close(...future.stdout) [17:25:57.859] }, add = TRUE) [17:25:57.859] } [17:25:57.859] ...future.frame <- base::sys.nframe() [17:25:57.859] ...future.conditions <- base::list() [17:25:57.859] ...future.rng <- base::globalenv()$.Random.seed [17:25:57.859] if (FALSE) { [17:25:57.859] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:25:57.859] "...future.value", "...future.globalenv.names", ".Random.seed") [17:25:57.859] } [17:25:57.859] ...future.result <- base::tryCatch({ [17:25:57.859] base::withCallingHandlers({ [17:25:57.859] ...future.value <- base::withVisible(base::local({ [17:25:57.859] ...future.makeSendCondition <- base::local({ [17:25:57.859] sendCondition <- NULL [17:25:57.859] function(frame = 1L) { [17:25:57.859] if (is.function(sendCondition)) [17:25:57.859] return(sendCondition) [17:25:57.859] ns <- getNamespace("parallel") [17:25:57.859] if (exists("sendData", mode = "function", [17:25:57.859] envir = ns)) { [17:25:57.859] parallel_sendData <- get("sendData", mode = "function", [17:25:57.859] envir = ns) [17:25:57.859] envir <- sys.frame(frame) [17:25:57.859] master <- NULL [17:25:57.859] while (!identical(envir, .GlobalEnv) && [17:25:57.859] !identical(envir, emptyenv())) { [17:25:57.859] if (exists("master", mode = "list", envir = envir, [17:25:57.859] inherits = FALSE)) { [17:25:57.859] master <- get("master", mode = "list", [17:25:57.859] envir = envir, inherits = FALSE) [17:25:57.859] if (inherits(master, c("SOCKnode", [17:25:57.859] "SOCK0node"))) { [17:25:57.859] sendCondition <<- function(cond) { [17:25:57.859] data <- list(type = "VALUE", value = cond, [17:25:57.859] success = TRUE) [17:25:57.859] parallel_sendData(master, data) [17:25:57.859] } [17:25:57.859] return(sendCondition) [17:25:57.859] } [17:25:57.859] } [17:25:57.859] frame <- frame + 1L [17:25:57.859] envir <- sys.frame(frame) [17:25:57.859] } [17:25:57.859] } [17:25:57.859] sendCondition <<- function(cond) NULL [17:25:57.859] } [17:25:57.859] }) [17:25:57.859] withCallingHandlers({ [17:25:57.859] { [17:25:57.859] 42L [17:25:57.859] } [17:25:57.859] }, immediateCondition = function(cond) { [17:25:57.859] sendCondition <- ...future.makeSendCondition() [17:25:57.859] sendCondition(cond) [17:25:57.859] muffleCondition <- function (cond, pattern = "^muffle") [17:25:57.859] { [17:25:57.859] inherits <- base::inherits [17:25:57.859] invokeRestart <- base::invokeRestart [17:25:57.859] is.null <- base::is.null [17:25:57.859] muffled <- FALSE [17:25:57.859] if (inherits(cond, "message")) { [17:25:57.859] muffled <- grepl(pattern, "muffleMessage") [17:25:57.859] if (muffled) [17:25:57.859] invokeRestart("muffleMessage") [17:25:57.859] } [17:25:57.859] else if (inherits(cond, "warning")) { [17:25:57.859] muffled <- grepl(pattern, "muffleWarning") [17:25:57.859] if (muffled) [17:25:57.859] invokeRestart("muffleWarning") [17:25:57.859] } [17:25:57.859] else if (inherits(cond, "condition")) { [17:25:57.859] if (!is.null(pattern)) { [17:25:57.859] computeRestarts <- base::computeRestarts [17:25:57.859] grepl <- base::grepl [17:25:57.859] restarts <- computeRestarts(cond) [17:25:57.859] for (restart in restarts) { [17:25:57.859] name <- restart$name [17:25:57.859] if (is.null(name)) [17:25:57.859] next [17:25:57.859] if (!grepl(pattern, name)) [17:25:57.859] next [17:25:57.859] invokeRestart(restart) [17:25:57.859] muffled <- TRUE [17:25:57.859] break [17:25:57.859] } [17:25:57.859] } [17:25:57.859] } [17:25:57.859] invisible(muffled) [17:25:57.859] } [17:25:57.859] muffleCondition(cond) [17:25:57.859] }) [17:25:57.859] })) [17:25:57.859] future::FutureResult(value = ...future.value$value, [17:25:57.859] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:25:57.859] ...future.rng), globalenv = if (FALSE) [17:25:57.859] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:25:57.859] ...future.globalenv.names)) [17:25:57.859] else NULL, started = ...future.startTime, version = "1.8") [17:25:57.859] }, condition = base::local({ [17:25:57.859] c <- base::c [17:25:57.859] inherits <- base::inherits [17:25:57.859] invokeRestart <- base::invokeRestart [17:25:57.859] length <- base::length [17:25:57.859] list <- base::list [17:25:57.859] seq.int <- base::seq.int [17:25:57.859] signalCondition <- base::signalCondition [17:25:57.859] sys.calls <- base::sys.calls [17:25:57.859] `[[` <- base::`[[` [17:25:57.859] `+` <- base::`+` [17:25:57.859] `<<-` <- base::`<<-` [17:25:57.859] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:25:57.859] calls[seq.int(from = from + 12L, to = length(calls) - [17:25:57.859] 3L)] [17:25:57.859] } [17:25:57.859] function(cond) { [17:25:57.859] is_error <- inherits(cond, "error") [17:25:57.859] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:25:57.859] NULL) [17:25:57.859] if (is_error) { [17:25:57.859] sessionInformation <- function() { [17:25:57.859] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:25:57.859] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:25:57.859] search = base::search(), system = base::Sys.info()) [17:25:57.859] } [17:25:57.859] ...future.conditions[[length(...future.conditions) + [17:25:57.859] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:25:57.859] cond$call), session = sessionInformation(), [17:25:57.859] timestamp = base::Sys.time(), signaled = 0L) [17:25:57.859] signalCondition(cond) [17:25:57.859] } [17:25:57.859] else if (!ignore && TRUE && inherits(cond, c("condition", [17:25:57.859] "immediateCondition"))) { [17:25:57.859] signal <- TRUE && inherits(cond, "immediateCondition") [17:25:57.859] ...future.conditions[[length(...future.conditions) + [17:25:57.859] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:25:57.859] if (TRUE && !signal) { [17:25:57.859] muffleCondition <- function (cond, pattern = "^muffle") [17:25:57.859] { [17:25:57.859] inherits <- base::inherits [17:25:57.859] invokeRestart <- base::invokeRestart [17:25:57.859] is.null <- base::is.null [17:25:57.859] muffled <- FALSE [17:25:57.859] if (inherits(cond, "message")) { [17:25:57.859] muffled <- grepl(pattern, "muffleMessage") [17:25:57.859] if (muffled) [17:25:57.859] invokeRestart("muffleMessage") [17:25:57.859] } [17:25:57.859] else if (inherits(cond, "warning")) { [17:25:57.859] muffled <- grepl(pattern, "muffleWarning") [17:25:57.859] if (muffled) [17:25:57.859] invokeRestart("muffleWarning") [17:25:57.859] } [17:25:57.859] else if (inherits(cond, "condition")) { [17:25:57.859] if (!is.null(pattern)) { [17:25:57.859] computeRestarts <- base::computeRestarts [17:25:57.859] grepl <- base::grepl [17:25:57.859] restarts <- computeRestarts(cond) [17:25:57.859] for (restart in restarts) { [17:25:57.859] name <- restart$name [17:25:57.859] if (is.null(name)) [17:25:57.859] next [17:25:57.859] if (!grepl(pattern, name)) [17:25:57.859] next [17:25:57.859] invokeRestart(restart) [17:25:57.859] muffled <- TRUE [17:25:57.859] break [17:25:57.859] } [17:25:57.859] } [17:25:57.859] } [17:25:57.859] invisible(muffled) [17:25:57.859] } [17:25:57.859] muffleCondition(cond, pattern = "^muffle") [17:25:57.859] } [17:25:57.859] } [17:25:57.859] else { [17:25:57.859] if (TRUE) { [17:25:57.859] muffleCondition <- function (cond, pattern = "^muffle") [17:25:57.859] { [17:25:57.859] inherits <- base::inherits [17:25:57.859] invokeRestart <- base::invokeRestart [17:25:57.859] is.null <- base::is.null [17:25:57.859] muffled <- FALSE [17:25:57.859] if (inherits(cond, "message")) { [17:25:57.859] muffled <- grepl(pattern, "muffleMessage") [17:25:57.859] if (muffled) [17:25:57.859] invokeRestart("muffleMessage") [17:25:57.859] } [17:25:57.859] else if (inherits(cond, "warning")) { [17:25:57.859] muffled <- grepl(pattern, "muffleWarning") [17:25:57.859] if (muffled) [17:25:57.859] invokeRestart("muffleWarning") [17:25:57.859] } [17:25:57.859] else if (inherits(cond, "condition")) { [17:25:57.859] if (!is.null(pattern)) { [17:25:57.859] computeRestarts <- base::computeRestarts [17:25:57.859] grepl <- base::grepl [17:25:57.859] restarts <- computeRestarts(cond) [17:25:57.859] for (restart in restarts) { [17:25:57.859] name <- restart$name [17:25:57.859] if (is.null(name)) [17:25:57.859] next [17:25:57.859] if (!grepl(pattern, name)) [17:25:57.859] next [17:25:57.859] invokeRestart(restart) [17:25:57.859] muffled <- TRUE [17:25:57.859] break [17:25:57.859] } [17:25:57.859] } [17:25:57.859] } [17:25:57.859] invisible(muffled) [17:25:57.859] } [17:25:57.859] muffleCondition(cond, pattern = "^muffle") [17:25:57.859] } [17:25:57.859] } [17:25:57.859] } [17:25:57.859] })) [17:25:57.859] }, error = function(ex) { [17:25:57.859] base::structure(base::list(value = NULL, visible = NULL, [17:25:57.859] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:25:57.859] ...future.rng), started = ...future.startTime, [17:25:57.859] finished = Sys.time(), session_uuid = NA_character_, [17:25:57.859] version = "1.8"), class = "FutureResult") [17:25:57.859] }, finally = { [17:25:57.859] if (!identical(...future.workdir, getwd())) [17:25:57.859] setwd(...future.workdir) [17:25:57.859] { [17:25:57.859] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:25:57.859] ...future.oldOptions$nwarnings <- NULL [17:25:57.859] } [17:25:57.859] base::options(...future.oldOptions) [17:25:57.859] if (.Platform$OS.type == "windows") { [17:25:57.859] old_names <- names(...future.oldEnvVars) [17:25:57.859] envs <- base::Sys.getenv() [17:25:57.859] names <- names(envs) [17:25:57.859] common <- intersect(names, old_names) [17:25:57.859] added <- setdiff(names, old_names) [17:25:57.859] removed <- setdiff(old_names, names) [17:25:57.859] changed <- common[...future.oldEnvVars[common] != [17:25:57.859] envs[common]] [17:25:57.859] NAMES <- toupper(changed) [17:25:57.859] args <- list() [17:25:57.859] for (kk in seq_along(NAMES)) { [17:25:57.859] name <- changed[[kk]] [17:25:57.859] NAME <- NAMES[[kk]] [17:25:57.859] if (name != NAME && is.element(NAME, old_names)) [17:25:57.859] next [17:25:57.859] args[[name]] <- ...future.oldEnvVars[[name]] [17:25:57.859] } [17:25:57.859] NAMES <- toupper(added) [17:25:57.859] for (kk in seq_along(NAMES)) { [17:25:57.859] name <- added[[kk]] [17:25:57.859] NAME <- NAMES[[kk]] [17:25:57.859] if (name != NAME && is.element(NAME, old_names)) [17:25:57.859] next [17:25:57.859] args[[name]] <- "" [17:25:57.859] } [17:25:57.859] NAMES <- toupper(removed) [17:25:57.859] for (kk in seq_along(NAMES)) { [17:25:57.859] name <- removed[[kk]] [17:25:57.859] NAME <- NAMES[[kk]] [17:25:57.859] if (name != NAME && is.element(NAME, old_names)) [17:25:57.859] next [17:25:57.859] args[[name]] <- ...future.oldEnvVars[[name]] [17:25:57.859] } [17:25:57.859] if (length(args) > 0) [17:25:57.859] base::do.call(base::Sys.setenv, args = args) [17:25:57.859] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:25:57.859] } [17:25:57.859] else { [17:25:57.859] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:25:57.859] } [17:25:57.859] { [17:25:57.859] if (base::length(...future.futureOptionsAdded) > [17:25:57.859] 0L) { [17:25:57.859] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:25:57.859] base::names(opts) <- ...future.futureOptionsAdded [17:25:57.859] base::options(opts) [17:25:57.859] } [17:25:57.859] { [17:25:57.859] { [17:25:57.859] base::options(mc.cores = ...future.mc.cores.old) [17:25:57.859] NULL [17:25:57.859] } [17:25:57.859] options(future.plan = NULL) [17:25:57.859] if (is.na(NA_character_)) [17:25:57.859] Sys.unsetenv("R_FUTURE_PLAN") [17:25:57.859] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:25:57.859] future::plan(...future.strategy.old, .cleanup = FALSE, [17:25:57.859] .init = FALSE) [17:25:57.859] } [17:25:57.859] } [17:25:57.859] } [17:25:57.859] }) [17:25:57.859] if (TRUE) { [17:25:57.859] base::sink(type = "output", split = FALSE) [17:25:57.859] if (TRUE) { [17:25:57.859] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:25:57.859] } [17:25:57.859] else { [17:25:57.859] ...future.result["stdout"] <- base::list(NULL) [17:25:57.859] } [17:25:57.859] base::close(...future.stdout) [17:25:57.859] ...future.stdout <- NULL [17:25:57.859] } [17:25:57.859] ...future.result$conditions <- ...future.conditions [17:25:57.859] ...future.result$finished <- base::Sys.time() [17:25:57.859] ...future.result [17:25:57.859] } [17:25:57.864] MultisessionFuture started [17:25:57.865] result() for ClusterFuture ... [17:25:57.865] receiveMessageFromWorker() for ClusterFuture ... [17:25:57.865] - Validating connection of MultisessionFuture [17:25:57.879] - received message: FutureResult [17:25:57.880] - Received FutureResult [17:25:57.880] - Erased future from FutureRegistry [17:25:57.880] result() for ClusterFuture ... [17:25:57.880] - result already collected: FutureResult [17:25:57.880] result() for ClusterFuture ... done [17:25:57.880] receiveMessageFromWorker() for ClusterFuture ... done [17:25:57.881] result() for ClusterFuture ... done [17:25:57.881] result() for ClusterFuture ... [17:25:57.881] - result already collected: FutureResult [17:25:57.881] result() for ClusterFuture ... done [1] 42 [17:25:57.881] getGlobalsAndPackages() ... [17:25:57.882] Searching for globals... [17:25:57.883] - globals found: [1] '{' [17:25:57.883] Searching for globals ... DONE [17:25:57.883] Resolving globals: FALSE [17:25:57.883] [17:25:57.884] [17:25:57.884] getGlobalsAndPackages() ... DONE SequentialFuture: Label: '' Expression: { 42L } Lazy evaluation: FALSE Asynchronous evaluation: FALSE Local evaluation: TRUE Environment: R_GlobalEnv Capture standard output: TRUE Capture condition classes: 'condition' (excluding 'nothing') Globals: Packages: L'Ecuyer-CMRG RNG seed: (seed = FALSE) Resolved: FALSE Value: Conditions captured: Early signaling: FALSE Owner process: e72f6e13-1baa-285f-b04b-517a698c9677 Class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [17:25:57.885] Packages needed by the future expression (n = 0): [17:25:57.885] Packages needed by future strategies (n = 0): [17:25:57.885] { [17:25:57.885] { [17:25:57.885] { [17:25:57.885] ...future.startTime <- base::Sys.time() [17:25:57.885] { [17:25:57.885] { [17:25:57.885] { [17:25:57.885] base::local({ [17:25:57.885] has_future <- base::requireNamespace("future", [17:25:57.885] quietly = TRUE) [17:25:57.885] if (has_future) { [17:25:57.885] ns <- base::getNamespace("future") [17:25:57.885] version <- ns[[".package"]][["version"]] [17:25:57.885] if (is.null(version)) [17:25:57.885] version <- utils::packageVersion("future") [17:25:57.885] } [17:25:57.885] else { [17:25:57.885] version <- NULL [17:25:57.885] } [17:25:57.885] if (!has_future || version < "1.8.0") { [17:25:57.885] info <- base::c(r_version = base::gsub("R version ", [17:25:57.885] "", base::R.version$version.string), [17:25:57.885] platform = base::sprintf("%s (%s-bit)", [17:25:57.885] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:25:57.885] os = base::paste(base::Sys.info()[base::c("sysname", [17:25:57.885] "release", "version")], collapse = " "), [17:25:57.885] hostname = base::Sys.info()[["nodename"]]) [17:25:57.885] info <- base::sprintf("%s: %s", base::names(info), [17:25:57.885] info) [17:25:57.885] info <- base::paste(info, collapse = "; ") [17:25:57.885] if (!has_future) { [17:25:57.885] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:25:57.885] info) [17:25:57.885] } [17:25:57.885] else { [17:25:57.885] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:25:57.885] info, version) [17:25:57.885] } [17:25:57.885] base::stop(msg) [17:25:57.885] } [17:25:57.885] }) [17:25:57.885] } [17:25:57.885] ...future.strategy.old <- future::plan("list") [17:25:57.885] options(future.plan = NULL) [17:25:57.885] Sys.unsetenv("R_FUTURE_PLAN") [17:25:57.885] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:25:57.885] } [17:25:57.885] ...future.workdir <- getwd() [17:25:57.885] } [17:25:57.885] ...future.oldOptions <- base::as.list(base::.Options) [17:25:57.885] ...future.oldEnvVars <- base::Sys.getenv() [17:25:57.885] } [17:25:57.885] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:25:57.885] future.globals.maxSize = NULL, future.globals.method = NULL, [17:25:57.885] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:25:57.885] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:25:57.885] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:25:57.885] future.stdout.windows.reencode = NULL, width = 80L) [17:25:57.885] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:25:57.885] base::names(...future.oldOptions)) [17:25:57.885] } [17:25:57.885] if (FALSE) { [17:25:57.885] } [17:25:57.885] else { [17:25:57.885] if (TRUE) { [17:25:57.885] ...future.stdout <- base::rawConnection(base::raw(0L), [17:25:57.885] open = "w") [17:25:57.885] } [17:25:57.885] else { [17:25:57.885] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:25:57.885] windows = "NUL", "/dev/null"), open = "w") [17:25:57.885] } [17:25:57.885] base::sink(...future.stdout, type = "output", split = FALSE) [17:25:57.885] base::on.exit(if (!base::is.null(...future.stdout)) { [17:25:57.885] base::sink(type = "output", split = FALSE) [17:25:57.885] base::close(...future.stdout) [17:25:57.885] }, add = TRUE) [17:25:57.885] } [17:25:57.885] ...future.frame <- base::sys.nframe() [17:25:57.885] ...future.conditions <- base::list() [17:25:57.885] ...future.rng <- base::globalenv()$.Random.seed [17:25:57.885] if (FALSE) { [17:25:57.885] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:25:57.885] "...future.value", "...future.globalenv.names", ".Random.seed") [17:25:57.885] } [17:25:57.885] ...future.result <- base::tryCatch({ [17:25:57.885] base::withCallingHandlers({ [17:25:57.885] ...future.value <- base::withVisible(base::local({ [17:25:57.885] 42L [17:25:57.885] })) [17:25:57.885] future::FutureResult(value = ...future.value$value, [17:25:57.885] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:25:57.885] ...future.rng), globalenv = if (FALSE) [17:25:57.885] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:25:57.885] ...future.globalenv.names)) [17:25:57.885] else NULL, started = ...future.startTime, version = "1.8") [17:25:57.885] }, condition = base::local({ [17:25:57.885] c <- base::c [17:25:57.885] inherits <- base::inherits [17:25:57.885] invokeRestart <- base::invokeRestart [17:25:57.885] length <- base::length [17:25:57.885] list <- base::list [17:25:57.885] seq.int <- base::seq.int [17:25:57.885] signalCondition <- base::signalCondition [17:25:57.885] sys.calls <- base::sys.calls [17:25:57.885] `[[` <- base::`[[` [17:25:57.885] `+` <- base::`+` [17:25:57.885] `<<-` <- base::`<<-` [17:25:57.885] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:25:57.885] calls[seq.int(from = from + 12L, to = length(calls) - [17:25:57.885] 3L)] [17:25:57.885] } [17:25:57.885] function(cond) { [17:25:57.885] is_error <- inherits(cond, "error") [17:25:57.885] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:25:57.885] NULL) [17:25:57.885] if (is_error) { [17:25:57.885] sessionInformation <- function() { [17:25:57.885] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:25:57.885] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:25:57.885] search = base::search(), system = base::Sys.info()) [17:25:57.885] } [17:25:57.885] ...future.conditions[[length(...future.conditions) + [17:25:57.885] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:25:57.885] cond$call), session = sessionInformation(), [17:25:57.885] timestamp = base::Sys.time(), signaled = 0L) [17:25:57.885] signalCondition(cond) [17:25:57.885] } [17:25:57.885] else if (!ignore && TRUE && inherits(cond, c("condition", [17:25:57.885] "immediateCondition"))) { [17:25:57.885] signal <- TRUE && inherits(cond, "immediateCondition") [17:25:57.885] ...future.conditions[[length(...future.conditions) + [17:25:57.885] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:25:57.885] if (TRUE && !signal) { [17:25:57.885] muffleCondition <- function (cond, pattern = "^muffle") [17:25:57.885] { [17:25:57.885] inherits <- base::inherits [17:25:57.885] invokeRestart <- base::invokeRestart [17:25:57.885] is.null <- base::is.null [17:25:57.885] muffled <- FALSE [17:25:57.885] if (inherits(cond, "message")) { [17:25:57.885] muffled <- grepl(pattern, "muffleMessage") [17:25:57.885] if (muffled) [17:25:57.885] invokeRestart("muffleMessage") [17:25:57.885] } [17:25:57.885] else if (inherits(cond, "warning")) { [17:25:57.885] muffled <- grepl(pattern, "muffleWarning") [17:25:57.885] if (muffled) [17:25:57.885] invokeRestart("muffleWarning") [17:25:57.885] } [17:25:57.885] else if (inherits(cond, "condition")) { [17:25:57.885] if (!is.null(pattern)) { [17:25:57.885] computeRestarts <- base::computeRestarts [17:25:57.885] grepl <- base::grepl [17:25:57.885] restarts <- computeRestarts(cond) [17:25:57.885] for (restart in restarts) { [17:25:57.885] name <- restart$name [17:25:57.885] if (is.null(name)) [17:25:57.885] next [17:25:57.885] if (!grepl(pattern, name)) [17:25:57.885] next [17:25:57.885] invokeRestart(restart) [17:25:57.885] muffled <- TRUE [17:25:57.885] break [17:25:57.885] } [17:25:57.885] } [17:25:57.885] } [17:25:57.885] invisible(muffled) [17:25:57.885] } [17:25:57.885] muffleCondition(cond, pattern = "^muffle") [17:25:57.885] } [17:25:57.885] } [17:25:57.885] else { [17:25:57.885] if (TRUE) { [17:25:57.885] muffleCondition <- function (cond, pattern = "^muffle") [17:25:57.885] { [17:25:57.885] inherits <- base::inherits [17:25:57.885] invokeRestart <- base::invokeRestart [17:25:57.885] is.null <- base::is.null [17:25:57.885] muffled <- FALSE [17:25:57.885] if (inherits(cond, "message")) { [17:25:57.885] muffled <- grepl(pattern, "muffleMessage") [17:25:57.885] if (muffled) [17:25:57.885] invokeRestart("muffleMessage") [17:25:57.885] } [17:25:57.885] else if (inherits(cond, "warning")) { [17:25:57.885] muffled <- grepl(pattern, "muffleWarning") [17:25:57.885] if (muffled) [17:25:57.885] invokeRestart("muffleWarning") [17:25:57.885] } [17:25:57.885] else if (inherits(cond, "condition")) { [17:25:57.885] if (!is.null(pattern)) { [17:25:57.885] computeRestarts <- base::computeRestarts [17:25:57.885] grepl <- base::grepl [17:25:57.885] restarts <- computeRestarts(cond) [17:25:57.885] for (restart in restarts) { [17:25:57.885] name <- restart$name [17:25:57.885] if (is.null(name)) [17:25:57.885] next [17:25:57.885] if (!grepl(pattern, name)) [17:25:57.885] next [17:25:57.885] invokeRestart(restart) [17:25:57.885] muffled <- TRUE [17:25:57.885] break [17:25:57.885] } [17:25:57.885] } [17:25:57.885] } [17:25:57.885] invisible(muffled) [17:25:57.885] } [17:25:57.885] muffleCondition(cond, pattern = "^muffle") [17:25:57.885] } [17:25:57.885] } [17:25:57.885] } [17:25:57.885] })) [17:25:57.885] }, error = function(ex) { [17:25:57.885] base::structure(base::list(value = NULL, visible = NULL, [17:25:57.885] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:25:57.885] ...future.rng), started = ...future.startTime, [17:25:57.885] finished = Sys.time(), session_uuid = NA_character_, [17:25:57.885] version = "1.8"), class = "FutureResult") [17:25:57.885] }, finally = { [17:25:57.885] if (!identical(...future.workdir, getwd())) [17:25:57.885] setwd(...future.workdir) [17:25:57.885] { [17:25:57.885] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:25:57.885] ...future.oldOptions$nwarnings <- NULL [17:25:57.885] } [17:25:57.885] base::options(...future.oldOptions) [17:25:57.885] if (.Platform$OS.type == "windows") { [17:25:57.885] old_names <- names(...future.oldEnvVars) [17:25:57.885] envs <- base::Sys.getenv() [17:25:57.885] names <- names(envs) [17:25:57.885] common <- intersect(names, old_names) [17:25:57.885] added <- setdiff(names, old_names) [17:25:57.885] removed <- setdiff(old_names, names) [17:25:57.885] changed <- common[...future.oldEnvVars[common] != [17:25:57.885] envs[common]] [17:25:57.885] NAMES <- toupper(changed) [17:25:57.885] args <- list() [17:25:57.885] for (kk in seq_along(NAMES)) { [17:25:57.885] name <- changed[[kk]] [17:25:57.885] NAME <- NAMES[[kk]] [17:25:57.885] if (name != NAME && is.element(NAME, old_names)) [17:25:57.885] next [17:25:57.885] args[[name]] <- ...future.oldEnvVars[[name]] [17:25:57.885] } [17:25:57.885] NAMES <- toupper(added) [17:25:57.885] for (kk in seq_along(NAMES)) { [17:25:57.885] name <- added[[kk]] [17:25:57.885] NAME <- NAMES[[kk]] [17:25:57.885] if (name != NAME && is.element(NAME, old_names)) [17:25:57.885] next [17:25:57.885] args[[name]] <- "" [17:25:57.885] } [17:25:57.885] NAMES <- toupper(removed) [17:25:57.885] for (kk in seq_along(NAMES)) { [17:25:57.885] name <- removed[[kk]] [17:25:57.885] NAME <- NAMES[[kk]] [17:25:57.885] if (name != NAME && is.element(NAME, old_names)) [17:25:57.885] next [17:25:57.885] args[[name]] <- ...future.oldEnvVars[[name]] [17:25:57.885] } [17:25:57.885] if (length(args) > 0) [17:25:57.885] base::do.call(base::Sys.setenv, args = args) [17:25:57.885] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:25:57.885] } [17:25:57.885] else { [17:25:57.885] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:25:57.885] } [17:25:57.885] { [17:25:57.885] if (base::length(...future.futureOptionsAdded) > [17:25:57.885] 0L) { [17:25:57.885] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:25:57.885] base::names(opts) <- ...future.futureOptionsAdded [17:25:57.885] base::options(opts) [17:25:57.885] } [17:25:57.885] { [17:25:57.885] { [17:25:57.885] NULL [17:25:57.885] RNGkind("Mersenne-Twister") [17:25:57.885] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:25:57.885] inherits = FALSE) [17:25:57.885] } [17:25:57.885] options(future.plan = NULL) [17:25:57.885] if (is.na(NA_character_)) [17:25:57.885] Sys.unsetenv("R_FUTURE_PLAN") [17:25:57.885] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:25:57.885] future::plan(...future.strategy.old, .cleanup = FALSE, [17:25:57.885] .init = FALSE) [17:25:57.885] } [17:25:57.885] } [17:25:57.885] } [17:25:57.885] }) [17:25:57.885] if (TRUE) { [17:25:57.885] base::sink(type = "output", split = FALSE) [17:25:57.885] if (TRUE) { [17:25:57.885] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:25:57.885] } [17:25:57.885] else { [17:25:57.885] ...future.result["stdout"] <- base::list(NULL) [17:25:57.885] } [17:25:57.885] base::close(...future.stdout) [17:25:57.885] ...future.stdout <- NULL [17:25:57.885] } [17:25:57.885] ...future.result$conditions <- ...future.conditions [17:25:57.885] ...future.result$finished <- base::Sys.time() [17:25:57.885] ...future.result [17:25:57.885] } [17:25:57.890] plan(): Setting new future strategy stack: [17:25:57.890] List of future strategies: [17:25:57.890] 1. sequential: [17:25:57.890] - args: function (..., envir = parent.frame(), workers = "") [17:25:57.890] - tweaked: FALSE [17:25:57.890] - call: NULL [17:25:57.890] plan(): nbrOfWorkers() = 1 [17:25:57.892] plan(): Setting new future strategy stack: [17:25:57.892] List of future strategies: [17:25:57.892] 1. future: [17:25:57.892] - args: function (..., workers = "") [17:25:57.892] - tweaked: FALSE [17:25:57.892] - call: plan(foo) [17:25:57.893] plan(): nbrOfWorkers() = Inf [17:25:57.893] SequentialFuture started (and completed) [1] 42 [17:25:57.894] getGlobalsAndPackages() ... [17:25:57.894] Searching for globals... [17:25:57.895] - globals found: [1] '{' [17:25:57.895] Searching for globals ... DONE [17:25:57.895] Resolving globals: FALSE [17:25:57.895] [17:25:57.896] [17:25:57.896] getGlobalsAndPackages() ... DONE [17:25:57.896] Packages needed by the future expression (n = 0): [17:25:57.896] Packages needed by future strategies (n = 0): [17:25:57.897] { [17:25:57.897] { [17:25:57.897] { [17:25:57.897] ...future.startTime <- base::Sys.time() [17:25:57.897] { [17:25:57.897] { [17:25:57.897] { [17:25:57.897] base::local({ [17:25:57.897] has_future <- base::requireNamespace("future", [17:25:57.897] quietly = TRUE) [17:25:57.897] if (has_future) { [17:25:57.897] ns <- base::getNamespace("future") [17:25:57.897] version <- ns[[".package"]][["version"]] [17:25:57.897] if (is.null(version)) [17:25:57.897] version <- utils::packageVersion("future") [17:25:57.897] } [17:25:57.897] else { [17:25:57.897] version <- NULL [17:25:57.897] } [17:25:57.897] if (!has_future || version < "1.8.0") { [17:25:57.897] info <- base::c(r_version = base::gsub("R version ", [17:25:57.897] "", base::R.version$version.string), [17:25:57.897] platform = base::sprintf("%s (%s-bit)", [17:25:57.897] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [17:25:57.897] os = base::paste(base::Sys.info()[base::c("sysname", [17:25:57.897] "release", "version")], collapse = " "), [17:25:57.897] hostname = base::Sys.info()[["nodename"]]) [17:25:57.897] info <- base::sprintf("%s: %s", base::names(info), [17:25:57.897] info) [17:25:57.897] info <- base::paste(info, collapse = "; ") [17:25:57.897] if (!has_future) { [17:25:57.897] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [17:25:57.897] info) [17:25:57.897] } [17:25:57.897] else { [17:25:57.897] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [17:25:57.897] info, version) [17:25:57.897] } [17:25:57.897] base::stop(msg) [17:25:57.897] } [17:25:57.897] }) [17:25:57.897] } [17:25:57.897] ...future.strategy.old <- future::plan("list") [17:25:57.897] options(future.plan = NULL) [17:25:57.897] Sys.unsetenv("R_FUTURE_PLAN") [17:25:57.897] future::plan("default", .cleanup = FALSE, .init = FALSE) [17:25:57.897] } [17:25:57.897] ...future.workdir <- getwd() [17:25:57.897] } [17:25:57.897] ...future.oldOptions <- base::as.list(base::.Options) [17:25:57.897] ...future.oldEnvVars <- base::Sys.getenv() [17:25:57.897] } [17:25:57.897] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [17:25:57.897] future.globals.maxSize = NULL, future.globals.method = NULL, [17:25:57.897] future.globals.onMissing = NULL, future.globals.onReference = NULL, [17:25:57.897] future.globals.resolve = NULL, future.resolve.recursive = NULL, [17:25:57.897] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [17:25:57.897] future.stdout.windows.reencode = NULL, width = 80L) [17:25:57.897] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [17:25:57.897] base::names(...future.oldOptions)) [17:25:57.897] } [17:25:57.897] if (FALSE) { [17:25:57.897] } [17:25:57.897] else { [17:25:57.897] if (TRUE) { [17:25:57.897] ...future.stdout <- base::rawConnection(base::raw(0L), [17:25:57.897] open = "w") [17:25:57.897] } [17:25:57.897] else { [17:25:57.897] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [17:25:57.897] windows = "NUL", "/dev/null"), open = "w") [17:25:57.897] } [17:25:57.897] base::sink(...future.stdout, type = "output", split = FALSE) [17:25:57.897] base::on.exit(if (!base::is.null(...future.stdout)) { [17:25:57.897] base::sink(type = "output", split = FALSE) [17:25:57.897] base::close(...future.stdout) [17:25:57.897] }, add = TRUE) [17:25:57.897] } [17:25:57.897] ...future.frame <- base::sys.nframe() [17:25:57.897] ...future.conditions <- base::list() [17:25:57.897] ...future.rng <- base::globalenv()$.Random.seed [17:25:57.897] if (FALSE) { [17:25:57.897] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [17:25:57.897] "...future.value", "...future.globalenv.names", ".Random.seed") [17:25:57.897] } [17:25:57.897] ...future.result <- base::tryCatch({ [17:25:57.897] base::withCallingHandlers({ [17:25:57.897] ...future.value <- base::withVisible(base::local({ [17:25:57.897] 42L [17:25:57.897] })) [17:25:57.897] future::FutureResult(value = ...future.value$value, [17:25:57.897] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [17:25:57.897] ...future.rng), globalenv = if (FALSE) [17:25:57.897] list(added = base::setdiff(base::names(base::.GlobalEnv), [17:25:57.897] ...future.globalenv.names)) [17:25:57.897] else NULL, started = ...future.startTime, version = "1.8") [17:25:57.897] }, condition = base::local({ [17:25:57.897] c <- base::c [17:25:57.897] inherits <- base::inherits [17:25:57.897] invokeRestart <- base::invokeRestart [17:25:57.897] length <- base::length [17:25:57.897] list <- base::list [17:25:57.897] seq.int <- base::seq.int [17:25:57.897] signalCondition <- base::signalCondition [17:25:57.897] sys.calls <- base::sys.calls [17:25:57.897] `[[` <- base::`[[` [17:25:57.897] `+` <- base::`+` [17:25:57.897] `<<-` <- base::`<<-` [17:25:57.897] sysCalls <- function(calls = sys.calls(), from = 1L) { [17:25:57.897] calls[seq.int(from = from + 12L, to = length(calls) - [17:25:57.897] 3L)] [17:25:57.897] } [17:25:57.897] function(cond) { [17:25:57.897] is_error <- inherits(cond, "error") [17:25:57.897] ignore <- !is_error && !is.null(NULL) && inherits(cond, [17:25:57.897] NULL) [17:25:57.897] if (is_error) { [17:25:57.897] sessionInformation <- function() { [17:25:57.897] list(r = base::R.Version(), locale = base::Sys.getlocale(), [17:25:57.897] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [17:25:57.897] search = base::search(), system = base::Sys.info()) [17:25:57.897] } [17:25:57.897] ...future.conditions[[length(...future.conditions) + [17:25:57.897] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [17:25:57.897] cond$call), session = sessionInformation(), [17:25:57.897] timestamp = base::Sys.time(), signaled = 0L) [17:25:57.897] signalCondition(cond) [17:25:57.897] } [17:25:57.897] else if (!ignore && TRUE && inherits(cond, c("condition", [17:25:57.897] "immediateCondition"))) { [17:25:57.897] signal <- TRUE && inherits(cond, "immediateCondition") [17:25:57.897] ...future.conditions[[length(...future.conditions) + [17:25:57.897] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [17:25:57.897] if (TRUE && !signal) { [17:25:57.897] muffleCondition <- function (cond, pattern = "^muffle") [17:25:57.897] { [17:25:57.897] inherits <- base::inherits [17:25:57.897] invokeRestart <- base::invokeRestart [17:25:57.897] is.null <- base::is.null [17:25:57.897] muffled <- FALSE [17:25:57.897] if (inherits(cond, "message")) { [17:25:57.897] muffled <- grepl(pattern, "muffleMessage") [17:25:57.897] if (muffled) [17:25:57.897] invokeRestart("muffleMessage") [17:25:57.897] } [17:25:57.897] else if (inherits(cond, "warning")) { [17:25:57.897] muffled <- grepl(pattern, "muffleWarning") [17:25:57.897] if (muffled) [17:25:57.897] invokeRestart("muffleWarning") [17:25:57.897] } [17:25:57.897] else if (inherits(cond, "condition")) { [17:25:57.897] if (!is.null(pattern)) { [17:25:57.897] computeRestarts <- base::computeRestarts [17:25:57.897] grepl <- base::grepl [17:25:57.897] restarts <- computeRestarts(cond) [17:25:57.897] for (restart in restarts) { [17:25:57.897] name <- restart$name [17:25:57.897] if (is.null(name)) [17:25:57.897] next [17:25:57.897] if (!grepl(pattern, name)) [17:25:57.897] next [17:25:57.897] invokeRestart(restart) [17:25:57.897] muffled <- TRUE [17:25:57.897] break [17:25:57.897] } [17:25:57.897] } [17:25:57.897] } [17:25:57.897] invisible(muffled) [17:25:57.897] } [17:25:57.897] muffleCondition(cond, pattern = "^muffle") [17:25:57.897] } [17:25:57.897] } [17:25:57.897] else { [17:25:57.897] if (TRUE) { [17:25:57.897] muffleCondition <- function (cond, pattern = "^muffle") [17:25:57.897] { [17:25:57.897] inherits <- base::inherits [17:25:57.897] invokeRestart <- base::invokeRestart [17:25:57.897] is.null <- base::is.null [17:25:57.897] muffled <- FALSE [17:25:57.897] if (inherits(cond, "message")) { [17:25:57.897] muffled <- grepl(pattern, "muffleMessage") [17:25:57.897] if (muffled) [17:25:57.897] invokeRestart("muffleMessage") [17:25:57.897] } [17:25:57.897] else if (inherits(cond, "warning")) { [17:25:57.897] muffled <- grepl(pattern, "muffleWarning") [17:25:57.897] if (muffled) [17:25:57.897] invokeRestart("muffleWarning") [17:25:57.897] } [17:25:57.897] else if (inherits(cond, "condition")) { [17:25:57.897] if (!is.null(pattern)) { [17:25:57.897] computeRestarts <- base::computeRestarts [17:25:57.897] grepl <- base::grepl [17:25:57.897] restarts <- computeRestarts(cond) [17:25:57.897] for (restart in restarts) { [17:25:57.897] name <- restart$name [17:25:57.897] if (is.null(name)) [17:25:57.897] next [17:25:57.897] if (!grepl(pattern, name)) [17:25:57.897] next [17:25:57.897] invokeRestart(restart) [17:25:57.897] muffled <- TRUE [17:25:57.897] break [17:25:57.897] } [17:25:57.897] } [17:25:57.897] } [17:25:57.897] invisible(muffled) [17:25:57.897] } [17:25:57.897] muffleCondition(cond, pattern = "^muffle") [17:25:57.897] } [17:25:57.897] } [17:25:57.897] } [17:25:57.897] })) [17:25:57.897] }, error = function(ex) { [17:25:57.897] base::structure(base::list(value = NULL, visible = NULL, [17:25:57.897] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [17:25:57.897] ...future.rng), started = ...future.startTime, [17:25:57.897] finished = Sys.time(), session_uuid = NA_character_, [17:25:57.897] version = "1.8"), class = "FutureResult") [17:25:57.897] }, finally = { [17:25:57.897] if (!identical(...future.workdir, getwd())) [17:25:57.897] setwd(...future.workdir) [17:25:57.897] { [17:25:57.897] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [17:25:57.897] ...future.oldOptions$nwarnings <- NULL [17:25:57.897] } [17:25:57.897] base::options(...future.oldOptions) [17:25:57.897] if (.Platform$OS.type == "windows") { [17:25:57.897] old_names <- names(...future.oldEnvVars) [17:25:57.897] envs <- base::Sys.getenv() [17:25:57.897] names <- names(envs) [17:25:57.897] common <- intersect(names, old_names) [17:25:57.897] added <- setdiff(names, old_names) [17:25:57.897] removed <- setdiff(old_names, names) [17:25:57.897] changed <- common[...future.oldEnvVars[common] != [17:25:57.897] envs[common]] [17:25:57.897] NAMES <- toupper(changed) [17:25:57.897] args <- list() [17:25:57.897] for (kk in seq_along(NAMES)) { [17:25:57.897] name <- changed[[kk]] [17:25:57.897] NAME <- NAMES[[kk]] [17:25:57.897] if (name != NAME && is.element(NAME, old_names)) [17:25:57.897] next [17:25:57.897] args[[name]] <- ...future.oldEnvVars[[name]] [17:25:57.897] } [17:25:57.897] NAMES <- toupper(added) [17:25:57.897] for (kk in seq_along(NAMES)) { [17:25:57.897] name <- added[[kk]] [17:25:57.897] NAME <- NAMES[[kk]] [17:25:57.897] if (name != NAME && is.element(NAME, old_names)) [17:25:57.897] next [17:25:57.897] args[[name]] <- "" [17:25:57.897] } [17:25:57.897] NAMES <- toupper(removed) [17:25:57.897] for (kk in seq_along(NAMES)) { [17:25:57.897] name <- removed[[kk]] [17:25:57.897] NAME <- NAMES[[kk]] [17:25:57.897] if (name != NAME && is.element(NAME, old_names)) [17:25:57.897] next [17:25:57.897] args[[name]] <- ...future.oldEnvVars[[name]] [17:25:57.897] } [17:25:57.897] if (length(args) > 0) [17:25:57.897] base::do.call(base::Sys.setenv, args = args) [17:25:57.897] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [17:25:57.897] } [17:25:57.897] else { [17:25:57.897] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [17:25:57.897] } [17:25:57.897] { [17:25:57.897] if (base::length(...future.futureOptionsAdded) > [17:25:57.897] 0L) { [17:25:57.897] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [17:25:57.897] base::names(opts) <- ...future.futureOptionsAdded [17:25:57.897] base::options(opts) [17:25:57.897] } [17:25:57.897] { [17:25:57.897] { [17:25:57.897] NULL [17:25:57.897] RNGkind("Mersenne-Twister") [17:25:57.897] base::rm(list = ".Random.seed", envir = base::globalenv(), [17:25:57.897] inherits = FALSE) [17:25:57.897] } [17:25:57.897] options(future.plan = NULL) [17:25:57.897] if (is.na(NA_character_)) [17:25:57.897] Sys.unsetenv("R_FUTURE_PLAN") [17:25:57.897] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [17:25:57.897] future::plan(...future.strategy.old, .cleanup = FALSE, [17:25:57.897] .init = FALSE) [17:25:57.897] } [17:25:57.897] } [17:25:57.897] } [17:25:57.897] }) [17:25:57.897] if (TRUE) { [17:25:57.897] base::sink(type = "output", split = FALSE) [17:25:57.897] if (TRUE) { [17:25:57.897] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [17:25:57.897] } [17:25:57.897] else { [17:25:57.897] ...future.result["stdout"] <- base::list(NULL) [17:25:57.897] } [17:25:57.897] base::close(...future.stdout) [17:25:57.897] ...future.stdout <- NULL [17:25:57.897] } [17:25:57.897] ...future.result$conditions <- ...future.conditions [17:25:57.897] ...future.result$finished <- base::Sys.time() [17:25:57.897] ...future.result [17:25:57.897] } [17:25:57.901] plan(): Setting new future strategy stack: [17:25:57.901] List of future strategies: [17:25:57.901] 1. sequential: [17:25:57.901] - args: function (..., envir = parent.frame(), workers = "") [17:25:57.901] - tweaked: FALSE [17:25:57.901] - call: NULL [17:25:57.902] plan(): nbrOfWorkers() = 1 [17:25:57.903] plan(): Setting new future strategy stack: [17:25:57.903] List of future strategies: [17:25:57.903] 1. future: [17:25:57.903] - args: function (..., workers = "") [17:25:57.903] - tweaked: FALSE [17:25:57.903] - call: plan(foo) [17:25:57.904] plan(): nbrOfWorkers() = Inf [17:25:57.904] SequentialFuture started (and completed) [1] 42 > > message("*** Future class - exception ... DONE") *** Future class - exception ... DONE > > message("*** Future class ... DONE") *** Future class ... DONE > > source("incl/end.R") [17:25:57.906] plan(): Setting new future strategy stack: [17:25:57.906] List of future strategies: [17:25:57.906] 1. FutureStrategy: [17:25:57.906] - args: function (..., envir = parent.frame(), workers = "") [17:25:57.906] - tweaked: FALSE [17:25:57.906] - call: future::plan(oplan) [17:25:57.907] 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.43 0.07 1.28