R Under development (unstable) (2023-12-20 r85713 ucrt) -- "Unsuffered Consequences" Copyright (C) 2023 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > source("incl/start.R") [01:26:58.877] plan(): Setting new future strategy stack: [01:26:58.879] List of future strategies: [01:26:58.879] 1. sequential: [01:26:58.879] - args: function (..., envir = parent.frame(), workers = "") [01:26:58.879] - tweaked: FALSE [01:26:58.879] - call: future::plan("sequential") [01:26:58.900] plan(): nbrOfWorkers() = 1 > > message("*** Future class ...") *** Future class ... > > message("*** Future class - exception ...") *** Future class - exception ... > > f <- Future() [01:26:58.909] getGlobalsAndPackages() ... [01:26:58.909] [01:26:58.910] - globals: [0] [01:26:58.911] 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: cdcc3b82-64b1-3bc2-efd5-989432d2d185 Class: 'Future', 'environment' > > res <- tryCatch(value(f), error = identity) [01:26:58.913] run() for 'Future' ... [01:26:58.913] - state: 'created' [01:26:58.914] 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) [01:26:58.919] plan(): Setting new future strategy stack: [01:26:58.920] List of future strategies: [01:26:58.920] 1. future: [01:26:58.920] - args: function (..., workers = "") [01:26:58.920] - tweaked: FALSE [01:26:58.920] - call: plan(foo) [01:26:58.944] plan(): nbrOfWorkers() = Inf > f <- Future() [01:26:58.944] getGlobalsAndPackages() ... [01:26:58.945] [01:26:58.945] - globals: [0] [01:26:58.945] getGlobalsAndPackages() ... DONE > expr <- getExpression(f) [01:26:58.946] Packages needed by the future expression (n = 0): [01:26:58.946] Packages needed by future strategies (n = 0): [01:26:58.948] { [01:26:58.948] { [01:26:58.948] { [01:26:58.948] ...future.startTime <- base::Sys.time() [01:26:58.948] { [01:26:58.948] { [01:26:58.948] { [01:26:58.948] base::local({ [01:26:58.948] has_future <- base::requireNamespace("future", [01:26:58.948] quietly = TRUE) [01:26:58.948] if (has_future) { [01:26:58.948] ns <- base::getNamespace("future") [01:26:58.948] version <- ns[[".package"]][["version"]] [01:26:58.948] if (is.null(version)) [01:26:58.948] version <- utils::packageVersion("future") [01:26:58.948] } [01:26:58.948] else { [01:26:58.948] version <- NULL [01:26:58.948] } [01:26:58.948] if (!has_future || version < "1.8.0") { [01:26:58.948] info <- base::c(r_version = base::gsub("R version ", [01:26:58.948] "", base::R.version$version.string), [01:26:58.948] platform = base::sprintf("%s (%s-bit)", [01:26:58.948] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:26:58.948] os = base::paste(base::Sys.info()[base::c("sysname", [01:26:58.948] "release", "version")], collapse = " "), [01:26:58.948] hostname = base::Sys.info()[["nodename"]]) [01:26:58.948] info <- base::sprintf("%s: %s", base::names(info), [01:26:58.948] info) [01:26:58.948] info <- base::paste(info, collapse = "; ") [01:26:58.948] if (!has_future) { [01:26:58.948] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:26:58.948] info) [01:26:58.948] } [01:26:58.948] else { [01:26:58.948] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:26:58.948] info, version) [01:26:58.948] } [01:26:58.948] base::stop(msg) [01:26:58.948] } [01:26:58.948] }) [01:26:58.948] } [01:26:58.948] options(future.plan = NULL) [01:26:58.948] Sys.unsetenv("R_FUTURE_PLAN") [01:26:58.948] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:26:58.948] } [01:26:58.948] ...future.workdir <- getwd() [01:26:58.948] } [01:26:58.948] ...future.oldOptions <- base::as.list(base::.Options) [01:26:58.948] ...future.oldEnvVars <- base::Sys.getenv() [01:26:58.948] } [01:26:58.948] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:26:58.948] future.globals.maxSize = NULL, future.globals.method = NULL, [01:26:58.948] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:26:58.948] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:26:58.948] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:26:58.948] future.stdout.windows.reencode = NULL, width = 80L) [01:26:58.948] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:26:58.948] base::names(...future.oldOptions)) [01:26:58.948] } [01:26:58.948] if (FALSE) { [01:26:58.948] } [01:26:58.948] else { [01:26:58.948] if (TRUE) { [01:26:58.948] ...future.stdout <- base::rawConnection(base::raw(0L), [01:26:58.948] open = "w") [01:26:58.948] } [01:26:58.948] else { [01:26:58.948] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:26:58.948] windows = "NUL", "/dev/null"), open = "w") [01:26:58.948] } [01:26:58.948] base::sink(...future.stdout, type = "output", split = FALSE) [01:26:58.948] base::on.exit(if (!base::is.null(...future.stdout)) { [01:26:58.948] base::sink(type = "output", split = FALSE) [01:26:58.948] base::close(...future.stdout) [01:26:58.948] }, add = TRUE) [01:26:58.948] } [01:26:58.948] ...future.frame <- base::sys.nframe() [01:26:58.948] ...future.conditions <- base::list() [01:26:58.948] ...future.rng <- base::globalenv()$.Random.seed [01:26:58.948] if (FALSE) { [01:26:58.948] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:26:58.948] "...future.value", "...future.globalenv.names", ".Random.seed") [01:26:58.948] } [01:26:58.948] ...future.result <- base::tryCatch({ [01:26:58.948] base::withCallingHandlers({ [01:26:58.948] ...future.value <- base::withVisible(base::local(NULL)) [01:26:58.948] future::FutureResult(value = ...future.value$value, [01:26:58.948] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:26:58.948] ...future.rng), globalenv = if (FALSE) [01:26:58.948] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:26:58.948] ...future.globalenv.names)) [01:26:58.948] else NULL, started = ...future.startTime, version = "1.8") [01:26:58.948] }, condition = base::local({ [01:26:58.948] c <- base::c [01:26:58.948] inherits <- base::inherits [01:26:58.948] invokeRestart <- base::invokeRestart [01:26:58.948] length <- base::length [01:26:58.948] list <- base::list [01:26:58.948] seq.int <- base::seq.int [01:26:58.948] signalCondition <- base::signalCondition [01:26:58.948] sys.calls <- base::sys.calls [01:26:58.948] `[[` <- base::`[[` [01:26:58.948] `+` <- base::`+` [01:26:58.948] `<<-` <- base::`<<-` [01:26:58.948] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:26:58.948] calls[seq.int(from = from + 12L, to = length(calls) - [01:26:58.948] 3L)] [01:26:58.948] } [01:26:58.948] function(cond) { [01:26:58.948] is_error <- inherits(cond, "error") [01:26:58.948] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:26:58.948] NULL) [01:26:58.948] if (is_error) { [01:26:58.948] sessionInformation <- function() { [01:26:58.948] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:26:58.948] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:26:58.948] search = base::search(), system = base::Sys.info()) [01:26:58.948] } [01:26:58.948] ...future.conditions[[length(...future.conditions) + [01:26:58.948] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:26:58.948] cond$call), session = sessionInformation(), [01:26:58.948] timestamp = base::Sys.time(), signaled = 0L) [01:26:58.948] signalCondition(cond) [01:26:58.948] } [01:26:58.948] else if (!ignore && TRUE && inherits(cond, "condition")) { [01:26:58.948] signal <- FALSE && inherits(cond, character(0)) [01:26:58.948] ...future.conditions[[length(...future.conditions) + [01:26:58.948] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:26:58.948] if (FALSE && !signal) { [01:26:58.948] muffleCondition <- function (cond, pattern = "^muffle") [01:26:58.948] { [01:26:58.948] inherits <- base::inherits [01:26:58.948] invokeRestart <- base::invokeRestart [01:26:58.948] is.null <- base::is.null [01:26:58.948] muffled <- FALSE [01:26:58.948] if (inherits(cond, "message")) { [01:26:58.948] muffled <- grepl(pattern, "muffleMessage") [01:26:58.948] if (muffled) [01:26:58.948] invokeRestart("muffleMessage") [01:26:58.948] } [01:26:58.948] else if (inherits(cond, "warning")) { [01:26:58.948] muffled <- grepl(pattern, "muffleWarning") [01:26:58.948] if (muffled) [01:26:58.948] invokeRestart("muffleWarning") [01:26:58.948] } [01:26:58.948] else if (inherits(cond, "condition")) { [01:26:58.948] if (!is.null(pattern)) { [01:26:58.948] computeRestarts <- base::computeRestarts [01:26:58.948] grepl <- base::grepl [01:26:58.948] restarts <- computeRestarts(cond) [01:26:58.948] for (restart in restarts) { [01:26:58.948] name <- restart$name [01:26:58.948] if (is.null(name)) [01:26:58.948] next [01:26:58.948] if (!grepl(pattern, name)) [01:26:58.948] next [01:26:58.948] invokeRestart(restart) [01:26:58.948] muffled <- TRUE [01:26:58.948] break [01:26:58.948] } [01:26:58.948] } [01:26:58.948] } [01:26:58.948] invisible(muffled) [01:26:58.948] } [01:26:58.948] muffleCondition(cond, pattern = "^muffle") [01:26:58.948] } [01:26:58.948] } [01:26:58.948] else { [01:26:58.948] if (TRUE) { [01:26:58.948] muffleCondition <- function (cond, pattern = "^muffle") [01:26:58.948] { [01:26:58.948] inherits <- base::inherits [01:26:58.948] invokeRestart <- base::invokeRestart [01:26:58.948] is.null <- base::is.null [01:26:58.948] muffled <- FALSE [01:26:58.948] if (inherits(cond, "message")) { [01:26:58.948] muffled <- grepl(pattern, "muffleMessage") [01:26:58.948] if (muffled) [01:26:58.948] invokeRestart("muffleMessage") [01:26:58.948] } [01:26:58.948] else if (inherits(cond, "warning")) { [01:26:58.948] muffled <- grepl(pattern, "muffleWarning") [01:26:58.948] if (muffled) [01:26:58.948] invokeRestart("muffleWarning") [01:26:58.948] } [01:26:58.948] else if (inherits(cond, "condition")) { [01:26:58.948] if (!is.null(pattern)) { [01:26:58.948] computeRestarts <- base::computeRestarts [01:26:58.948] grepl <- base::grepl [01:26:58.948] restarts <- computeRestarts(cond) [01:26:58.948] for (restart in restarts) { [01:26:58.948] name <- restart$name [01:26:58.948] if (is.null(name)) [01:26:58.948] next [01:26:58.948] if (!grepl(pattern, name)) [01:26:58.948] next [01:26:58.948] invokeRestart(restart) [01:26:58.948] muffled <- TRUE [01:26:58.948] break [01:26:58.948] } [01:26:58.948] } [01:26:58.948] } [01:26:58.948] invisible(muffled) [01:26:58.948] } [01:26:58.948] muffleCondition(cond, pattern = "^muffle") [01:26:58.948] } [01:26:58.948] } [01:26:58.948] } [01:26:58.948] })) [01:26:58.948] }, error = function(ex) { [01:26:58.948] base::structure(base::list(value = NULL, visible = NULL, [01:26:58.948] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:26:58.948] ...future.rng), started = ...future.startTime, [01:26:58.948] finished = Sys.time(), session_uuid = NA_character_, [01:26:58.948] version = "1.8"), class = "FutureResult") [01:26:58.948] }, finally = { [01:26:58.948] if (!identical(...future.workdir, getwd())) [01:26:58.948] setwd(...future.workdir) [01:26:58.948] { [01:26:58.948] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:26:58.948] ...future.oldOptions$nwarnings <- NULL [01:26:58.948] } [01:26:58.948] base::options(...future.oldOptions) [01:26:58.948] if (.Platform$OS.type == "windows") { [01:26:58.948] old_names <- names(...future.oldEnvVars) [01:26:58.948] envs <- base::Sys.getenv() [01:26:58.948] names <- names(envs) [01:26:58.948] common <- intersect(names, old_names) [01:26:58.948] added <- setdiff(names, old_names) [01:26:58.948] removed <- setdiff(old_names, names) [01:26:58.948] changed <- common[...future.oldEnvVars[common] != [01:26:58.948] envs[common]] [01:26:58.948] NAMES <- toupper(changed) [01:26:58.948] args <- list() [01:26:58.948] for (kk in seq_along(NAMES)) { [01:26:58.948] name <- changed[[kk]] [01:26:58.948] NAME <- NAMES[[kk]] [01:26:58.948] if (name != NAME && is.element(NAME, old_names)) [01:26:58.948] next [01:26:58.948] args[[name]] <- ...future.oldEnvVars[[name]] [01:26:58.948] } [01:26:58.948] NAMES <- toupper(added) [01:26:58.948] for (kk in seq_along(NAMES)) { [01:26:58.948] name <- added[[kk]] [01:26:58.948] NAME <- NAMES[[kk]] [01:26:58.948] if (name != NAME && is.element(NAME, old_names)) [01:26:58.948] next [01:26:58.948] args[[name]] <- "" [01:26:58.948] } [01:26:58.948] NAMES <- toupper(removed) [01:26:58.948] for (kk in seq_along(NAMES)) { [01:26:58.948] name <- removed[[kk]] [01:26:58.948] NAME <- NAMES[[kk]] [01:26:58.948] if (name != NAME && is.element(NAME, old_names)) [01:26:58.948] next [01:26:58.948] args[[name]] <- ...future.oldEnvVars[[name]] [01:26:58.948] } [01:26:58.948] if (length(args) > 0) [01:26:58.948] base::do.call(base::Sys.setenv, args = args) [01:26:58.948] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:26:58.948] } [01:26:58.948] else { [01:26:58.948] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:26:58.948] } [01:26:58.948] { [01:26:58.948] if (base::length(...future.futureOptionsAdded) > [01:26:58.948] 0L) { [01:26:58.948] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:26:58.948] base::names(opts) <- ...future.futureOptionsAdded [01:26:58.948] base::options(opts) [01:26:58.948] } [01:26:58.948] { [01:26:58.948] NULL [01:26:58.948] options(future.plan = NULL) [01:26:58.948] if (is.na(NA_character_)) [01:26:58.948] Sys.unsetenv("R_FUTURE_PLAN") [01:26:58.948] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:26:58.948] future::plan(list(function (...) [01:26:58.948] { [01:26:58.948] Future(1) [01:26:58.948] }), .cleanup = FALSE, .init = FALSE) [01:26:58.948] } [01:26:58.948] } [01:26:58.948] } [01:26:58.948] }) [01:26:58.948] if (TRUE) { [01:26:58.948] base::sink(type = "output", split = FALSE) [01:26:58.948] if (TRUE) { [01:26:58.948] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:26:58.948] } [01:26:58.948] else { [01:26:58.948] ...future.result["stdout"] <- base::list(NULL) [01:26:58.948] } [01:26:58.948] base::close(...future.stdout) [01:26:58.948] ...future.stdout <- NULL [01:26:58.948] } [01:26:58.948] ...future.result$conditions <- ...future.conditions [01:26:58.948] ...future.result$finished <- base::Sys.time() [01:26:58.948] ...future.result [01:26:58.948] } > 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) } }) } 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(list(function (...) { Future(1) }), .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) + } [01:26:58.968] getGlobalsAndPackages() ... [01:26:58.969] Searching for globals... [01:26:58.973] - globals found: [1] '{' [01:26:58.974] Searching for globals ... DONE [01:26:58.974] Resolving globals: FALSE [01:26:58.975] [01:26:58.975] [01:26:58.975] 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: cdcc3b82-64b1-3bc2-efd5-989432d2d185 Class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [01:26:58.977] Packages needed by the future expression (n = 0): [01:26:58.977] Packages needed by future strategies (n = 0): [01:26:58.978] { [01:26:58.978] { [01:26:58.978] { [01:26:58.978] ...future.startTime <- base::Sys.time() [01:26:58.978] { [01:26:58.978] { [01:26:58.978] { [01:26:58.978] base::local({ [01:26:58.978] has_future <- base::requireNamespace("future", [01:26:58.978] quietly = TRUE) [01:26:58.978] if (has_future) { [01:26:58.978] ns <- base::getNamespace("future") [01:26:58.978] version <- ns[[".package"]][["version"]] [01:26:58.978] if (is.null(version)) [01:26:58.978] version <- utils::packageVersion("future") [01:26:58.978] } [01:26:58.978] else { [01:26:58.978] version <- NULL [01:26:58.978] } [01:26:58.978] if (!has_future || version < "1.8.0") { [01:26:58.978] info <- base::c(r_version = base::gsub("R version ", [01:26:58.978] "", base::R.version$version.string), [01:26:58.978] platform = base::sprintf("%s (%s-bit)", [01:26:58.978] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:26:58.978] os = base::paste(base::Sys.info()[base::c("sysname", [01:26:58.978] "release", "version")], collapse = " "), [01:26:58.978] hostname = base::Sys.info()[["nodename"]]) [01:26:58.978] info <- base::sprintf("%s: %s", base::names(info), [01:26:58.978] info) [01:26:58.978] info <- base::paste(info, collapse = "; ") [01:26:58.978] if (!has_future) { [01:26:58.978] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:26:58.978] info) [01:26:58.978] } [01:26:58.978] else { [01:26:58.978] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:26:58.978] info, version) [01:26:58.978] } [01:26:58.978] base::stop(msg) [01:26:58.978] } [01:26:58.978] }) [01:26:58.978] } [01:26:58.978] options(future.plan = NULL) [01:26:58.978] Sys.unsetenv("R_FUTURE_PLAN") [01:26:58.978] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:26:58.978] } [01:26:58.978] ...future.workdir <- getwd() [01:26:58.978] } [01:26:58.978] ...future.oldOptions <- base::as.list(base::.Options) [01:26:58.978] ...future.oldEnvVars <- base::Sys.getenv() [01:26:58.978] } [01:26:58.978] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:26:58.978] future.globals.maxSize = NULL, future.globals.method = NULL, [01:26:58.978] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:26:58.978] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:26:58.978] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:26:58.978] future.stdout.windows.reencode = NULL, width = 80L) [01:26:58.978] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:26:58.978] base::names(...future.oldOptions)) [01:26:58.978] } [01:26:58.978] if (FALSE) { [01:26:58.978] } [01:26:58.978] else { [01:26:58.978] if (TRUE) { [01:26:58.978] ...future.stdout <- base::rawConnection(base::raw(0L), [01:26:58.978] open = "w") [01:26:58.978] } [01:26:58.978] else { [01:26:58.978] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:26:58.978] windows = "NUL", "/dev/null"), open = "w") [01:26:58.978] } [01:26:58.978] base::sink(...future.stdout, type = "output", split = FALSE) [01:26:58.978] base::on.exit(if (!base::is.null(...future.stdout)) { [01:26:58.978] base::sink(type = "output", split = FALSE) [01:26:58.978] base::close(...future.stdout) [01:26:58.978] }, add = TRUE) [01:26:58.978] } [01:26:58.978] ...future.frame <- base::sys.nframe() [01:26:58.978] ...future.conditions <- base::list() [01:26:58.978] ...future.rng <- base::globalenv()$.Random.seed [01:26:58.978] if (FALSE) { [01:26:58.978] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:26:58.978] "...future.value", "...future.globalenv.names", ".Random.seed") [01:26:58.978] } [01:26:58.978] ...future.result <- base::tryCatch({ [01:26:58.978] base::withCallingHandlers({ [01:26:58.978] ...future.value <- base::withVisible(base::local({ [01:26:58.978] 42L [01:26:58.978] })) [01:26:58.978] future::FutureResult(value = ...future.value$value, [01:26:58.978] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:26:58.978] ...future.rng), globalenv = if (FALSE) [01:26:58.978] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:26:58.978] ...future.globalenv.names)) [01:26:58.978] else NULL, started = ...future.startTime, version = "1.8") [01:26:58.978] }, condition = base::local({ [01:26:58.978] c <- base::c [01:26:58.978] inherits <- base::inherits [01:26:58.978] invokeRestart <- base::invokeRestart [01:26:58.978] length <- base::length [01:26:58.978] list <- base::list [01:26:58.978] seq.int <- base::seq.int [01:26:58.978] signalCondition <- base::signalCondition [01:26:58.978] sys.calls <- base::sys.calls [01:26:58.978] `[[` <- base::`[[` [01:26:58.978] `+` <- base::`+` [01:26:58.978] `<<-` <- base::`<<-` [01:26:58.978] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:26:58.978] calls[seq.int(from = from + 12L, to = length(calls) - [01:26:58.978] 3L)] [01:26:58.978] } [01:26:58.978] function(cond) { [01:26:58.978] is_error <- inherits(cond, "error") [01:26:58.978] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:26:58.978] NULL) [01:26:58.978] if (is_error) { [01:26:58.978] sessionInformation <- function() { [01:26:58.978] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:26:58.978] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:26:58.978] search = base::search(), system = base::Sys.info()) [01:26:58.978] } [01:26:58.978] ...future.conditions[[length(...future.conditions) + [01:26:58.978] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:26:58.978] cond$call), session = sessionInformation(), [01:26:58.978] timestamp = base::Sys.time(), signaled = 0L) [01:26:58.978] signalCondition(cond) [01:26:58.978] } [01:26:58.978] else if (!ignore && TRUE && inherits(cond, c("condition", [01:26:58.978] "immediateCondition"))) { [01:26:58.978] signal <- TRUE && inherits(cond, "immediateCondition") [01:26:58.978] ...future.conditions[[length(...future.conditions) + [01:26:58.978] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:26:58.978] if (TRUE && !signal) { [01:26:58.978] muffleCondition <- function (cond, pattern = "^muffle") [01:26:58.978] { [01:26:58.978] inherits <- base::inherits [01:26:58.978] invokeRestart <- base::invokeRestart [01:26:58.978] is.null <- base::is.null [01:26:58.978] muffled <- FALSE [01:26:58.978] if (inherits(cond, "message")) { [01:26:58.978] muffled <- grepl(pattern, "muffleMessage") [01:26:58.978] if (muffled) [01:26:58.978] invokeRestart("muffleMessage") [01:26:58.978] } [01:26:58.978] else if (inherits(cond, "warning")) { [01:26:58.978] muffled <- grepl(pattern, "muffleWarning") [01:26:58.978] if (muffled) [01:26:58.978] invokeRestart("muffleWarning") [01:26:58.978] } [01:26:58.978] else if (inherits(cond, "condition")) { [01:26:58.978] if (!is.null(pattern)) { [01:26:58.978] computeRestarts <- base::computeRestarts [01:26:58.978] grepl <- base::grepl [01:26:58.978] restarts <- computeRestarts(cond) [01:26:58.978] for (restart in restarts) { [01:26:58.978] name <- restart$name [01:26:58.978] if (is.null(name)) [01:26:58.978] next [01:26:58.978] if (!grepl(pattern, name)) [01:26:58.978] next [01:26:58.978] invokeRestart(restart) [01:26:58.978] muffled <- TRUE [01:26:58.978] break [01:26:58.978] } [01:26:58.978] } [01:26:58.978] } [01:26:58.978] invisible(muffled) [01:26:58.978] } [01:26:58.978] muffleCondition(cond, pattern = "^muffle") [01:26:58.978] } [01:26:58.978] } [01:26:58.978] else { [01:26:58.978] if (TRUE) { [01:26:58.978] muffleCondition <- function (cond, pattern = "^muffle") [01:26:58.978] { [01:26:58.978] inherits <- base::inherits [01:26:58.978] invokeRestart <- base::invokeRestart [01:26:58.978] is.null <- base::is.null [01:26:58.978] muffled <- FALSE [01:26:58.978] if (inherits(cond, "message")) { [01:26:58.978] muffled <- grepl(pattern, "muffleMessage") [01:26:58.978] if (muffled) [01:26:58.978] invokeRestart("muffleMessage") [01:26:58.978] } [01:26:58.978] else if (inherits(cond, "warning")) { [01:26:58.978] muffled <- grepl(pattern, "muffleWarning") [01:26:58.978] if (muffled) [01:26:58.978] invokeRestart("muffleWarning") [01:26:58.978] } [01:26:58.978] else if (inherits(cond, "condition")) { [01:26:58.978] if (!is.null(pattern)) { [01:26:58.978] computeRestarts <- base::computeRestarts [01:26:58.978] grepl <- base::grepl [01:26:58.978] restarts <- computeRestarts(cond) [01:26:58.978] for (restart in restarts) { [01:26:58.978] name <- restart$name [01:26:58.978] if (is.null(name)) [01:26:58.978] next [01:26:58.978] if (!grepl(pattern, name)) [01:26:58.978] next [01:26:58.978] invokeRestart(restart) [01:26:58.978] muffled <- TRUE [01:26:58.978] break [01:26:58.978] } [01:26:58.978] } [01:26:58.978] } [01:26:58.978] invisible(muffled) [01:26:58.978] } [01:26:58.978] muffleCondition(cond, pattern = "^muffle") [01:26:58.978] } [01:26:58.978] } [01:26:58.978] } [01:26:58.978] })) [01:26:58.978] }, error = function(ex) { [01:26:58.978] base::structure(base::list(value = NULL, visible = NULL, [01:26:58.978] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:26:58.978] ...future.rng), started = ...future.startTime, [01:26:58.978] finished = Sys.time(), session_uuid = NA_character_, [01:26:58.978] version = "1.8"), class = "FutureResult") [01:26:58.978] }, finally = { [01:26:58.978] if (!identical(...future.workdir, getwd())) [01:26:58.978] setwd(...future.workdir) [01:26:58.978] { [01:26:58.978] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:26:58.978] ...future.oldOptions$nwarnings <- NULL [01:26:58.978] } [01:26:58.978] base::options(...future.oldOptions) [01:26:58.978] if (.Platform$OS.type == "windows") { [01:26:58.978] old_names <- names(...future.oldEnvVars) [01:26:58.978] envs <- base::Sys.getenv() [01:26:58.978] names <- names(envs) [01:26:58.978] common <- intersect(names, old_names) [01:26:58.978] added <- setdiff(names, old_names) [01:26:58.978] removed <- setdiff(old_names, names) [01:26:58.978] changed <- common[...future.oldEnvVars[common] != [01:26:58.978] envs[common]] [01:26:58.978] NAMES <- toupper(changed) [01:26:58.978] args <- list() [01:26:58.978] for (kk in seq_along(NAMES)) { [01:26:58.978] name <- changed[[kk]] [01:26:58.978] NAME <- NAMES[[kk]] [01:26:58.978] if (name != NAME && is.element(NAME, old_names)) [01:26:58.978] next [01:26:58.978] args[[name]] <- ...future.oldEnvVars[[name]] [01:26:58.978] } [01:26:58.978] NAMES <- toupper(added) [01:26:58.978] for (kk in seq_along(NAMES)) { [01:26:58.978] name <- added[[kk]] [01:26:58.978] NAME <- NAMES[[kk]] [01:26:58.978] if (name != NAME && is.element(NAME, old_names)) [01:26:58.978] next [01:26:58.978] args[[name]] <- "" [01:26:58.978] } [01:26:58.978] NAMES <- toupper(removed) [01:26:58.978] for (kk in seq_along(NAMES)) { [01:26:58.978] name <- removed[[kk]] [01:26:58.978] NAME <- NAMES[[kk]] [01:26:58.978] if (name != NAME && is.element(NAME, old_names)) [01:26:58.978] next [01:26:58.978] args[[name]] <- ...future.oldEnvVars[[name]] [01:26:58.978] } [01:26:58.978] if (length(args) > 0) [01:26:58.978] base::do.call(base::Sys.setenv, args = args) [01:26:58.978] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:26:58.978] } [01:26:58.978] else { [01:26:58.978] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:26:58.978] } [01:26:58.978] { [01:26:58.978] if (base::length(...future.futureOptionsAdded) > [01:26:58.978] 0L) { [01:26:58.978] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:26:58.978] base::names(opts) <- ...future.futureOptionsAdded [01:26:58.978] base::options(opts) [01:26:58.978] } [01:26:58.978] { [01:26:58.978] { [01:26:58.978] NULL [01:26:58.978] RNGkind("Mersenne-Twister") [01:26:58.978] base::rm(list = ".Random.seed", envir = base::globalenv(), [01:26:58.978] inherits = FALSE) [01:26:58.978] } [01:26:58.978] options(future.plan = NULL) [01:26:58.978] if (is.na(NA_character_)) [01:26:58.978] Sys.unsetenv("R_FUTURE_PLAN") [01:26:58.978] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:26:58.978] future::plan(list(function (...) [01:26:58.978] { [01:26:58.978] Future(1) [01:26:58.978] }), .cleanup = FALSE, .init = FALSE) [01:26:58.978] } [01:26:58.978] } [01:26:58.978] } [01:26:58.978] }) [01:26:58.978] if (TRUE) { [01:26:58.978] base::sink(type = "output", split = FALSE) [01:26:58.978] if (TRUE) { [01:26:58.978] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:26:58.978] } [01:26:58.978] else { [01:26:58.978] ...future.result["stdout"] <- base::list(NULL) [01:26:58.978] } [01:26:58.978] base::close(...future.stdout) [01:26:58.978] ...future.stdout <- NULL [01:26:58.978] } [01:26:58.978] ...future.result$conditions <- ...future.conditions [01:26:58.978] ...future.result$finished <- base::Sys.time() [01:26:58.978] ...future.result [01:26:58.978] } [01:26:58.982] plan(): Setting new future strategy stack: [01:26:58.982] List of future strategies: [01:26:58.982] 1. sequential: [01:26:58.982] - args: function (..., envir = parent.frame(), workers = "") [01:26:58.982] - tweaked: FALSE [01:26:58.982] - call: NULL [01:26:58.983] plan(): nbrOfWorkers() = 1 [01:26:58.986] plan(): Setting new future strategy stack: [01:26:58.986] List of future strategies: [01:26:58.986] 1. future: [01:26:58.986] - args: function (..., workers = "") [01:26:58.986] - tweaked: FALSE [01:26:58.986] - call: plan(foo) [01:26:58.987] plan(): nbrOfWorkers() = Inf [01:26:58.987] SequentialFuture started (and completed) [1] 42 [01:26:58.988] getGlobalsAndPackages() ... [01:26:58.988] Searching for globals... [01:26:58.989] - globals found: [1] '{' [01:26:58.989] Searching for globals ... DONE [01:26:58.990] Resolving globals: FALSE [01:26:58.990] [01:26:58.990] [01:26:58.990] getGlobalsAndPackages() ... DONE [01:26:58.991] Packages needed by the future expression (n = 0): [01:26:58.991] Packages needed by future strategies (n = 0): [01:26:58.991] { [01:26:58.991] { [01:26:58.991] { [01:26:58.991] ...future.startTime <- base::Sys.time() [01:26:58.991] { [01:26:58.991] { [01:26:58.991] { [01:26:58.991] base::local({ [01:26:58.991] has_future <- base::requireNamespace("future", [01:26:58.991] quietly = TRUE) [01:26:58.991] if (has_future) { [01:26:58.991] ns <- base::getNamespace("future") [01:26:58.991] version <- ns[[".package"]][["version"]] [01:26:58.991] if (is.null(version)) [01:26:58.991] version <- utils::packageVersion("future") [01:26:58.991] } [01:26:58.991] else { [01:26:58.991] version <- NULL [01:26:58.991] } [01:26:58.991] if (!has_future || version < "1.8.0") { [01:26:58.991] info <- base::c(r_version = base::gsub("R version ", [01:26:58.991] "", base::R.version$version.string), [01:26:58.991] platform = base::sprintf("%s (%s-bit)", [01:26:58.991] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:26:58.991] os = base::paste(base::Sys.info()[base::c("sysname", [01:26:58.991] "release", "version")], collapse = " "), [01:26:58.991] hostname = base::Sys.info()[["nodename"]]) [01:26:58.991] info <- base::sprintf("%s: %s", base::names(info), [01:26:58.991] info) [01:26:58.991] info <- base::paste(info, collapse = "; ") [01:26:58.991] if (!has_future) { [01:26:58.991] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:26:58.991] info) [01:26:58.991] } [01:26:58.991] else { [01:26:58.991] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:26:58.991] info, version) [01:26:58.991] } [01:26:58.991] base::stop(msg) [01:26:58.991] } [01:26:58.991] }) [01:26:58.991] } [01:26:58.991] options(future.plan = NULL) [01:26:58.991] Sys.unsetenv("R_FUTURE_PLAN") [01:26:58.991] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:26:58.991] } [01:26:58.991] ...future.workdir <- getwd() [01:26:58.991] } [01:26:58.991] ...future.oldOptions <- base::as.list(base::.Options) [01:26:58.991] ...future.oldEnvVars <- base::Sys.getenv() [01:26:58.991] } [01:26:58.991] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:26:58.991] future.globals.maxSize = NULL, future.globals.method = NULL, [01:26:58.991] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:26:58.991] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:26:58.991] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:26:58.991] future.stdout.windows.reencode = NULL, width = 80L) [01:26:58.991] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:26:58.991] base::names(...future.oldOptions)) [01:26:58.991] } [01:26:58.991] if (FALSE) { [01:26:58.991] } [01:26:58.991] else { [01:26:58.991] if (TRUE) { [01:26:58.991] ...future.stdout <- base::rawConnection(base::raw(0L), [01:26:58.991] open = "w") [01:26:58.991] } [01:26:58.991] else { [01:26:58.991] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:26:58.991] windows = "NUL", "/dev/null"), open = "w") [01:26:58.991] } [01:26:58.991] base::sink(...future.stdout, type = "output", split = FALSE) [01:26:58.991] base::on.exit(if (!base::is.null(...future.stdout)) { [01:26:58.991] base::sink(type = "output", split = FALSE) [01:26:58.991] base::close(...future.stdout) [01:26:58.991] }, add = TRUE) [01:26:58.991] } [01:26:58.991] ...future.frame <- base::sys.nframe() [01:26:58.991] ...future.conditions <- base::list() [01:26:58.991] ...future.rng <- base::globalenv()$.Random.seed [01:26:58.991] if (FALSE) { [01:26:58.991] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:26:58.991] "...future.value", "...future.globalenv.names", ".Random.seed") [01:26:58.991] } [01:26:58.991] ...future.result <- base::tryCatch({ [01:26:58.991] base::withCallingHandlers({ [01:26:58.991] ...future.value <- base::withVisible(base::local({ [01:26:58.991] 42L [01:26:58.991] })) [01:26:58.991] future::FutureResult(value = ...future.value$value, [01:26:58.991] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:26:58.991] ...future.rng), globalenv = if (FALSE) [01:26:58.991] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:26:58.991] ...future.globalenv.names)) [01:26:58.991] else NULL, started = ...future.startTime, version = "1.8") [01:26:58.991] }, condition = base::local({ [01:26:58.991] c <- base::c [01:26:58.991] inherits <- base::inherits [01:26:58.991] invokeRestart <- base::invokeRestart [01:26:58.991] length <- base::length [01:26:58.991] list <- base::list [01:26:58.991] seq.int <- base::seq.int [01:26:58.991] signalCondition <- base::signalCondition [01:26:58.991] sys.calls <- base::sys.calls [01:26:58.991] `[[` <- base::`[[` [01:26:58.991] `+` <- base::`+` [01:26:58.991] `<<-` <- base::`<<-` [01:26:58.991] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:26:58.991] calls[seq.int(from = from + 12L, to = length(calls) - [01:26:58.991] 3L)] [01:26:58.991] } [01:26:58.991] function(cond) { [01:26:58.991] is_error <- inherits(cond, "error") [01:26:58.991] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:26:58.991] NULL) [01:26:58.991] if (is_error) { [01:26:58.991] sessionInformation <- function() { [01:26:58.991] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:26:58.991] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:26:58.991] search = base::search(), system = base::Sys.info()) [01:26:58.991] } [01:26:58.991] ...future.conditions[[length(...future.conditions) + [01:26:58.991] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:26:58.991] cond$call), session = sessionInformation(), [01:26:58.991] timestamp = base::Sys.time(), signaled = 0L) [01:26:58.991] signalCondition(cond) [01:26:58.991] } [01:26:58.991] else if (!ignore && TRUE && inherits(cond, c("condition", [01:26:58.991] "immediateCondition"))) { [01:26:58.991] signal <- TRUE && inherits(cond, "immediateCondition") [01:26:58.991] ...future.conditions[[length(...future.conditions) + [01:26:58.991] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:26:58.991] if (TRUE && !signal) { [01:26:58.991] muffleCondition <- function (cond, pattern = "^muffle") [01:26:58.991] { [01:26:58.991] inherits <- base::inherits [01:26:58.991] invokeRestart <- base::invokeRestart [01:26:58.991] is.null <- base::is.null [01:26:58.991] muffled <- FALSE [01:26:58.991] if (inherits(cond, "message")) { [01:26:58.991] muffled <- grepl(pattern, "muffleMessage") [01:26:58.991] if (muffled) [01:26:58.991] invokeRestart("muffleMessage") [01:26:58.991] } [01:26:58.991] else if (inherits(cond, "warning")) { [01:26:58.991] muffled <- grepl(pattern, "muffleWarning") [01:26:58.991] if (muffled) [01:26:58.991] invokeRestart("muffleWarning") [01:26:58.991] } [01:26:58.991] else if (inherits(cond, "condition")) { [01:26:58.991] if (!is.null(pattern)) { [01:26:58.991] computeRestarts <- base::computeRestarts [01:26:58.991] grepl <- base::grepl [01:26:58.991] restarts <- computeRestarts(cond) [01:26:58.991] for (restart in restarts) { [01:26:58.991] name <- restart$name [01:26:58.991] if (is.null(name)) [01:26:58.991] next [01:26:58.991] if (!grepl(pattern, name)) [01:26:58.991] next [01:26:58.991] invokeRestart(restart) [01:26:58.991] muffled <- TRUE [01:26:58.991] break [01:26:58.991] } [01:26:58.991] } [01:26:58.991] } [01:26:58.991] invisible(muffled) [01:26:58.991] } [01:26:58.991] muffleCondition(cond, pattern = "^muffle") [01:26:58.991] } [01:26:58.991] } [01:26:58.991] else { [01:26:58.991] if (TRUE) { [01:26:58.991] muffleCondition <- function (cond, pattern = "^muffle") [01:26:58.991] { [01:26:58.991] inherits <- base::inherits [01:26:58.991] invokeRestart <- base::invokeRestart [01:26:58.991] is.null <- base::is.null [01:26:58.991] muffled <- FALSE [01:26:58.991] if (inherits(cond, "message")) { [01:26:58.991] muffled <- grepl(pattern, "muffleMessage") [01:26:58.991] if (muffled) [01:26:58.991] invokeRestart("muffleMessage") [01:26:58.991] } [01:26:58.991] else if (inherits(cond, "warning")) { [01:26:58.991] muffled <- grepl(pattern, "muffleWarning") [01:26:58.991] if (muffled) [01:26:58.991] invokeRestart("muffleWarning") [01:26:58.991] } [01:26:58.991] else if (inherits(cond, "condition")) { [01:26:58.991] if (!is.null(pattern)) { [01:26:58.991] computeRestarts <- base::computeRestarts [01:26:58.991] grepl <- base::grepl [01:26:58.991] restarts <- computeRestarts(cond) [01:26:58.991] for (restart in restarts) { [01:26:58.991] name <- restart$name [01:26:58.991] if (is.null(name)) [01:26:58.991] next [01:26:58.991] if (!grepl(pattern, name)) [01:26:58.991] next [01:26:58.991] invokeRestart(restart) [01:26:58.991] muffled <- TRUE [01:26:58.991] break [01:26:58.991] } [01:26:58.991] } [01:26:58.991] } [01:26:58.991] invisible(muffled) [01:26:58.991] } [01:26:58.991] muffleCondition(cond, pattern = "^muffle") [01:26:58.991] } [01:26:58.991] } [01:26:58.991] } [01:26:58.991] })) [01:26:58.991] }, error = function(ex) { [01:26:58.991] base::structure(base::list(value = NULL, visible = NULL, [01:26:58.991] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:26:58.991] ...future.rng), started = ...future.startTime, [01:26:58.991] finished = Sys.time(), session_uuid = NA_character_, [01:26:58.991] version = "1.8"), class = "FutureResult") [01:26:58.991] }, finally = { [01:26:58.991] if (!identical(...future.workdir, getwd())) [01:26:58.991] setwd(...future.workdir) [01:26:58.991] { [01:26:58.991] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:26:58.991] ...future.oldOptions$nwarnings <- NULL [01:26:58.991] } [01:26:58.991] base::options(...future.oldOptions) [01:26:58.991] if (.Platform$OS.type == "windows") { [01:26:58.991] old_names <- names(...future.oldEnvVars) [01:26:58.991] envs <- base::Sys.getenv() [01:26:58.991] names <- names(envs) [01:26:58.991] common <- intersect(names, old_names) [01:26:58.991] added <- setdiff(names, old_names) [01:26:58.991] removed <- setdiff(old_names, names) [01:26:58.991] changed <- common[...future.oldEnvVars[common] != [01:26:58.991] envs[common]] [01:26:58.991] NAMES <- toupper(changed) [01:26:58.991] args <- list() [01:26:58.991] for (kk in seq_along(NAMES)) { [01:26:58.991] name <- changed[[kk]] [01:26:58.991] NAME <- NAMES[[kk]] [01:26:58.991] if (name != NAME && is.element(NAME, old_names)) [01:26:58.991] next [01:26:58.991] args[[name]] <- ...future.oldEnvVars[[name]] [01:26:58.991] } [01:26:58.991] NAMES <- toupper(added) [01:26:58.991] for (kk in seq_along(NAMES)) { [01:26:58.991] name <- added[[kk]] [01:26:58.991] NAME <- NAMES[[kk]] [01:26:58.991] if (name != NAME && is.element(NAME, old_names)) [01:26:58.991] next [01:26:58.991] args[[name]] <- "" [01:26:58.991] } [01:26:58.991] NAMES <- toupper(removed) [01:26:58.991] for (kk in seq_along(NAMES)) { [01:26:58.991] name <- removed[[kk]] [01:26:58.991] NAME <- NAMES[[kk]] [01:26:58.991] if (name != NAME && is.element(NAME, old_names)) [01:26:58.991] next [01:26:58.991] args[[name]] <- ...future.oldEnvVars[[name]] [01:26:58.991] } [01:26:58.991] if (length(args) > 0) [01:26:58.991] base::do.call(base::Sys.setenv, args = args) [01:26:58.991] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:26:58.991] } [01:26:58.991] else { [01:26:58.991] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:26:58.991] } [01:26:58.991] { [01:26:58.991] if (base::length(...future.futureOptionsAdded) > [01:26:58.991] 0L) { [01:26:58.991] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:26:58.991] base::names(opts) <- ...future.futureOptionsAdded [01:26:58.991] base::options(opts) [01:26:58.991] } [01:26:58.991] { [01:26:58.991] { [01:26:58.991] NULL [01:26:58.991] RNGkind("Mersenne-Twister") [01:26:58.991] base::rm(list = ".Random.seed", envir = base::globalenv(), [01:26:58.991] inherits = FALSE) [01:26:58.991] } [01:26:58.991] options(future.plan = NULL) [01:26:58.991] if (is.na(NA_character_)) [01:26:58.991] Sys.unsetenv("R_FUTURE_PLAN") [01:26:58.991] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:26:58.991] future::plan(list(function (...) [01:26:58.991] { [01:26:58.991] Future(1) [01:26:58.991] }), .cleanup = FALSE, .init = FALSE) [01:26:58.991] } [01:26:58.991] } [01:26:58.991] } [01:26:58.991] }) [01:26:58.991] if (TRUE) { [01:26:58.991] base::sink(type = "output", split = FALSE) [01:26:58.991] if (TRUE) { [01:26:58.991] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:26:58.991] } [01:26:58.991] else { [01:26:58.991] ...future.result["stdout"] <- base::list(NULL) [01:26:58.991] } [01:26:58.991] base::close(...future.stdout) [01:26:58.991] ...future.stdout <- NULL [01:26:58.991] } [01:26:58.991] ...future.result$conditions <- ...future.conditions [01:26:58.991] ...future.result$finished <- base::Sys.time() [01:26:58.991] ...future.result [01:26:58.991] } [01:26:58.996] plan(): Setting new future strategy stack: [01:26:58.996] List of future strategies: [01:26:58.996] 1. sequential: [01:26:58.996] - args: function (..., envir = parent.frame(), workers = "") [01:26:58.996] - tweaked: FALSE [01:26:58.996] - call: NULL [01:26:58.997] plan(): nbrOfWorkers() = 1 [01:26:58.998] plan(): Setting new future strategy stack: [01:26:58.998] List of future strategies: [01:26:58.998] 1. future: [01:26:58.998] - args: function (..., workers = "") [01:26:58.998] - tweaked: FALSE [01:26:58.998] - call: plan(foo) [01:26:59.001] plan(): nbrOfWorkers() = Inf [01:26:59.002] SequentialFuture started (and completed) [1] 42 [01:26:59.005] getGlobalsAndPackages() ... [01:26:59.005] [01:26:59.005] - globals: [0] [01:26:59.005] getGlobalsAndPackages() ... DONE [01:26:59.006] [local output] makeClusterPSOCK() ... [01:26:59.084] [local output] Workers: [n = 2] 'localhost', 'localhost' [01:26:59.090] [local output] Base port: 30693 [01:26:59.090] [local output] Getting setup options for 2 cluster nodes ... [01:26:59.091] [local output] - Node 1 of 2 ... [01:26:59.091] [local output] localMachine=TRUE => revtunnel=FALSE [01:26:59.093] Testing if worker's PID can be inferred: '"D:/RCompile/recent/R/bin/x64/Rscript" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpWYukIE/worker.rank=1.parallelly.parent=11564.2d2c10f72899.pid\")), silent = TRUE)" -e "file.exists(\"D:/temp/RtmpWYukIE/worker.rank=1.parallelly.parent=11564.2d2c10f72899.pid\")"' [01:26:59.426] - Possible to infer worker's PID: TRUE [01:26:59.427] [local output] Rscript port: 30693 [01:26:59.428] [local output] - Node 2 of 2 ... [01:26:59.429] [local output] localMachine=TRUE => revtunnel=FALSE [01:26:59.430] [local output] Rscript port: 30693 [01:26:59.431] [local output] Getting setup options for 2 cluster nodes ... done [01:26:59.431] [local output] - Parallel setup requested for some PSOCK nodes [01:26:59.432] [local output] Setting up PSOCK nodes in parallel [01:26:59.433] List of 36 [01:26:59.433] $ worker : chr "localhost" [01:26:59.433] ..- attr(*, "localhost")= logi TRUE [01:26:59.433] $ master : chr "localhost" [01:26:59.433] $ port : int 30693 [01:26:59.433] $ connectTimeout : num 120 [01:26:59.433] $ timeout : num 120 [01:26:59.433] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [01:26:59.433] $ homogeneous : logi TRUE [01:26:59.433] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=Future-class.R:11564:CRANWIN3:CR"| __truncated__ [01:26:59.433] $ rscript_envs : NULL [01:26:59.433] $ rscript_libs : NULL [01:26:59.433] $ rscript_startup : NULL [01:26:59.433] $ rscript_sh : chr "cmd" [01:26:59.433] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [01:26:59.433] $ methods : logi TRUE [01:26:59.433] $ socketOptions : chr "no-delay" [01:26:59.433] $ useXDR : logi FALSE [01:26:59.433] $ outfile : chr "/dev/null" [01:26:59.433] $ renice : int NA [01:26:59.433] $ rshcmd : NULL [01:26:59.433] $ user : chr(0) [01:26:59.433] $ revtunnel : logi FALSE [01:26:59.433] $ rshlogfile : NULL [01:26:59.433] $ rshopts : chr(0) [01:26:59.433] $ rank : int 1 [01:26:59.433] $ manual : logi FALSE [01:26:59.433] $ dryrun : logi FALSE [01:26:59.433] $ quiet : logi FALSE [01:26:59.433] $ setup_strategy : chr "parallel" [01:26:59.433] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [01:26:59.433] $ pidfile : chr "D:/temp/RtmpWYukIE/worker.rank=1.parallelly.parent=11564.2d2c10f72899.pid" [01:26:59.433] $ rshcmd_label : NULL [01:26:59.433] $ rsh_call : NULL [01:26:59.433] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [01:26:59.433] $ localMachine : logi TRUE [01:26:59.433] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [01:26:59.433] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [01:26:59.433] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [01:26:59.433] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [01:26:59.433] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [01:26:59.433] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [01:26:59.433] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [01:26:59.433] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [01:26:59.433] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [01:26:59.433] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [01:26:59.433] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [01:26:59.433] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [01:26:59.433] "parallel"), action = c("launch", "options"), verbose = FALSE) [01:26:59.433] $ arguments :List of 28 [01:26:59.433] ..$ worker : chr "localhost" [01:26:59.433] ..$ master : NULL [01:26:59.433] ..$ port : int 30693 [01:26:59.433] ..$ connectTimeout : num 120 [01:26:59.433] ..$ timeout : num 120 [01:26:59.433] ..$ rscript : NULL [01:26:59.433] ..$ homogeneous : NULL [01:26:59.433] ..$ rscript_args : NULL [01:26:59.433] ..$ rscript_envs : NULL [01:26:59.433] ..$ rscript_libs : NULL [01:26:59.433] ..$ rscript_startup : NULL [01:26:59.433] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [01:26:59.433] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [01:26:59.433] ..$ methods : logi TRUE [01:26:59.433] ..$ socketOptions : chr "no-delay" [01:26:59.433] ..$ useXDR : logi FALSE [01:26:59.433] ..$ outfile : chr "/dev/null" [01:26:59.433] ..$ renice : int NA [01:26:59.433] ..$ rshcmd : NULL [01:26:59.433] ..$ user : NULL [01:26:59.433] ..$ revtunnel : logi NA [01:26:59.433] ..$ rshlogfile : NULL [01:26:59.433] ..$ rshopts : NULL [01:26:59.433] ..$ rank : int 1 [01:26:59.433] ..$ manual : logi FALSE [01:26:59.433] ..$ dryrun : logi FALSE [01:26:59.433] ..$ quiet : logi FALSE [01:26:59.433] ..$ setup_strategy : chr "parallel" [01:26:59.433] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [01:26:59.465] [local output] System call to launch all workers: [01:26:59.465] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=Future-class.R:11564:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpWYukIE/worker.rank=1.parallelly.parent=11564.2d2c10f72899.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=30693 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [01:26:59.465] [local output] Starting PSOCK main server [01:26:59.471] [local output] Workers launched [01:26:59.472] [local output] Waiting for workers to connect back [01:26:59.472] - [local output] 0 workers out of 2 ready [01:26:59.684] - [local output] 0 workers out of 2 ready [01:26:59.684] - [local output] 1 workers out of 2 ready [01:26:59.727] - [local output] 1 workers out of 2 ready [01:26:59.727] - [local output] 2 workers out of 2 ready [01:26:59.728] [local output] Launching of workers completed [01:26:59.728] [local output] Collecting session information from workers [01:26:59.729] [local output] - Worker #1 of 2 [01:26:59.730] [local output] - Worker #2 of 2 [01:26:59.730] [local output] makeClusterPSOCK() ... done MultisessionFuture: Label: '' Expression: { 42L } Lazy evaluation: FALSE Asynchronous evaluation: TRUE Local evaluation: TRUE Environment: 0x0000024df169bbc0 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: cdcc3b82-64b1-3bc2-efd5-989432d2d185 Class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [01:26:59.745] Packages needed by the future expression (n = 0): [01:26:59.745] Packages needed by future strategies (n = 0): [01:26:59.746] { [01:26:59.746] { [01:26:59.746] { [01:26:59.746] ...future.startTime <- base::Sys.time() [01:26:59.746] { [01:26:59.746] { [01:26:59.746] { [01:26:59.746] { [01:26:59.746] base::local({ [01:26:59.746] has_future <- base::requireNamespace("future", [01:26:59.746] quietly = TRUE) [01:26:59.746] if (has_future) { [01:26:59.746] ns <- base::getNamespace("future") [01:26:59.746] version <- ns[[".package"]][["version"]] [01:26:59.746] if (is.null(version)) [01:26:59.746] version <- utils::packageVersion("future") [01:26:59.746] } [01:26:59.746] else { [01:26:59.746] version <- NULL [01:26:59.746] } [01:26:59.746] if (!has_future || version < "1.8.0") { [01:26:59.746] info <- base::c(r_version = base::gsub("R version ", [01:26:59.746] "", base::R.version$version.string), [01:26:59.746] platform = base::sprintf("%s (%s-bit)", [01:26:59.746] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:26:59.746] os = base::paste(base::Sys.info()[base::c("sysname", [01:26:59.746] "release", "version")], collapse = " "), [01:26:59.746] hostname = base::Sys.info()[["nodename"]]) [01:26:59.746] info <- base::sprintf("%s: %s", base::names(info), [01:26:59.746] info) [01:26:59.746] info <- base::paste(info, collapse = "; ") [01:26:59.746] if (!has_future) { [01:26:59.746] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:26:59.746] info) [01:26:59.746] } [01:26:59.746] else { [01:26:59.746] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:26:59.746] info, version) [01:26:59.746] } [01:26:59.746] base::stop(msg) [01:26:59.746] } [01:26:59.746] }) [01:26:59.746] } [01:26:59.746] ...future.mc.cores.old <- base::getOption("mc.cores") [01:26:59.746] base::options(mc.cores = 1L) [01:26:59.746] } [01:26:59.746] options(future.plan = NULL) [01:26:59.746] Sys.unsetenv("R_FUTURE_PLAN") [01:26:59.746] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:26:59.746] } [01:26:59.746] ...future.workdir <- getwd() [01:26:59.746] } [01:26:59.746] ...future.oldOptions <- base::as.list(base::.Options) [01:26:59.746] ...future.oldEnvVars <- base::Sys.getenv() [01:26:59.746] } [01:26:59.746] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:26:59.746] future.globals.maxSize = NULL, future.globals.method = NULL, [01:26:59.746] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:26:59.746] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:26:59.746] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:26:59.746] future.stdout.windows.reencode = NULL, width = 80L) [01:26:59.746] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:26:59.746] base::names(...future.oldOptions)) [01:26:59.746] } [01:26:59.746] if (FALSE) { [01:26:59.746] } [01:26:59.746] else { [01:26:59.746] if (TRUE) { [01:26:59.746] ...future.stdout <- base::rawConnection(base::raw(0L), [01:26:59.746] open = "w") [01:26:59.746] } [01:26:59.746] else { [01:26:59.746] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:26:59.746] windows = "NUL", "/dev/null"), open = "w") [01:26:59.746] } [01:26:59.746] base::sink(...future.stdout, type = "output", split = FALSE) [01:26:59.746] base::on.exit(if (!base::is.null(...future.stdout)) { [01:26:59.746] base::sink(type = "output", split = FALSE) [01:26:59.746] base::close(...future.stdout) [01:26:59.746] }, add = TRUE) [01:26:59.746] } [01:26:59.746] ...future.frame <- base::sys.nframe() [01:26:59.746] ...future.conditions <- base::list() [01:26:59.746] ...future.rng <- base::globalenv()$.Random.seed [01:26:59.746] if (FALSE) { [01:26:59.746] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:26:59.746] "...future.value", "...future.globalenv.names", ".Random.seed") [01:26:59.746] } [01:26:59.746] ...future.result <- base::tryCatch({ [01:26:59.746] base::withCallingHandlers({ [01:26:59.746] ...future.value <- base::withVisible(base::local({ [01:26:59.746] ...future.makeSendCondition <- base::local({ [01:26:59.746] sendCondition <- NULL [01:26:59.746] function(frame = 1L) { [01:26:59.746] if (is.function(sendCondition)) [01:26:59.746] return(sendCondition) [01:26:59.746] ns <- getNamespace("parallel") [01:26:59.746] if (exists("sendData", mode = "function", [01:26:59.746] envir = ns)) { [01:26:59.746] parallel_sendData <- get("sendData", mode = "function", [01:26:59.746] envir = ns) [01:26:59.746] envir <- sys.frame(frame) [01:26:59.746] master <- NULL [01:26:59.746] while (!identical(envir, .GlobalEnv) && [01:26:59.746] !identical(envir, emptyenv())) { [01:26:59.746] if (exists("master", mode = "list", envir = envir, [01:26:59.746] inherits = FALSE)) { [01:26:59.746] master <- get("master", mode = "list", [01:26:59.746] envir = envir, inherits = FALSE) [01:26:59.746] if (inherits(master, c("SOCKnode", [01:26:59.746] "SOCK0node"))) { [01:26:59.746] sendCondition <<- function(cond) { [01:26:59.746] data <- list(type = "VALUE", value = cond, [01:26:59.746] success = TRUE) [01:26:59.746] parallel_sendData(master, data) [01:26:59.746] } [01:26:59.746] return(sendCondition) [01:26:59.746] } [01:26:59.746] } [01:26:59.746] frame <- frame + 1L [01:26:59.746] envir <- sys.frame(frame) [01:26:59.746] } [01:26:59.746] } [01:26:59.746] sendCondition <<- function(cond) NULL [01:26:59.746] } [01:26:59.746] }) [01:26:59.746] withCallingHandlers({ [01:26:59.746] { [01:26:59.746] 42L [01:26:59.746] } [01:26:59.746] }, immediateCondition = function(cond) { [01:26:59.746] sendCondition <- ...future.makeSendCondition() [01:26:59.746] sendCondition(cond) [01:26:59.746] muffleCondition <- function (cond, pattern = "^muffle") [01:26:59.746] { [01:26:59.746] inherits <- base::inherits [01:26:59.746] invokeRestart <- base::invokeRestart [01:26:59.746] is.null <- base::is.null [01:26:59.746] muffled <- FALSE [01:26:59.746] if (inherits(cond, "message")) { [01:26:59.746] muffled <- grepl(pattern, "muffleMessage") [01:26:59.746] if (muffled) [01:26:59.746] invokeRestart("muffleMessage") [01:26:59.746] } [01:26:59.746] else if (inherits(cond, "warning")) { [01:26:59.746] muffled <- grepl(pattern, "muffleWarning") [01:26:59.746] if (muffled) [01:26:59.746] invokeRestart("muffleWarning") [01:26:59.746] } [01:26:59.746] else if (inherits(cond, "condition")) { [01:26:59.746] if (!is.null(pattern)) { [01:26:59.746] computeRestarts <- base::computeRestarts [01:26:59.746] grepl <- base::grepl [01:26:59.746] restarts <- computeRestarts(cond) [01:26:59.746] for (restart in restarts) { [01:26:59.746] name <- restart$name [01:26:59.746] if (is.null(name)) [01:26:59.746] next [01:26:59.746] if (!grepl(pattern, name)) [01:26:59.746] next [01:26:59.746] invokeRestart(restart) [01:26:59.746] muffled <- TRUE [01:26:59.746] break [01:26:59.746] } [01:26:59.746] } [01:26:59.746] } [01:26:59.746] invisible(muffled) [01:26:59.746] } [01:26:59.746] muffleCondition(cond) [01:26:59.746] }) [01:26:59.746] })) [01:26:59.746] future::FutureResult(value = ...future.value$value, [01:26:59.746] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:26:59.746] ...future.rng), globalenv = if (FALSE) [01:26:59.746] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:26:59.746] ...future.globalenv.names)) [01:26:59.746] else NULL, started = ...future.startTime, version = "1.8") [01:26:59.746] }, condition = base::local({ [01:26:59.746] c <- base::c [01:26:59.746] inherits <- base::inherits [01:26:59.746] invokeRestart <- base::invokeRestart [01:26:59.746] length <- base::length [01:26:59.746] list <- base::list [01:26:59.746] seq.int <- base::seq.int [01:26:59.746] signalCondition <- base::signalCondition [01:26:59.746] sys.calls <- base::sys.calls [01:26:59.746] `[[` <- base::`[[` [01:26:59.746] `+` <- base::`+` [01:26:59.746] `<<-` <- base::`<<-` [01:26:59.746] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:26:59.746] calls[seq.int(from = from + 12L, to = length(calls) - [01:26:59.746] 3L)] [01:26:59.746] } [01:26:59.746] function(cond) { [01:26:59.746] is_error <- inherits(cond, "error") [01:26:59.746] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:26:59.746] NULL) [01:26:59.746] if (is_error) { [01:26:59.746] sessionInformation <- function() { [01:26:59.746] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:26:59.746] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:26:59.746] search = base::search(), system = base::Sys.info()) [01:26:59.746] } [01:26:59.746] ...future.conditions[[length(...future.conditions) + [01:26:59.746] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:26:59.746] cond$call), session = sessionInformation(), [01:26:59.746] timestamp = base::Sys.time(), signaled = 0L) [01:26:59.746] signalCondition(cond) [01:26:59.746] } [01:26:59.746] else if (!ignore && TRUE && inherits(cond, c("condition", [01:26:59.746] "immediateCondition"))) { [01:26:59.746] signal <- TRUE && inherits(cond, "immediateCondition") [01:26:59.746] ...future.conditions[[length(...future.conditions) + [01:26:59.746] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:26:59.746] if (TRUE && !signal) { [01:26:59.746] muffleCondition <- function (cond, pattern = "^muffle") [01:26:59.746] { [01:26:59.746] inherits <- base::inherits [01:26:59.746] invokeRestart <- base::invokeRestart [01:26:59.746] is.null <- base::is.null [01:26:59.746] muffled <- FALSE [01:26:59.746] if (inherits(cond, "message")) { [01:26:59.746] muffled <- grepl(pattern, "muffleMessage") [01:26:59.746] if (muffled) [01:26:59.746] invokeRestart("muffleMessage") [01:26:59.746] } [01:26:59.746] else if (inherits(cond, "warning")) { [01:26:59.746] muffled <- grepl(pattern, "muffleWarning") [01:26:59.746] if (muffled) [01:26:59.746] invokeRestart("muffleWarning") [01:26:59.746] } [01:26:59.746] else if (inherits(cond, "condition")) { [01:26:59.746] if (!is.null(pattern)) { [01:26:59.746] computeRestarts <- base::computeRestarts [01:26:59.746] grepl <- base::grepl [01:26:59.746] restarts <- computeRestarts(cond) [01:26:59.746] for (restart in restarts) { [01:26:59.746] name <- restart$name [01:26:59.746] if (is.null(name)) [01:26:59.746] next [01:26:59.746] if (!grepl(pattern, name)) [01:26:59.746] next [01:26:59.746] invokeRestart(restart) [01:26:59.746] muffled <- TRUE [01:26:59.746] break [01:26:59.746] } [01:26:59.746] } [01:26:59.746] } [01:26:59.746] invisible(muffled) [01:26:59.746] } [01:26:59.746] muffleCondition(cond, pattern = "^muffle") [01:26:59.746] } [01:26:59.746] } [01:26:59.746] else { [01:26:59.746] if (TRUE) { [01:26:59.746] muffleCondition <- function (cond, pattern = "^muffle") [01:26:59.746] { [01:26:59.746] inherits <- base::inherits [01:26:59.746] invokeRestart <- base::invokeRestart [01:26:59.746] is.null <- base::is.null [01:26:59.746] muffled <- FALSE [01:26:59.746] if (inherits(cond, "message")) { [01:26:59.746] muffled <- grepl(pattern, "muffleMessage") [01:26:59.746] if (muffled) [01:26:59.746] invokeRestart("muffleMessage") [01:26:59.746] } [01:26:59.746] else if (inherits(cond, "warning")) { [01:26:59.746] muffled <- grepl(pattern, "muffleWarning") [01:26:59.746] if (muffled) [01:26:59.746] invokeRestart("muffleWarning") [01:26:59.746] } [01:26:59.746] else if (inherits(cond, "condition")) { [01:26:59.746] if (!is.null(pattern)) { [01:26:59.746] computeRestarts <- base::computeRestarts [01:26:59.746] grepl <- base::grepl [01:26:59.746] restarts <- computeRestarts(cond) [01:26:59.746] for (restart in restarts) { [01:26:59.746] name <- restart$name [01:26:59.746] if (is.null(name)) [01:26:59.746] next [01:26:59.746] if (!grepl(pattern, name)) [01:26:59.746] next [01:26:59.746] invokeRestart(restart) [01:26:59.746] muffled <- TRUE [01:26:59.746] break [01:26:59.746] } [01:26:59.746] } [01:26:59.746] } [01:26:59.746] invisible(muffled) [01:26:59.746] } [01:26:59.746] muffleCondition(cond, pattern = "^muffle") [01:26:59.746] } [01:26:59.746] } [01:26:59.746] } [01:26:59.746] })) [01:26:59.746] }, error = function(ex) { [01:26:59.746] base::structure(base::list(value = NULL, visible = NULL, [01:26:59.746] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:26:59.746] ...future.rng), started = ...future.startTime, [01:26:59.746] finished = Sys.time(), session_uuid = NA_character_, [01:26:59.746] version = "1.8"), class = "FutureResult") [01:26:59.746] }, finally = { [01:26:59.746] if (!identical(...future.workdir, getwd())) [01:26:59.746] setwd(...future.workdir) [01:26:59.746] { [01:26:59.746] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:26:59.746] ...future.oldOptions$nwarnings <- NULL [01:26:59.746] } [01:26:59.746] base::options(...future.oldOptions) [01:26:59.746] if (.Platform$OS.type == "windows") { [01:26:59.746] old_names <- names(...future.oldEnvVars) [01:26:59.746] envs <- base::Sys.getenv() [01:26:59.746] names <- names(envs) [01:26:59.746] common <- intersect(names, old_names) [01:26:59.746] added <- setdiff(names, old_names) [01:26:59.746] removed <- setdiff(old_names, names) [01:26:59.746] changed <- common[...future.oldEnvVars[common] != [01:26:59.746] envs[common]] [01:26:59.746] NAMES <- toupper(changed) [01:26:59.746] args <- list() [01:26:59.746] for (kk in seq_along(NAMES)) { [01:26:59.746] name <- changed[[kk]] [01:26:59.746] NAME <- NAMES[[kk]] [01:26:59.746] if (name != NAME && is.element(NAME, old_names)) [01:26:59.746] next [01:26:59.746] args[[name]] <- ...future.oldEnvVars[[name]] [01:26:59.746] } [01:26:59.746] NAMES <- toupper(added) [01:26:59.746] for (kk in seq_along(NAMES)) { [01:26:59.746] name <- added[[kk]] [01:26:59.746] NAME <- NAMES[[kk]] [01:26:59.746] if (name != NAME && is.element(NAME, old_names)) [01:26:59.746] next [01:26:59.746] args[[name]] <- "" [01:26:59.746] } [01:26:59.746] NAMES <- toupper(removed) [01:26:59.746] for (kk in seq_along(NAMES)) { [01:26:59.746] name <- removed[[kk]] [01:26:59.746] NAME <- NAMES[[kk]] [01:26:59.746] if (name != NAME && is.element(NAME, old_names)) [01:26:59.746] next [01:26:59.746] args[[name]] <- ...future.oldEnvVars[[name]] [01:26:59.746] } [01:26:59.746] if (length(args) > 0) [01:26:59.746] base::do.call(base::Sys.setenv, args = args) [01:26:59.746] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:26:59.746] } [01:26:59.746] else { [01:26:59.746] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:26:59.746] } [01:26:59.746] { [01:26:59.746] if (base::length(...future.futureOptionsAdded) > [01:26:59.746] 0L) { [01:26:59.746] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:26:59.746] base::names(opts) <- ...future.futureOptionsAdded [01:26:59.746] base::options(opts) [01:26:59.746] } [01:26:59.746] { [01:26:59.746] { [01:26:59.746] base::options(mc.cores = ...future.mc.cores.old) [01:26:59.746] NULL [01:26:59.746] } [01:26:59.746] options(future.plan = NULL) [01:26:59.746] if (is.na(NA_character_)) [01:26:59.746] Sys.unsetenv("R_FUTURE_PLAN") [01:26:59.746] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:26:59.746] future::plan(list(function (...) [01:26:59.746] { [01:26:59.746] Future(1) [01:26:59.746] }), .cleanup = FALSE, .init = FALSE) [01:26:59.746] } [01:26:59.746] } [01:26:59.746] } [01:26:59.746] }) [01:26:59.746] if (TRUE) { [01:26:59.746] base::sink(type = "output", split = FALSE) [01:26:59.746] if (TRUE) { [01:26:59.746] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:26:59.746] } [01:26:59.746] else { [01:26:59.746] ...future.result["stdout"] <- base::list(NULL) [01:26:59.746] } [01:26:59.746] base::close(...future.stdout) [01:26:59.746] ...future.stdout <- NULL [01:26:59.746] } [01:26:59.746] ...future.result$conditions <- ...future.conditions [01:26:59.746] ...future.result$finished <- base::Sys.time() [01:26:59.746] ...future.result [01:26:59.746] } [01:26:59.823] MultisessionFuture started [01:26:59.824] result() for ClusterFuture ... [01:26:59.825] receiveMessageFromWorker() for ClusterFuture ... [01:26:59.825] - Validating connection of MultisessionFuture [01:26:59.879] - received message: FutureResult [01:26:59.879] - Received FutureResult [01:26:59.883] - Erased future from FutureRegistry [01:26:59.883] result() for ClusterFuture ... [01:26:59.884] - result already collected: FutureResult [01:26:59.884] result() for ClusterFuture ... done [01:26:59.884] receiveMessageFromWorker() for ClusterFuture ... done [01:26:59.884] result() for ClusterFuture ... done [01:26:59.884] result() for ClusterFuture ... [01:26:59.885] - result already collected: FutureResult [01:26:59.885] result() for ClusterFuture ... done [1] 42 [01:26:59.886] getGlobalsAndPackages() ... [01:26:59.886] [01:26:59.886] - globals: [0] [01:26:59.887] getGlobalsAndPackages() ... DONE [01:26:59.899] Packages needed by the future expression (n = 0): [01:26:59.899] Packages needed by future strategies (n = 0): [01:26:59.900] { [01:26:59.900] { [01:26:59.900] { [01:26:59.900] ...future.startTime <- base::Sys.time() [01:26:59.900] { [01:26:59.900] { [01:26:59.900] { [01:26:59.900] { [01:26:59.900] base::local({ [01:26:59.900] has_future <- base::requireNamespace("future", [01:26:59.900] quietly = TRUE) [01:26:59.900] if (has_future) { [01:26:59.900] ns <- base::getNamespace("future") [01:26:59.900] version <- ns[[".package"]][["version"]] [01:26:59.900] if (is.null(version)) [01:26:59.900] version <- utils::packageVersion("future") [01:26:59.900] } [01:26:59.900] else { [01:26:59.900] version <- NULL [01:26:59.900] } [01:26:59.900] if (!has_future || version < "1.8.0") { [01:26:59.900] info <- base::c(r_version = base::gsub("R version ", [01:26:59.900] "", base::R.version$version.string), [01:26:59.900] platform = base::sprintf("%s (%s-bit)", [01:26:59.900] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:26:59.900] os = base::paste(base::Sys.info()[base::c("sysname", [01:26:59.900] "release", "version")], collapse = " "), [01:26:59.900] hostname = base::Sys.info()[["nodename"]]) [01:26:59.900] info <- base::sprintf("%s: %s", base::names(info), [01:26:59.900] info) [01:26:59.900] info <- base::paste(info, collapse = "; ") [01:26:59.900] if (!has_future) { [01:26:59.900] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:26:59.900] info) [01:26:59.900] } [01:26:59.900] else { [01:26:59.900] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:26:59.900] info, version) [01:26:59.900] } [01:26:59.900] base::stop(msg) [01:26:59.900] } [01:26:59.900] }) [01:26:59.900] } [01:26:59.900] ...future.mc.cores.old <- base::getOption("mc.cores") [01:26:59.900] base::options(mc.cores = 1L) [01:26:59.900] } [01:26:59.900] options(future.plan = NULL) [01:26:59.900] Sys.unsetenv("R_FUTURE_PLAN") [01:26:59.900] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:26:59.900] } [01:26:59.900] ...future.workdir <- getwd() [01:26:59.900] } [01:26:59.900] ...future.oldOptions <- base::as.list(base::.Options) [01:26:59.900] ...future.oldEnvVars <- base::Sys.getenv() [01:26:59.900] } [01:26:59.900] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:26:59.900] future.globals.maxSize = NULL, future.globals.method = NULL, [01:26:59.900] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:26:59.900] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:26:59.900] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:26:59.900] future.stdout.windows.reencode = NULL, width = 80L) [01:26:59.900] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:26:59.900] base::names(...future.oldOptions)) [01:26:59.900] } [01:26:59.900] if (FALSE) { [01:26:59.900] } [01:26:59.900] else { [01:26:59.900] if (TRUE) { [01:26:59.900] ...future.stdout <- base::rawConnection(base::raw(0L), [01:26:59.900] open = "w") [01:26:59.900] } [01:26:59.900] else { [01:26:59.900] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:26:59.900] windows = "NUL", "/dev/null"), open = "w") [01:26:59.900] } [01:26:59.900] base::sink(...future.stdout, type = "output", split = FALSE) [01:26:59.900] base::on.exit(if (!base::is.null(...future.stdout)) { [01:26:59.900] base::sink(type = "output", split = FALSE) [01:26:59.900] base::close(...future.stdout) [01:26:59.900] }, add = TRUE) [01:26:59.900] } [01:26:59.900] ...future.frame <- base::sys.nframe() [01:26:59.900] ...future.conditions <- base::list() [01:26:59.900] ...future.rng <- base::globalenv()$.Random.seed [01:26:59.900] if (FALSE) { [01:26:59.900] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:26:59.900] "...future.value", "...future.globalenv.names", ".Random.seed") [01:26:59.900] } [01:26:59.900] ...future.result <- base::tryCatch({ [01:26:59.900] base::withCallingHandlers({ [01:26:59.900] ...future.value <- base::withVisible(base::local({ [01:26:59.900] ...future.makeSendCondition <- base::local({ [01:26:59.900] sendCondition <- NULL [01:26:59.900] function(frame = 1L) { [01:26:59.900] if (is.function(sendCondition)) [01:26:59.900] return(sendCondition) [01:26:59.900] ns <- getNamespace("parallel") [01:26:59.900] if (exists("sendData", mode = "function", [01:26:59.900] envir = ns)) { [01:26:59.900] parallel_sendData <- get("sendData", mode = "function", [01:26:59.900] envir = ns) [01:26:59.900] envir <- sys.frame(frame) [01:26:59.900] master <- NULL [01:26:59.900] while (!identical(envir, .GlobalEnv) && [01:26:59.900] !identical(envir, emptyenv())) { [01:26:59.900] if (exists("master", mode = "list", envir = envir, [01:26:59.900] inherits = FALSE)) { [01:26:59.900] master <- get("master", mode = "list", [01:26:59.900] envir = envir, inherits = FALSE) [01:26:59.900] if (inherits(master, c("SOCKnode", [01:26:59.900] "SOCK0node"))) { [01:26:59.900] sendCondition <<- function(cond) { [01:26:59.900] data <- list(type = "VALUE", value = cond, [01:26:59.900] success = TRUE) [01:26:59.900] parallel_sendData(master, data) [01:26:59.900] } [01:26:59.900] return(sendCondition) [01:26:59.900] } [01:26:59.900] } [01:26:59.900] frame <- frame + 1L [01:26:59.900] envir <- sys.frame(frame) [01:26:59.900] } [01:26:59.900] } [01:26:59.900] sendCondition <<- function(cond) NULL [01:26:59.900] } [01:26:59.900] }) [01:26:59.900] withCallingHandlers({ [01:26:59.900] { [01:26:59.900] 42L [01:26:59.900] } [01:26:59.900] }, immediateCondition = function(cond) { [01:26:59.900] sendCondition <- ...future.makeSendCondition() [01:26:59.900] sendCondition(cond) [01:26:59.900] muffleCondition <- function (cond, pattern = "^muffle") [01:26:59.900] { [01:26:59.900] inherits <- base::inherits [01:26:59.900] invokeRestart <- base::invokeRestart [01:26:59.900] is.null <- base::is.null [01:26:59.900] muffled <- FALSE [01:26:59.900] if (inherits(cond, "message")) { [01:26:59.900] muffled <- grepl(pattern, "muffleMessage") [01:26:59.900] if (muffled) [01:26:59.900] invokeRestart("muffleMessage") [01:26:59.900] } [01:26:59.900] else if (inherits(cond, "warning")) { [01:26:59.900] muffled <- grepl(pattern, "muffleWarning") [01:26:59.900] if (muffled) [01:26:59.900] invokeRestart("muffleWarning") [01:26:59.900] } [01:26:59.900] else if (inherits(cond, "condition")) { [01:26:59.900] if (!is.null(pattern)) { [01:26:59.900] computeRestarts <- base::computeRestarts [01:26:59.900] grepl <- base::grepl [01:26:59.900] restarts <- computeRestarts(cond) [01:26:59.900] for (restart in restarts) { [01:26:59.900] name <- restart$name [01:26:59.900] if (is.null(name)) [01:26:59.900] next [01:26:59.900] if (!grepl(pattern, name)) [01:26:59.900] next [01:26:59.900] invokeRestart(restart) [01:26:59.900] muffled <- TRUE [01:26:59.900] break [01:26:59.900] } [01:26:59.900] } [01:26:59.900] } [01:26:59.900] invisible(muffled) [01:26:59.900] } [01:26:59.900] muffleCondition(cond) [01:26:59.900] }) [01:26:59.900] })) [01:26:59.900] future::FutureResult(value = ...future.value$value, [01:26:59.900] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:26:59.900] ...future.rng), globalenv = if (FALSE) [01:26:59.900] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:26:59.900] ...future.globalenv.names)) [01:26:59.900] else NULL, started = ...future.startTime, version = "1.8") [01:26:59.900] }, condition = base::local({ [01:26:59.900] c <- base::c [01:26:59.900] inherits <- base::inherits [01:26:59.900] invokeRestart <- base::invokeRestart [01:26:59.900] length <- base::length [01:26:59.900] list <- base::list [01:26:59.900] seq.int <- base::seq.int [01:26:59.900] signalCondition <- base::signalCondition [01:26:59.900] sys.calls <- base::sys.calls [01:26:59.900] `[[` <- base::`[[` [01:26:59.900] `+` <- base::`+` [01:26:59.900] `<<-` <- base::`<<-` [01:26:59.900] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:26:59.900] calls[seq.int(from = from + 12L, to = length(calls) - [01:26:59.900] 3L)] [01:26:59.900] } [01:26:59.900] function(cond) { [01:26:59.900] is_error <- inherits(cond, "error") [01:26:59.900] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:26:59.900] NULL) [01:26:59.900] if (is_error) { [01:26:59.900] sessionInformation <- function() { [01:26:59.900] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:26:59.900] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:26:59.900] search = base::search(), system = base::Sys.info()) [01:26:59.900] } [01:26:59.900] ...future.conditions[[length(...future.conditions) + [01:26:59.900] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:26:59.900] cond$call), session = sessionInformation(), [01:26:59.900] timestamp = base::Sys.time(), signaled = 0L) [01:26:59.900] signalCondition(cond) [01:26:59.900] } [01:26:59.900] else if (!ignore && TRUE && inherits(cond, c("condition", [01:26:59.900] "immediateCondition"))) { [01:26:59.900] signal <- TRUE && inherits(cond, "immediateCondition") [01:26:59.900] ...future.conditions[[length(...future.conditions) + [01:26:59.900] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:26:59.900] if (TRUE && !signal) { [01:26:59.900] muffleCondition <- function (cond, pattern = "^muffle") [01:26:59.900] { [01:26:59.900] inherits <- base::inherits [01:26:59.900] invokeRestart <- base::invokeRestart [01:26:59.900] is.null <- base::is.null [01:26:59.900] muffled <- FALSE [01:26:59.900] if (inherits(cond, "message")) { [01:26:59.900] muffled <- grepl(pattern, "muffleMessage") [01:26:59.900] if (muffled) [01:26:59.900] invokeRestart("muffleMessage") [01:26:59.900] } [01:26:59.900] else if (inherits(cond, "warning")) { [01:26:59.900] muffled <- grepl(pattern, "muffleWarning") [01:26:59.900] if (muffled) [01:26:59.900] invokeRestart("muffleWarning") [01:26:59.900] } [01:26:59.900] else if (inherits(cond, "condition")) { [01:26:59.900] if (!is.null(pattern)) { [01:26:59.900] computeRestarts <- base::computeRestarts [01:26:59.900] grepl <- base::grepl [01:26:59.900] restarts <- computeRestarts(cond) [01:26:59.900] for (restart in restarts) { [01:26:59.900] name <- restart$name [01:26:59.900] if (is.null(name)) [01:26:59.900] next [01:26:59.900] if (!grepl(pattern, name)) [01:26:59.900] next [01:26:59.900] invokeRestart(restart) [01:26:59.900] muffled <- TRUE [01:26:59.900] break [01:26:59.900] } [01:26:59.900] } [01:26:59.900] } [01:26:59.900] invisible(muffled) [01:26:59.900] } [01:26:59.900] muffleCondition(cond, pattern = "^muffle") [01:26:59.900] } [01:26:59.900] } [01:26:59.900] else { [01:26:59.900] if (TRUE) { [01:26:59.900] muffleCondition <- function (cond, pattern = "^muffle") [01:26:59.900] { [01:26:59.900] inherits <- base::inherits [01:26:59.900] invokeRestart <- base::invokeRestart [01:26:59.900] is.null <- base::is.null [01:26:59.900] muffled <- FALSE [01:26:59.900] if (inherits(cond, "message")) { [01:26:59.900] muffled <- grepl(pattern, "muffleMessage") [01:26:59.900] if (muffled) [01:26:59.900] invokeRestart("muffleMessage") [01:26:59.900] } [01:26:59.900] else if (inherits(cond, "warning")) { [01:26:59.900] muffled <- grepl(pattern, "muffleWarning") [01:26:59.900] if (muffled) [01:26:59.900] invokeRestart("muffleWarning") [01:26:59.900] } [01:26:59.900] else if (inherits(cond, "condition")) { [01:26:59.900] if (!is.null(pattern)) { [01:26:59.900] computeRestarts <- base::computeRestarts [01:26:59.900] grepl <- base::grepl [01:26:59.900] restarts <- computeRestarts(cond) [01:26:59.900] for (restart in restarts) { [01:26:59.900] name <- restart$name [01:26:59.900] if (is.null(name)) [01:26:59.900] next [01:26:59.900] if (!grepl(pattern, name)) [01:26:59.900] next [01:26:59.900] invokeRestart(restart) [01:26:59.900] muffled <- TRUE [01:26:59.900] break [01:26:59.900] } [01:26:59.900] } [01:26:59.900] } [01:26:59.900] invisible(muffled) [01:26:59.900] } [01:26:59.900] muffleCondition(cond, pattern = "^muffle") [01:26:59.900] } [01:26:59.900] } [01:26:59.900] } [01:26:59.900] })) [01:26:59.900] }, error = function(ex) { [01:26:59.900] base::structure(base::list(value = NULL, visible = NULL, [01:26:59.900] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:26:59.900] ...future.rng), started = ...future.startTime, [01:26:59.900] finished = Sys.time(), session_uuid = NA_character_, [01:26:59.900] version = "1.8"), class = "FutureResult") [01:26:59.900] }, finally = { [01:26:59.900] if (!identical(...future.workdir, getwd())) [01:26:59.900] setwd(...future.workdir) [01:26:59.900] { [01:26:59.900] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:26:59.900] ...future.oldOptions$nwarnings <- NULL [01:26:59.900] } [01:26:59.900] base::options(...future.oldOptions) [01:26:59.900] if (.Platform$OS.type == "windows") { [01:26:59.900] old_names <- names(...future.oldEnvVars) [01:26:59.900] envs <- base::Sys.getenv() [01:26:59.900] names <- names(envs) [01:26:59.900] common <- intersect(names, old_names) [01:26:59.900] added <- setdiff(names, old_names) [01:26:59.900] removed <- setdiff(old_names, names) [01:26:59.900] changed <- common[...future.oldEnvVars[common] != [01:26:59.900] envs[common]] [01:26:59.900] NAMES <- toupper(changed) [01:26:59.900] args <- list() [01:26:59.900] for (kk in seq_along(NAMES)) { [01:26:59.900] name <- changed[[kk]] [01:26:59.900] NAME <- NAMES[[kk]] [01:26:59.900] if (name != NAME && is.element(NAME, old_names)) [01:26:59.900] next [01:26:59.900] args[[name]] <- ...future.oldEnvVars[[name]] [01:26:59.900] } [01:26:59.900] NAMES <- toupper(added) [01:26:59.900] for (kk in seq_along(NAMES)) { [01:26:59.900] name <- added[[kk]] [01:26:59.900] NAME <- NAMES[[kk]] [01:26:59.900] if (name != NAME && is.element(NAME, old_names)) [01:26:59.900] next [01:26:59.900] args[[name]] <- "" [01:26:59.900] } [01:26:59.900] NAMES <- toupper(removed) [01:26:59.900] for (kk in seq_along(NAMES)) { [01:26:59.900] name <- removed[[kk]] [01:26:59.900] NAME <- NAMES[[kk]] [01:26:59.900] if (name != NAME && is.element(NAME, old_names)) [01:26:59.900] next [01:26:59.900] args[[name]] <- ...future.oldEnvVars[[name]] [01:26:59.900] } [01:26:59.900] if (length(args) > 0) [01:26:59.900] base::do.call(base::Sys.setenv, args = args) [01:26:59.900] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:26:59.900] } [01:26:59.900] else { [01:26:59.900] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:26:59.900] } [01:26:59.900] { [01:26:59.900] if (base::length(...future.futureOptionsAdded) > [01:26:59.900] 0L) { [01:26:59.900] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:26:59.900] base::names(opts) <- ...future.futureOptionsAdded [01:26:59.900] base::options(opts) [01:26:59.900] } [01:26:59.900] { [01:26:59.900] { [01:26:59.900] base::options(mc.cores = ...future.mc.cores.old) [01:26:59.900] NULL [01:26:59.900] } [01:26:59.900] options(future.plan = NULL) [01:26:59.900] if (is.na(NA_character_)) [01:26:59.900] Sys.unsetenv("R_FUTURE_PLAN") [01:26:59.900] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:26:59.900] future::plan(list(function (...) [01:26:59.900] { [01:26:59.900] Future(1) [01:26:59.900] }), .cleanup = FALSE, .init = FALSE) [01:26:59.900] } [01:26:59.900] } [01:26:59.900] } [01:26:59.900] }) [01:26:59.900] if (TRUE) { [01:26:59.900] base::sink(type = "output", split = FALSE) [01:26:59.900] if (TRUE) { [01:26:59.900] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:26:59.900] } [01:26:59.900] else { [01:26:59.900] ...future.result["stdout"] <- base::list(NULL) [01:26:59.900] } [01:26:59.900] base::close(...future.stdout) [01:26:59.900] ...future.stdout <- NULL [01:26:59.900] } [01:26:59.900] ...future.result$conditions <- ...future.conditions [01:26:59.900] ...future.result$finished <- base::Sys.time() [01:26:59.900] ...future.result [01:26:59.900] } [01:26:59.906] MultisessionFuture started [01:26:59.906] result() for ClusterFuture ... [01:26:59.906] receiveMessageFromWorker() for ClusterFuture ... [01:26:59.906] - Validating connection of MultisessionFuture [01:26:59.921] - received message: FutureResult [01:26:59.921] - Received FutureResult [01:26:59.921] - Erased future from FutureRegistry [01:26:59.921] result() for ClusterFuture ... [01:26:59.922] - result already collected: FutureResult [01:26:59.922] result() for ClusterFuture ... done [01:26:59.922] receiveMessageFromWorker() for ClusterFuture ... done [01:26:59.922] result() for ClusterFuture ... done [01:26:59.922] result() for ClusterFuture ... [01:26:59.923] - result already collected: FutureResult [01:26:59.923] result() for ClusterFuture ... done [1] 42 [01:26:59.923] getGlobalsAndPackages() ... [01:26:59.923] Searching for globals... [01:26:59.924] - globals found: [1] '{' [01:26:59.924] Searching for globals ... DONE [01:26:59.925] Resolving globals: FALSE [01:26:59.925] [01:26:59.925] [01:26:59.925] 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: cdcc3b82-64b1-3bc2-efd5-989432d2d185 Class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [01:26:59.926] Packages needed by the future expression (n = 0): [01:26:59.927] Packages needed by future strategies (n = 0): [01:26:59.927] { [01:26:59.927] { [01:26:59.927] { [01:26:59.927] ...future.startTime <- base::Sys.time() [01:26:59.927] { [01:26:59.927] { [01:26:59.927] { [01:26:59.927] base::local({ [01:26:59.927] has_future <- base::requireNamespace("future", [01:26:59.927] quietly = TRUE) [01:26:59.927] if (has_future) { [01:26:59.927] ns <- base::getNamespace("future") [01:26:59.927] version <- ns[[".package"]][["version"]] [01:26:59.927] if (is.null(version)) [01:26:59.927] version <- utils::packageVersion("future") [01:26:59.927] } [01:26:59.927] else { [01:26:59.927] version <- NULL [01:26:59.927] } [01:26:59.927] if (!has_future || version < "1.8.0") { [01:26:59.927] info <- base::c(r_version = base::gsub("R version ", [01:26:59.927] "", base::R.version$version.string), [01:26:59.927] platform = base::sprintf("%s (%s-bit)", [01:26:59.927] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:26:59.927] os = base::paste(base::Sys.info()[base::c("sysname", [01:26:59.927] "release", "version")], collapse = " "), [01:26:59.927] hostname = base::Sys.info()[["nodename"]]) [01:26:59.927] info <- base::sprintf("%s: %s", base::names(info), [01:26:59.927] info) [01:26:59.927] info <- base::paste(info, collapse = "; ") [01:26:59.927] if (!has_future) { [01:26:59.927] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:26:59.927] info) [01:26:59.927] } [01:26:59.927] else { [01:26:59.927] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:26:59.927] info, version) [01:26:59.927] } [01:26:59.927] base::stop(msg) [01:26:59.927] } [01:26:59.927] }) [01:26:59.927] } [01:26:59.927] options(future.plan = NULL) [01:26:59.927] Sys.unsetenv("R_FUTURE_PLAN") [01:26:59.927] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:26:59.927] } [01:26:59.927] ...future.workdir <- getwd() [01:26:59.927] } [01:26:59.927] ...future.oldOptions <- base::as.list(base::.Options) [01:26:59.927] ...future.oldEnvVars <- base::Sys.getenv() [01:26:59.927] } [01:26:59.927] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:26:59.927] future.globals.maxSize = NULL, future.globals.method = NULL, [01:26:59.927] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:26:59.927] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:26:59.927] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:26:59.927] future.stdout.windows.reencode = NULL, width = 80L) [01:26:59.927] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:26:59.927] base::names(...future.oldOptions)) [01:26:59.927] } [01:26:59.927] if (FALSE) { [01:26:59.927] } [01:26:59.927] else { [01:26:59.927] if (TRUE) { [01:26:59.927] ...future.stdout <- base::rawConnection(base::raw(0L), [01:26:59.927] open = "w") [01:26:59.927] } [01:26:59.927] else { [01:26:59.927] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:26:59.927] windows = "NUL", "/dev/null"), open = "w") [01:26:59.927] } [01:26:59.927] base::sink(...future.stdout, type = "output", split = FALSE) [01:26:59.927] base::on.exit(if (!base::is.null(...future.stdout)) { [01:26:59.927] base::sink(type = "output", split = FALSE) [01:26:59.927] base::close(...future.stdout) [01:26:59.927] }, add = TRUE) [01:26:59.927] } [01:26:59.927] ...future.frame <- base::sys.nframe() [01:26:59.927] ...future.conditions <- base::list() [01:26:59.927] ...future.rng <- base::globalenv()$.Random.seed [01:26:59.927] if (FALSE) { [01:26:59.927] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:26:59.927] "...future.value", "...future.globalenv.names", ".Random.seed") [01:26:59.927] } [01:26:59.927] ...future.result <- base::tryCatch({ [01:26:59.927] base::withCallingHandlers({ [01:26:59.927] ...future.value <- base::withVisible(base::local({ [01:26:59.927] 42L [01:26:59.927] })) [01:26:59.927] future::FutureResult(value = ...future.value$value, [01:26:59.927] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:26:59.927] ...future.rng), globalenv = if (FALSE) [01:26:59.927] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:26:59.927] ...future.globalenv.names)) [01:26:59.927] else NULL, started = ...future.startTime, version = "1.8") [01:26:59.927] }, condition = base::local({ [01:26:59.927] c <- base::c [01:26:59.927] inherits <- base::inherits [01:26:59.927] invokeRestart <- base::invokeRestart [01:26:59.927] length <- base::length [01:26:59.927] list <- base::list [01:26:59.927] seq.int <- base::seq.int [01:26:59.927] signalCondition <- base::signalCondition [01:26:59.927] sys.calls <- base::sys.calls [01:26:59.927] `[[` <- base::`[[` [01:26:59.927] `+` <- base::`+` [01:26:59.927] `<<-` <- base::`<<-` [01:26:59.927] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:26:59.927] calls[seq.int(from = from + 12L, to = length(calls) - [01:26:59.927] 3L)] [01:26:59.927] } [01:26:59.927] function(cond) { [01:26:59.927] is_error <- inherits(cond, "error") [01:26:59.927] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:26:59.927] NULL) [01:26:59.927] if (is_error) { [01:26:59.927] sessionInformation <- function() { [01:26:59.927] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:26:59.927] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:26:59.927] search = base::search(), system = base::Sys.info()) [01:26:59.927] } [01:26:59.927] ...future.conditions[[length(...future.conditions) + [01:26:59.927] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:26:59.927] cond$call), session = sessionInformation(), [01:26:59.927] timestamp = base::Sys.time(), signaled = 0L) [01:26:59.927] signalCondition(cond) [01:26:59.927] } [01:26:59.927] else if (!ignore && TRUE && inherits(cond, c("condition", [01:26:59.927] "immediateCondition"))) { [01:26:59.927] signal <- TRUE && inherits(cond, "immediateCondition") [01:26:59.927] ...future.conditions[[length(...future.conditions) + [01:26:59.927] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:26:59.927] if (TRUE && !signal) { [01:26:59.927] muffleCondition <- function (cond, pattern = "^muffle") [01:26:59.927] { [01:26:59.927] inherits <- base::inherits [01:26:59.927] invokeRestart <- base::invokeRestart [01:26:59.927] is.null <- base::is.null [01:26:59.927] muffled <- FALSE [01:26:59.927] if (inherits(cond, "message")) { [01:26:59.927] muffled <- grepl(pattern, "muffleMessage") [01:26:59.927] if (muffled) [01:26:59.927] invokeRestart("muffleMessage") [01:26:59.927] } [01:26:59.927] else if (inherits(cond, "warning")) { [01:26:59.927] muffled <- grepl(pattern, "muffleWarning") [01:26:59.927] if (muffled) [01:26:59.927] invokeRestart("muffleWarning") [01:26:59.927] } [01:26:59.927] else if (inherits(cond, "condition")) { [01:26:59.927] if (!is.null(pattern)) { [01:26:59.927] computeRestarts <- base::computeRestarts [01:26:59.927] grepl <- base::grepl [01:26:59.927] restarts <- computeRestarts(cond) [01:26:59.927] for (restart in restarts) { [01:26:59.927] name <- restart$name [01:26:59.927] if (is.null(name)) [01:26:59.927] next [01:26:59.927] if (!grepl(pattern, name)) [01:26:59.927] next [01:26:59.927] invokeRestart(restart) [01:26:59.927] muffled <- TRUE [01:26:59.927] break [01:26:59.927] } [01:26:59.927] } [01:26:59.927] } [01:26:59.927] invisible(muffled) [01:26:59.927] } [01:26:59.927] muffleCondition(cond, pattern = "^muffle") [01:26:59.927] } [01:26:59.927] } [01:26:59.927] else { [01:26:59.927] if (TRUE) { [01:26:59.927] muffleCondition <- function (cond, pattern = "^muffle") [01:26:59.927] { [01:26:59.927] inherits <- base::inherits [01:26:59.927] invokeRestart <- base::invokeRestart [01:26:59.927] is.null <- base::is.null [01:26:59.927] muffled <- FALSE [01:26:59.927] if (inherits(cond, "message")) { [01:26:59.927] muffled <- grepl(pattern, "muffleMessage") [01:26:59.927] if (muffled) [01:26:59.927] invokeRestart("muffleMessage") [01:26:59.927] } [01:26:59.927] else if (inherits(cond, "warning")) { [01:26:59.927] muffled <- grepl(pattern, "muffleWarning") [01:26:59.927] if (muffled) [01:26:59.927] invokeRestart("muffleWarning") [01:26:59.927] } [01:26:59.927] else if (inherits(cond, "condition")) { [01:26:59.927] if (!is.null(pattern)) { [01:26:59.927] computeRestarts <- base::computeRestarts [01:26:59.927] grepl <- base::grepl [01:26:59.927] restarts <- computeRestarts(cond) [01:26:59.927] for (restart in restarts) { [01:26:59.927] name <- restart$name [01:26:59.927] if (is.null(name)) [01:26:59.927] next [01:26:59.927] if (!grepl(pattern, name)) [01:26:59.927] next [01:26:59.927] invokeRestart(restart) [01:26:59.927] muffled <- TRUE [01:26:59.927] break [01:26:59.927] } [01:26:59.927] } [01:26:59.927] } [01:26:59.927] invisible(muffled) [01:26:59.927] } [01:26:59.927] muffleCondition(cond, pattern = "^muffle") [01:26:59.927] } [01:26:59.927] } [01:26:59.927] } [01:26:59.927] })) [01:26:59.927] }, error = function(ex) { [01:26:59.927] base::structure(base::list(value = NULL, visible = NULL, [01:26:59.927] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:26:59.927] ...future.rng), started = ...future.startTime, [01:26:59.927] finished = Sys.time(), session_uuid = NA_character_, [01:26:59.927] version = "1.8"), class = "FutureResult") [01:26:59.927] }, finally = { [01:26:59.927] if (!identical(...future.workdir, getwd())) [01:26:59.927] setwd(...future.workdir) [01:26:59.927] { [01:26:59.927] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:26:59.927] ...future.oldOptions$nwarnings <- NULL [01:26:59.927] } [01:26:59.927] base::options(...future.oldOptions) [01:26:59.927] if (.Platform$OS.type == "windows") { [01:26:59.927] old_names <- names(...future.oldEnvVars) [01:26:59.927] envs <- base::Sys.getenv() [01:26:59.927] names <- names(envs) [01:26:59.927] common <- intersect(names, old_names) [01:26:59.927] added <- setdiff(names, old_names) [01:26:59.927] removed <- setdiff(old_names, names) [01:26:59.927] changed <- common[...future.oldEnvVars[common] != [01:26:59.927] envs[common]] [01:26:59.927] NAMES <- toupper(changed) [01:26:59.927] args <- list() [01:26:59.927] for (kk in seq_along(NAMES)) { [01:26:59.927] name <- changed[[kk]] [01:26:59.927] NAME <- NAMES[[kk]] [01:26:59.927] if (name != NAME && is.element(NAME, old_names)) [01:26:59.927] next [01:26:59.927] args[[name]] <- ...future.oldEnvVars[[name]] [01:26:59.927] } [01:26:59.927] NAMES <- toupper(added) [01:26:59.927] for (kk in seq_along(NAMES)) { [01:26:59.927] name <- added[[kk]] [01:26:59.927] NAME <- NAMES[[kk]] [01:26:59.927] if (name != NAME && is.element(NAME, old_names)) [01:26:59.927] next [01:26:59.927] args[[name]] <- "" [01:26:59.927] } [01:26:59.927] NAMES <- toupper(removed) [01:26:59.927] for (kk in seq_along(NAMES)) { [01:26:59.927] name <- removed[[kk]] [01:26:59.927] NAME <- NAMES[[kk]] [01:26:59.927] if (name != NAME && is.element(NAME, old_names)) [01:26:59.927] next [01:26:59.927] args[[name]] <- ...future.oldEnvVars[[name]] [01:26:59.927] } [01:26:59.927] if (length(args) > 0) [01:26:59.927] base::do.call(base::Sys.setenv, args = args) [01:26:59.927] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:26:59.927] } [01:26:59.927] else { [01:26:59.927] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:26:59.927] } [01:26:59.927] { [01:26:59.927] if (base::length(...future.futureOptionsAdded) > [01:26:59.927] 0L) { [01:26:59.927] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:26:59.927] base::names(opts) <- ...future.futureOptionsAdded [01:26:59.927] base::options(opts) [01:26:59.927] } [01:26:59.927] { [01:26:59.927] { [01:26:59.927] NULL [01:26:59.927] RNGkind("Mersenne-Twister") [01:26:59.927] base::rm(list = ".Random.seed", envir = base::globalenv(), [01:26:59.927] inherits = FALSE) [01:26:59.927] } [01:26:59.927] options(future.plan = NULL) [01:26:59.927] if (is.na(NA_character_)) [01:26:59.927] Sys.unsetenv("R_FUTURE_PLAN") [01:26:59.927] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:26:59.927] future::plan(list(function (...) [01:26:59.927] { [01:26:59.927] Future(1) [01:26:59.927] }), .cleanup = FALSE, .init = FALSE) [01:26:59.927] } [01:26:59.927] } [01:26:59.927] } [01:26:59.927] }) [01:26:59.927] if (TRUE) { [01:26:59.927] base::sink(type = "output", split = FALSE) [01:26:59.927] if (TRUE) { [01:26:59.927] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:26:59.927] } [01:26:59.927] else { [01:26:59.927] ...future.result["stdout"] <- base::list(NULL) [01:26:59.927] } [01:26:59.927] base::close(...future.stdout) [01:26:59.927] ...future.stdout <- NULL [01:26:59.927] } [01:26:59.927] ...future.result$conditions <- ...future.conditions [01:26:59.927] ...future.result$finished <- base::Sys.time() [01:26:59.927] ...future.result [01:26:59.927] } [01:26:59.931] plan(): Setting new future strategy stack: [01:26:59.931] List of future strategies: [01:26:59.931] 1. sequential: [01:26:59.931] - args: function (..., envir = parent.frame(), workers = "") [01:26:59.931] - tweaked: FALSE [01:26:59.931] - call: NULL [01:26:59.932] plan(): nbrOfWorkers() = 1 [01:26:59.934] plan(): Setting new future strategy stack: [01:26:59.934] List of future strategies: [01:26:59.934] 1. future: [01:26:59.934] - args: function (..., workers = "") [01:26:59.934] - tweaked: FALSE [01:26:59.934] - call: plan(foo) [01:26:59.935] plan(): nbrOfWorkers() = Inf [01:26:59.935] SequentialFuture started (and completed) [1] 42 [01:26:59.935] getGlobalsAndPackages() ... [01:26:59.936] Searching for globals... [01:26:59.936] - globals found: [1] '{' [01:26:59.937] Searching for globals ... DONE [01:26:59.937] Resolving globals: FALSE [01:26:59.937] [01:26:59.937] [01:26:59.938] getGlobalsAndPackages() ... DONE [01:26:59.938] Packages needed by the future expression (n = 0): [01:26:59.938] Packages needed by future strategies (n = 0): [01:26:59.939] { [01:26:59.939] { [01:26:59.939] { [01:26:59.939] ...future.startTime <- base::Sys.time() [01:26:59.939] { [01:26:59.939] { [01:26:59.939] { [01:26:59.939] base::local({ [01:26:59.939] has_future <- base::requireNamespace("future", [01:26:59.939] quietly = TRUE) [01:26:59.939] if (has_future) { [01:26:59.939] ns <- base::getNamespace("future") [01:26:59.939] version <- ns[[".package"]][["version"]] [01:26:59.939] if (is.null(version)) [01:26:59.939] version <- utils::packageVersion("future") [01:26:59.939] } [01:26:59.939] else { [01:26:59.939] version <- NULL [01:26:59.939] } [01:26:59.939] if (!has_future || version < "1.8.0") { [01:26:59.939] info <- base::c(r_version = base::gsub("R version ", [01:26:59.939] "", base::R.version$version.string), [01:26:59.939] platform = base::sprintf("%s (%s-bit)", [01:26:59.939] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:26:59.939] os = base::paste(base::Sys.info()[base::c("sysname", [01:26:59.939] "release", "version")], collapse = " "), [01:26:59.939] hostname = base::Sys.info()[["nodename"]]) [01:26:59.939] info <- base::sprintf("%s: %s", base::names(info), [01:26:59.939] info) [01:26:59.939] info <- base::paste(info, collapse = "; ") [01:26:59.939] if (!has_future) { [01:26:59.939] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:26:59.939] info) [01:26:59.939] } [01:26:59.939] else { [01:26:59.939] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:26:59.939] info, version) [01:26:59.939] } [01:26:59.939] base::stop(msg) [01:26:59.939] } [01:26:59.939] }) [01:26:59.939] } [01:26:59.939] options(future.plan = NULL) [01:26:59.939] Sys.unsetenv("R_FUTURE_PLAN") [01:26:59.939] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:26:59.939] } [01:26:59.939] ...future.workdir <- getwd() [01:26:59.939] } [01:26:59.939] ...future.oldOptions <- base::as.list(base::.Options) [01:26:59.939] ...future.oldEnvVars <- base::Sys.getenv() [01:26:59.939] } [01:26:59.939] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:26:59.939] future.globals.maxSize = NULL, future.globals.method = NULL, [01:26:59.939] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:26:59.939] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:26:59.939] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:26:59.939] future.stdout.windows.reencode = NULL, width = 80L) [01:26:59.939] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:26:59.939] base::names(...future.oldOptions)) [01:26:59.939] } [01:26:59.939] if (FALSE) { [01:26:59.939] } [01:26:59.939] else { [01:26:59.939] if (TRUE) { [01:26:59.939] ...future.stdout <- base::rawConnection(base::raw(0L), [01:26:59.939] open = "w") [01:26:59.939] } [01:26:59.939] else { [01:26:59.939] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:26:59.939] windows = "NUL", "/dev/null"), open = "w") [01:26:59.939] } [01:26:59.939] base::sink(...future.stdout, type = "output", split = FALSE) [01:26:59.939] base::on.exit(if (!base::is.null(...future.stdout)) { [01:26:59.939] base::sink(type = "output", split = FALSE) [01:26:59.939] base::close(...future.stdout) [01:26:59.939] }, add = TRUE) [01:26:59.939] } [01:26:59.939] ...future.frame <- base::sys.nframe() [01:26:59.939] ...future.conditions <- base::list() [01:26:59.939] ...future.rng <- base::globalenv()$.Random.seed [01:26:59.939] if (FALSE) { [01:26:59.939] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:26:59.939] "...future.value", "...future.globalenv.names", ".Random.seed") [01:26:59.939] } [01:26:59.939] ...future.result <- base::tryCatch({ [01:26:59.939] base::withCallingHandlers({ [01:26:59.939] ...future.value <- base::withVisible(base::local({ [01:26:59.939] 42L [01:26:59.939] })) [01:26:59.939] future::FutureResult(value = ...future.value$value, [01:26:59.939] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:26:59.939] ...future.rng), globalenv = if (FALSE) [01:26:59.939] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:26:59.939] ...future.globalenv.names)) [01:26:59.939] else NULL, started = ...future.startTime, version = "1.8") [01:26:59.939] }, condition = base::local({ [01:26:59.939] c <- base::c [01:26:59.939] inherits <- base::inherits [01:26:59.939] invokeRestart <- base::invokeRestart [01:26:59.939] length <- base::length [01:26:59.939] list <- base::list [01:26:59.939] seq.int <- base::seq.int [01:26:59.939] signalCondition <- base::signalCondition [01:26:59.939] sys.calls <- base::sys.calls [01:26:59.939] `[[` <- base::`[[` [01:26:59.939] `+` <- base::`+` [01:26:59.939] `<<-` <- base::`<<-` [01:26:59.939] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:26:59.939] calls[seq.int(from = from + 12L, to = length(calls) - [01:26:59.939] 3L)] [01:26:59.939] } [01:26:59.939] function(cond) { [01:26:59.939] is_error <- inherits(cond, "error") [01:26:59.939] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:26:59.939] NULL) [01:26:59.939] if (is_error) { [01:26:59.939] sessionInformation <- function() { [01:26:59.939] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:26:59.939] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:26:59.939] search = base::search(), system = base::Sys.info()) [01:26:59.939] } [01:26:59.939] ...future.conditions[[length(...future.conditions) + [01:26:59.939] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:26:59.939] cond$call), session = sessionInformation(), [01:26:59.939] timestamp = base::Sys.time(), signaled = 0L) [01:26:59.939] signalCondition(cond) [01:26:59.939] } [01:26:59.939] else if (!ignore && TRUE && inherits(cond, c("condition", [01:26:59.939] "immediateCondition"))) { [01:26:59.939] signal <- TRUE && inherits(cond, "immediateCondition") [01:26:59.939] ...future.conditions[[length(...future.conditions) + [01:26:59.939] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:26:59.939] if (TRUE && !signal) { [01:26:59.939] muffleCondition <- function (cond, pattern = "^muffle") [01:26:59.939] { [01:26:59.939] inherits <- base::inherits [01:26:59.939] invokeRestart <- base::invokeRestart [01:26:59.939] is.null <- base::is.null [01:26:59.939] muffled <- FALSE [01:26:59.939] if (inherits(cond, "message")) { [01:26:59.939] muffled <- grepl(pattern, "muffleMessage") [01:26:59.939] if (muffled) [01:26:59.939] invokeRestart("muffleMessage") [01:26:59.939] } [01:26:59.939] else if (inherits(cond, "warning")) { [01:26:59.939] muffled <- grepl(pattern, "muffleWarning") [01:26:59.939] if (muffled) [01:26:59.939] invokeRestart("muffleWarning") [01:26:59.939] } [01:26:59.939] else if (inherits(cond, "condition")) { [01:26:59.939] if (!is.null(pattern)) { [01:26:59.939] computeRestarts <- base::computeRestarts [01:26:59.939] grepl <- base::grepl [01:26:59.939] restarts <- computeRestarts(cond) [01:26:59.939] for (restart in restarts) { [01:26:59.939] name <- restart$name [01:26:59.939] if (is.null(name)) [01:26:59.939] next [01:26:59.939] if (!grepl(pattern, name)) [01:26:59.939] next [01:26:59.939] invokeRestart(restart) [01:26:59.939] muffled <- TRUE [01:26:59.939] break [01:26:59.939] } [01:26:59.939] } [01:26:59.939] } [01:26:59.939] invisible(muffled) [01:26:59.939] } [01:26:59.939] muffleCondition(cond, pattern = "^muffle") [01:26:59.939] } [01:26:59.939] } [01:26:59.939] else { [01:26:59.939] if (TRUE) { [01:26:59.939] muffleCondition <- function (cond, pattern = "^muffle") [01:26:59.939] { [01:26:59.939] inherits <- base::inherits [01:26:59.939] invokeRestart <- base::invokeRestart [01:26:59.939] is.null <- base::is.null [01:26:59.939] muffled <- FALSE [01:26:59.939] if (inherits(cond, "message")) { [01:26:59.939] muffled <- grepl(pattern, "muffleMessage") [01:26:59.939] if (muffled) [01:26:59.939] invokeRestart("muffleMessage") [01:26:59.939] } [01:26:59.939] else if (inherits(cond, "warning")) { [01:26:59.939] muffled <- grepl(pattern, "muffleWarning") [01:26:59.939] if (muffled) [01:26:59.939] invokeRestart("muffleWarning") [01:26:59.939] } [01:26:59.939] else if (inherits(cond, "condition")) { [01:26:59.939] if (!is.null(pattern)) { [01:26:59.939] computeRestarts <- base::computeRestarts [01:26:59.939] grepl <- base::grepl [01:26:59.939] restarts <- computeRestarts(cond) [01:26:59.939] for (restart in restarts) { [01:26:59.939] name <- restart$name [01:26:59.939] if (is.null(name)) [01:26:59.939] next [01:26:59.939] if (!grepl(pattern, name)) [01:26:59.939] next [01:26:59.939] invokeRestart(restart) [01:26:59.939] muffled <- TRUE [01:26:59.939] break [01:26:59.939] } [01:26:59.939] } [01:26:59.939] } [01:26:59.939] invisible(muffled) [01:26:59.939] } [01:26:59.939] muffleCondition(cond, pattern = "^muffle") [01:26:59.939] } [01:26:59.939] } [01:26:59.939] } [01:26:59.939] })) [01:26:59.939] }, error = function(ex) { [01:26:59.939] base::structure(base::list(value = NULL, visible = NULL, [01:26:59.939] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:26:59.939] ...future.rng), started = ...future.startTime, [01:26:59.939] finished = Sys.time(), session_uuid = NA_character_, [01:26:59.939] version = "1.8"), class = "FutureResult") [01:26:59.939] }, finally = { [01:26:59.939] if (!identical(...future.workdir, getwd())) [01:26:59.939] setwd(...future.workdir) [01:26:59.939] { [01:26:59.939] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:26:59.939] ...future.oldOptions$nwarnings <- NULL [01:26:59.939] } [01:26:59.939] base::options(...future.oldOptions) [01:26:59.939] if (.Platform$OS.type == "windows") { [01:26:59.939] old_names <- names(...future.oldEnvVars) [01:26:59.939] envs <- base::Sys.getenv() [01:26:59.939] names <- names(envs) [01:26:59.939] common <- intersect(names, old_names) [01:26:59.939] added <- setdiff(names, old_names) [01:26:59.939] removed <- setdiff(old_names, names) [01:26:59.939] changed <- common[...future.oldEnvVars[common] != [01:26:59.939] envs[common]] [01:26:59.939] NAMES <- toupper(changed) [01:26:59.939] args <- list() [01:26:59.939] for (kk in seq_along(NAMES)) { [01:26:59.939] name <- changed[[kk]] [01:26:59.939] NAME <- NAMES[[kk]] [01:26:59.939] if (name != NAME && is.element(NAME, old_names)) [01:26:59.939] next [01:26:59.939] args[[name]] <- ...future.oldEnvVars[[name]] [01:26:59.939] } [01:26:59.939] NAMES <- toupper(added) [01:26:59.939] for (kk in seq_along(NAMES)) { [01:26:59.939] name <- added[[kk]] [01:26:59.939] NAME <- NAMES[[kk]] [01:26:59.939] if (name != NAME && is.element(NAME, old_names)) [01:26:59.939] next [01:26:59.939] args[[name]] <- "" [01:26:59.939] } [01:26:59.939] NAMES <- toupper(removed) [01:26:59.939] for (kk in seq_along(NAMES)) { [01:26:59.939] name <- removed[[kk]] [01:26:59.939] NAME <- NAMES[[kk]] [01:26:59.939] if (name != NAME && is.element(NAME, old_names)) [01:26:59.939] next [01:26:59.939] args[[name]] <- ...future.oldEnvVars[[name]] [01:26:59.939] } [01:26:59.939] if (length(args) > 0) [01:26:59.939] base::do.call(base::Sys.setenv, args = args) [01:26:59.939] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:26:59.939] } [01:26:59.939] else { [01:26:59.939] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:26:59.939] } [01:26:59.939] { [01:26:59.939] if (base::length(...future.futureOptionsAdded) > [01:26:59.939] 0L) { [01:26:59.939] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:26:59.939] base::names(opts) <- ...future.futureOptionsAdded [01:26:59.939] base::options(opts) [01:26:59.939] } [01:26:59.939] { [01:26:59.939] { [01:26:59.939] NULL [01:26:59.939] RNGkind("Mersenne-Twister") [01:26:59.939] base::rm(list = ".Random.seed", envir = base::globalenv(), [01:26:59.939] inherits = FALSE) [01:26:59.939] } [01:26:59.939] options(future.plan = NULL) [01:26:59.939] if (is.na(NA_character_)) [01:26:59.939] Sys.unsetenv("R_FUTURE_PLAN") [01:26:59.939] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:26:59.939] future::plan(list(function (...) [01:26:59.939] { [01:26:59.939] Future(1) [01:26:59.939] }), .cleanup = FALSE, .init = FALSE) [01:26:59.939] } [01:26:59.939] } [01:26:59.939] } [01:26:59.939] }) [01:26:59.939] if (TRUE) { [01:26:59.939] base::sink(type = "output", split = FALSE) [01:26:59.939] if (TRUE) { [01:26:59.939] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:26:59.939] } [01:26:59.939] else { [01:26:59.939] ...future.result["stdout"] <- base::list(NULL) [01:26:59.939] } [01:26:59.939] base::close(...future.stdout) [01:26:59.939] ...future.stdout <- NULL [01:26:59.939] } [01:26:59.939] ...future.result$conditions <- ...future.conditions [01:26:59.939] ...future.result$finished <- base::Sys.time() [01:26:59.939] ...future.result [01:26:59.939] } [01:26:59.943] plan(): Setting new future strategy stack: [01:26:59.943] List of future strategies: [01:26:59.943] 1. sequential: [01:26:59.943] - args: function (..., envir = parent.frame(), workers = "") [01:26:59.943] - tweaked: FALSE [01:26:59.943] - call: NULL [01:26:59.944] plan(): nbrOfWorkers() = 1 [01:26:59.946] plan(): Setting new future strategy stack: [01:26:59.946] List of future strategies: [01:26:59.946] 1. future: [01:26:59.946] - args: function (..., workers = "") [01:26:59.946] - tweaked: FALSE [01:26:59.946] - call: plan(foo) [01:26:59.947] plan(): nbrOfWorkers() = Inf [01:26:59.947] 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") [01:26:59.949] plan(): Setting new future strategy stack: [01:26:59.949] List of future strategies: [01:26:59.949] 1. FutureStrategy: [01:26:59.949] - args: function (..., envir = parent.frame(), workers = "") [01:26:59.949] - tweaked: FALSE [01:26:59.949] - call: future::plan(oplan) [01:26:59.950] plan(): nbrOfWorkers() = 1 Failed to undo environment variables: - Expected environment variables: [n=204] '!ExitCode', 'ALLUSERSPROFILE', 'APPDATA', 'BIBINPUTS', 'BINDIR', 'BSTINPUTS', 'COMMONPROGRAMFILES', 'COMPUTERNAME', 'COMSPEC', 'CURL_CA_BUNDLE', 'CYGWIN', 'CommonProgramFiles(x86)', 'CommonProgramW6432', 'DriverData', 'HOME', 'HOMEDRIVE', 'HOMEPATH', 'JAGS_ROOT', 'JAVA_HOME', 'LANGUAGE', 'LC_COLLATE', 'LC_MONETARY', 'LC_TIME', 'LOCALAPPDATA', 'LOGONSERVER', 'LS_HOME', 'LS_LICENSE_PATH', 'MAKE', 'MAKEFLAGS', 'MAKELEVEL', 'MFLAGS', 'MSMPI_BENCHMARKS', 'MSMPI_BIN', 'MSYS2_ENV_CONV_EXCL', 'NUMBER_OF_PROCESSORS', 'OCL', 'OMP_THREAD_LIMIT', 'OS', 'PATH', 'PATHEXT', 'PROCESSOR_ARCHITECTURE', 'PROCESSOR_IDENTIFIER', 'PROCESSOR_LEVEL', 'PROCESSOR_REVISION', 'PROGRAMFILES', 'PROMPT', 'PSModulePath', 'PUBLIC', 'PWD', 'ProgramData', 'ProgramFiles(x86)', 'ProgramW6432', 'RTOOLS43_HOME', 'R_ARCH', 'R_BROWSER', 'R_BZIPCMD', 'R_CMD', 'R_COMPILED_BY', 'R_CRAN_WEB', 'R_CUSTOM_TOOLS_PATH', 'R_CUSTOM_TOOLS_SOFT', 'R_DOC_DIR', 'R_ENVIRON_USER', 'R_GSCMD', 'R_GZIPCMD', 'R_HOME', 'R_INCLUDE_DIR', 'R_INSTALL_TAR', 'R_LIBS', 'R_LIBS_SITE', 'R_LIBS_USER', 'R_MAX_NUM_DLLS', 'R_OSTYPE', 'R_PAPERSIZE', 'R_PAPERSIZE_USER', 'R_PARALLELLY_MAKENODEPSOCK_AUTOKILL', 'R_PARALLELLY_MAKENODEPSOCK_CONNECTTIMEOUT', 'R_PARALLELLY_MAKENODEPSOCK_RSCRIPT_LABEL', 'R_PARALLELLY_MAKENODEPSOCK_SESSIONINFO_PKGS', 'R_PARALLELLY_MAKENODEPSOCK_TIMEOUT', 'R_PARALLELLY_RANDOM_PORTS', 'R_PARALLEL_PORT', 'R_RD4PDF', 'R_RTOOLS43_PATH', 'R_SCRIPT_LEGACY', 'R_SHARE_DIR', 'R_TESTS', 'R_UNZIPCMD', 'R_USER', 'R_VERSION', 'R_ZIPCMD', 'SED', 'SHLVL', 'SYSTEMDRIVE', 'SYSTEMROOT', 'TAR', 'TAR_OPTIONS', 'TEMP', 'TERM', 'TEXINPUTS', 'TMP', 'TMPDIR', 'USERDOMAIN', 'USERDOMAIN_ROAMINGPROFILE', 'USERNAME', 'USERPROFILE', 'WINDIR', '_', '_R_CHECK_AUTOCONF_', '_R_CHECK_BOGUS_RETURN_', '_R_CHECK_BROWSER_NONINTERACTIVE_', '_R_CHECK_BUILD_VIGNETTES_SEPARATELY_', '_R_CHECK_CODETOOLS_PROFILE_', '_R_CHECK_CODE_ASSIGN_TO_GLOBALENV_', '_R_CHECK_CODE_ATTACH_', '_R_CHECK_CODE_CLASS_IS_STRING_', '_R_CHECK_CODE_DATA_INTO_GLOBALENV_', '_R_CHECK_CODE_USAGE_VIA_NAMESPACES_', '_R_CHECK_CODE_USAGE_WITHOUT_LOADING_', '_R_CHECK_CODE_USAGE_WITH_ONLY_BASE_ATTACHED_', '_R_CHECK_CODOC_VARIABLES_IN_USAGES_', '_R_CHECK_COMPACT_DATA2_', '_R_CHECK_COMPILATION_FLAGS_', '_R_CHECK_CONNECTIONS_LEFT_OPEN_', '_R_CHECK_CRAN_INCOMING_', '_R_CHECK_CRAN_INCOMING_CHECK_FILE_URIS_', '_R_CHECK_CRAN_INCOMING_CHECK_URLS_IN_PARALLEL_', '_R_CHECK_CRAN_INCOMING_NOTE_GNU_MAKE_', '_R_CHECK_CRAN_INCOMING_REMOTE_', '_R_CHECK_CRAN_INCOMING_USE_ASPELL_', '_R_CHECK_DATALIST_', '_R_CHECK_DEPRECATED_DEFUNCT_', '_R_CHECK_DOC_SIZES2_', '_R_CHECK_DOT_FIRSTLIB_', '_R_CHECK_DOT_INTERNAL_', '_R_CHECK_EXAMPLE_TIMING_THRESHOLD_', '_R_CHECK_EXECUTABLES_', '_R_CHECK_EXECUTABLES_EXCLUSIONS_', '_R_CHECK_FF_CALLS_', '_R_CHECK_FF_DUP_', '_R_CHECK_FORCE_SUGGESTS_', '_R_CHECK_FUTURE_FILE_TIMESTAMPS_', '_R_CHECK_FUTURE_FILE_TIMESTAMPS_LEEWAY_', '_R_CHECK_HAVE_MYSQL_', '_R_CHECK_HAVE_ODBC_', '_R_CHECK_HAVE_PERL_', '_R_CHECK_HAVE_POSTGRES_', '_R_CHECK_INSTALL_DEPENDS_', '_R_CHECK_INTERNALS2_', '_R_CHECK_LENGTH_1_CONDITION_', '_R_CHECK_LICENSE_', '_R_CHECK_LIMIT_CORES_', '_R_CHECK_MATRIX_DATA_', '_R_CHECK_MBCS_CONVERSION_FAILURE_', '_R_CHECK_NATIVE_ROUTINE_REGISTRATION_', '_R_CHECK_NEWS_IN_PLAIN_TEXT_', '_R_CHECK_NO_RECOMMENDED_', '_R_CHECK_NO_STOP_ON_TEST_ERROR_', '_R_CHECK_ORPHANED_', '_R_CHECK_OVERWRITE_REGISTERED_S3_METHODS_', '_R_CHECK_PACKAGES_USED_IGNORE_UNUSED_IMPORTS_', '_R_CHECK_PACKAGES_USED_IN_TESTS_USE_SUBDIRS_', '_R_CHECK_PACKAGE_DATASETS_SUPPRESS_NOTES_', '_R_CHECK_PACKAGE_NAME_', '_R_CHECK_PKG_SIZES_', '_R_CHECK_PKG_SIZES_THRESHOLD_', '_R_CHECK_PRAGMAS_', '_R_CHECK_RD_EXAMPLES_T_AND_F_', '_R_CHECK_RD_LINE_WIDTHS_', '_R_CHECK_RD_MATH_RENDERING_', '_R_CHECK_RD_NOTE_LOST_BRACES_', '_R_CHECK_RD_VALIDATE_RD2HTML_', '_R_CHECK_REPLACING_IMPORTS_', '_R_CHECK_R_DEPENDS_', '_R_CHECK_S3_METHODS_SHOW_POSSIBLE_ISSUES_', '_R_CHECK_SCREEN_DEVICE_', '_R_CHECK_SERIALIZATION_', '_R_CHECK_SHLIB_OPENMP_FLAGS_', '_R_CHECK_SRC_MINUS_W_IMPLICIT_', '_R_CHECK_SUBDIRS_NOCASE_', '_R_CHECK_SUBDIRS_STRICT_', '_R_CHECK_SUGGESTS_ONLY_', '_R_CHECK_SYSTEM_CLOCK_', '_R_CHECK_TESTS_NLINES_', '_R_CHECK_TEST_TIMING_', '_R_CHECK_TIMINGS_', '_R_CHECK_TOPLEVEL_FILES_', '_R_CHECK_UNDOC_USE_ALL_NAMES_', '_R_CHECK_UNSAFE_CALLS_', '_R_CHECK_URLS_SHOW_301_STATUS_', '_R_CHECK_VC_DIRS_', '_R_CHECK_VIGNETTES_NLINES_', '_R_CHECK_VIGNETTES_SKIP_RUN_MAYBE_', '_R_CHECK_VIGNETTE_TIMING_', '_R_CHECK_VIGNETTE_TITLES_', '_R_CHECK_WINDOWS_DEVICE_', '_R_CHECK_XREFS_USE_ALIASES_FROM_CRAN_', '_R_CLASS_MATRIX_ARRAY_', '_R_INSTALL_TIME_PATCHES_', '_R_S3_METHOD_LOOKUP_BASEENV_AFTER_GLOBALENV_', '_R_SHLIB_BUILD_OBJECTS_SYMBOL_TABLES_', '__R_CHECK_DOC_FILES_NOTE_IF_ALL_SPECIAL__', 'maj.version', 'nextArg--timingsnextArg--install' - Environment variables still there: [n=0] - Environment variables missing: [n=1] 'MAKEFLAGS' Differences environment variable by environment variable: List of 3 $ name : chr "MAKEFLAGS" $ expected: 'Dlist' chr "" $ actual : 'Dlist' chr NA > > proc.time() user system elapsed 0.59 0.07 1.39