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:27:53.701] plan(): Setting new future strategy stack: [01:27:53.703] List of future strategies: [01:27:53.703] 1. sequential: [01:27:53.703] - args: function (..., envir = parent.frame(), workers = "") [01:27:53.703] - tweaked: FALSE [01:27:53.703] - call: future::plan("sequential") [01:27:53.732] plan(): nbrOfWorkers() = 1 > library(methods) > > message("*** Globals - S4 methods ...") *** Globals - S4 methods ... > > setGeneric("my_fcn", function(x) standardGeneric("my_fcn")) [1] "my_fcn" > setMethod("my_fcn", signature(x = "numeric"), function(x) { -x }) > org_my_fcn <- my_fcn > > truth <- my_fcn(3) > > for (strategy in supportedStrategies()) { + message("Type of future: ", strategy) + plan(strategy) + + ## Assert that S4 generic function 'my_fcn()' is exported + f <- future({ my_fcn }, lazy = TRUE) + rm(list = "my_fcn") + v <- value(f) + print(v) + stopifnot( + is.function(v), + inherits(v, class(org_my_fcn)[1]) + ) + my_fcn <- org_my_fcn + + ## FIXME: + ## Just like S3 methods, S4 methods are not picked up + ## https://github.com/HenrikBengtsson/future/issues/615 + f <- future({ my_fcn(3) }, lazy = TRUE) + rm(list = "my_fcn") + v <- tryCatch(value(f), error = identity) + print(v) + if (isTRUE(as.logical(Sys.getenv("R_CHECK_IDEAL")))) { + if (getOption("future.globals.keepWhere", TRUE)) { + stopifnot(identical(v, truth)) + } else { + stopifnot(inherits(v, "error")) + } + } else if (isTRUE(getOption("future.globals.keepWhere", FALSE))) { + stopifnot(identical(v, truth)) + } else { + if (strategy %in% c("sequential", "multicore")) { + stopifnot(inherits(v, "error")) + } else { + stopifnot(identical(v, truth)) + } + } + my_fcn <- org_my_fcn + } Type of future: sequential [01:27:53.781] plan(): Setting new future strategy stack: [01:27:53.781] List of future strategies: [01:27:53.781] 1. sequential: [01:27:53.781] - args: function (..., envir = parent.frame(), workers = "") [01:27:53.781] - tweaked: FALSE [01:27:53.781] - call: plan(strategy) [01:27:53.799] plan(): nbrOfWorkers() = 1 [01:27:53.801] getGlobalsAndPackages() ... [01:27:53.801] Searching for globals... [01:27:53.815] - globals found: [7] '{', 'my_fcn', 'standardGeneric', 'NULL', 'stop', 'gettextf', 'x' [01:27:53.815] Searching for globals ... DONE [01:27:53.815] Resolving globals: FALSE [01:27:53.817] The total size of the 1 globals is 3.84 KiB (3936 bytes) [01:27:53.817] The total size of the 1 globals exported for future expression ('{; my_fcn; }') is 3.84 KiB.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'my_fcn' (3.84 KiB of class 'function') [01:27:53.818] - globals: [1] 'my_fcn' [01:27:53.818] [01:27:53.818] getGlobalsAndPackages() ... DONE [01:27:53.820] run() for 'Future' ... [01:27:53.820] - state: 'created' [01:27:53.820] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [01:27:53.821] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [01:27:53.821] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [01:27:53.821] - Field: 'label' [01:27:53.821] - Field: 'local' [01:27:53.822] - Field: 'owner' [01:27:53.822] - Field: 'envir' [01:27:53.822] - Field: 'packages' [01:27:53.822] - Field: 'gc' [01:27:53.823] - Field: 'conditions' [01:27:53.823] - Field: 'expr' [01:27:53.823] - Field: 'uuid' [01:27:53.823] - Field: 'seed' [01:27:53.823] - Field: 'version' [01:27:53.824] - Field: 'result' [01:27:53.824] - Field: 'asynchronous' [01:27:53.824] - Field: 'calls' [01:27:53.824] - Field: 'globals' [01:27:53.824] - Field: 'stdout' [01:27:53.825] - Field: 'earlySignal' [01:27:53.825] - Field: 'lazy' [01:27:53.825] - Field: 'state' [01:27:53.825] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [01:27:53.825] - Launch lazy future ... [01:27:53.827] Packages needed by the future expression (n = 0): [01:27:53.827] Packages needed by future strategies (n = 0): [01:27:53.828] { [01:27:53.828] { [01:27:53.828] { [01:27:53.828] ...future.startTime <- base::Sys.time() [01:27:53.828] { [01:27:53.828] { [01:27:53.828] { [01:27:53.828] base::local({ [01:27:53.828] has_future <- base::requireNamespace("future", [01:27:53.828] quietly = TRUE) [01:27:53.828] if (has_future) { [01:27:53.828] ns <- base::getNamespace("future") [01:27:53.828] version <- ns[[".package"]][["version"]] [01:27:53.828] if (is.null(version)) [01:27:53.828] version <- utils::packageVersion("future") [01:27:53.828] } [01:27:53.828] else { [01:27:53.828] version <- NULL [01:27:53.828] } [01:27:53.828] if (!has_future || version < "1.8.0") { [01:27:53.828] info <- base::c(r_version = base::gsub("R version ", [01:27:53.828] "", base::R.version$version.string), [01:27:53.828] platform = base::sprintf("%s (%s-bit)", [01:27:53.828] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:27:53.828] os = base::paste(base::Sys.info()[base::c("sysname", [01:27:53.828] "release", "version")], collapse = " "), [01:27:53.828] hostname = base::Sys.info()[["nodename"]]) [01:27:53.828] info <- base::sprintf("%s: %s", base::names(info), [01:27:53.828] info) [01:27:53.828] info <- base::paste(info, collapse = "; ") [01:27:53.828] if (!has_future) { [01:27:53.828] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:27:53.828] info) [01:27:53.828] } [01:27:53.828] else { [01:27:53.828] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:27:53.828] info, version) [01:27:53.828] } [01:27:53.828] base::stop(msg) [01:27:53.828] } [01:27:53.828] }) [01:27:53.828] } [01:27:53.828] options(future.plan = NULL) [01:27:53.828] Sys.unsetenv("R_FUTURE_PLAN") [01:27:53.828] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:27:53.828] } [01:27:53.828] ...future.workdir <- getwd() [01:27:53.828] } [01:27:53.828] ...future.oldOptions <- base::as.list(base::.Options) [01:27:53.828] ...future.oldEnvVars <- base::Sys.getenv() [01:27:53.828] } [01:27:53.828] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:27:53.828] future.globals.maxSize = NULL, future.globals.method = NULL, [01:27:53.828] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:27:53.828] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:27:53.828] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:27:53.828] future.stdout.windows.reencode = NULL, width = 80L) [01:27:53.828] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:27:53.828] base::names(...future.oldOptions)) [01:27:53.828] } [01:27:53.828] if (FALSE) { [01:27:53.828] } [01:27:53.828] else { [01:27:53.828] if (TRUE) { [01:27:53.828] ...future.stdout <- base::rawConnection(base::raw(0L), [01:27:53.828] open = "w") [01:27:53.828] } [01:27:53.828] else { [01:27:53.828] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:27:53.828] windows = "NUL", "/dev/null"), open = "w") [01:27:53.828] } [01:27:53.828] base::sink(...future.stdout, type = "output", split = FALSE) [01:27:53.828] base::on.exit(if (!base::is.null(...future.stdout)) { [01:27:53.828] base::sink(type = "output", split = FALSE) [01:27:53.828] base::close(...future.stdout) [01:27:53.828] }, add = TRUE) [01:27:53.828] } [01:27:53.828] ...future.frame <- base::sys.nframe() [01:27:53.828] ...future.conditions <- base::list() [01:27:53.828] ...future.rng <- base::globalenv()$.Random.seed [01:27:53.828] if (FALSE) { [01:27:53.828] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:27:53.828] "...future.value", "...future.globalenv.names", ".Random.seed") [01:27:53.828] } [01:27:53.828] ...future.result <- base::tryCatch({ [01:27:53.828] base::withCallingHandlers({ [01:27:53.828] ...future.value <- base::withVisible(base::local({ [01:27:53.828] my_fcn [01:27:53.828] })) [01:27:53.828] future::FutureResult(value = ...future.value$value, [01:27:53.828] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:27:53.828] ...future.rng), globalenv = if (FALSE) [01:27:53.828] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:27:53.828] ...future.globalenv.names)) [01:27:53.828] else NULL, started = ...future.startTime, version = "1.8") [01:27:53.828] }, condition = base::local({ [01:27:53.828] c <- base::c [01:27:53.828] inherits <- base::inherits [01:27:53.828] invokeRestart <- base::invokeRestart [01:27:53.828] length <- base::length [01:27:53.828] list <- base::list [01:27:53.828] seq.int <- base::seq.int [01:27:53.828] signalCondition <- base::signalCondition [01:27:53.828] sys.calls <- base::sys.calls [01:27:53.828] `[[` <- base::`[[` [01:27:53.828] `+` <- base::`+` [01:27:53.828] `<<-` <- base::`<<-` [01:27:53.828] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:27:53.828] calls[seq.int(from = from + 12L, to = length(calls) - [01:27:53.828] 3L)] [01:27:53.828] } [01:27:53.828] function(cond) { [01:27:53.828] is_error <- inherits(cond, "error") [01:27:53.828] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:27:53.828] NULL) [01:27:53.828] if (is_error) { [01:27:53.828] sessionInformation <- function() { [01:27:53.828] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:27:53.828] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:27:53.828] search = base::search(), system = base::Sys.info()) [01:27:53.828] } [01:27:53.828] ...future.conditions[[length(...future.conditions) + [01:27:53.828] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:27:53.828] cond$call), session = sessionInformation(), [01:27:53.828] timestamp = base::Sys.time(), signaled = 0L) [01:27:53.828] signalCondition(cond) [01:27:53.828] } [01:27:53.828] else if (!ignore && TRUE && inherits(cond, c("condition", [01:27:53.828] "immediateCondition"))) { [01:27:53.828] signal <- TRUE && inherits(cond, "immediateCondition") [01:27:53.828] ...future.conditions[[length(...future.conditions) + [01:27:53.828] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:27:53.828] if (TRUE && !signal) { [01:27:53.828] muffleCondition <- function (cond, pattern = "^muffle") [01:27:53.828] { [01:27:53.828] inherits <- base::inherits [01:27:53.828] invokeRestart <- base::invokeRestart [01:27:53.828] is.null <- base::is.null [01:27:53.828] muffled <- FALSE [01:27:53.828] if (inherits(cond, "message")) { [01:27:53.828] muffled <- grepl(pattern, "muffleMessage") [01:27:53.828] if (muffled) [01:27:53.828] invokeRestart("muffleMessage") [01:27:53.828] } [01:27:53.828] else if (inherits(cond, "warning")) { [01:27:53.828] muffled <- grepl(pattern, "muffleWarning") [01:27:53.828] if (muffled) [01:27:53.828] invokeRestart("muffleWarning") [01:27:53.828] } [01:27:53.828] else if (inherits(cond, "condition")) { [01:27:53.828] if (!is.null(pattern)) { [01:27:53.828] computeRestarts <- base::computeRestarts [01:27:53.828] grepl <- base::grepl [01:27:53.828] restarts <- computeRestarts(cond) [01:27:53.828] for (restart in restarts) { [01:27:53.828] name <- restart$name [01:27:53.828] if (is.null(name)) [01:27:53.828] next [01:27:53.828] if (!grepl(pattern, name)) [01:27:53.828] next [01:27:53.828] invokeRestart(restart) [01:27:53.828] muffled <- TRUE [01:27:53.828] break [01:27:53.828] } [01:27:53.828] } [01:27:53.828] } [01:27:53.828] invisible(muffled) [01:27:53.828] } [01:27:53.828] muffleCondition(cond, pattern = "^muffle") [01:27:53.828] } [01:27:53.828] } [01:27:53.828] else { [01:27:53.828] if (TRUE) { [01:27:53.828] muffleCondition <- function (cond, pattern = "^muffle") [01:27:53.828] { [01:27:53.828] inherits <- base::inherits [01:27:53.828] invokeRestart <- base::invokeRestart [01:27:53.828] is.null <- base::is.null [01:27:53.828] muffled <- FALSE [01:27:53.828] if (inherits(cond, "message")) { [01:27:53.828] muffled <- grepl(pattern, "muffleMessage") [01:27:53.828] if (muffled) [01:27:53.828] invokeRestart("muffleMessage") [01:27:53.828] } [01:27:53.828] else if (inherits(cond, "warning")) { [01:27:53.828] muffled <- grepl(pattern, "muffleWarning") [01:27:53.828] if (muffled) [01:27:53.828] invokeRestart("muffleWarning") [01:27:53.828] } [01:27:53.828] else if (inherits(cond, "condition")) { [01:27:53.828] if (!is.null(pattern)) { [01:27:53.828] computeRestarts <- base::computeRestarts [01:27:53.828] grepl <- base::grepl [01:27:53.828] restarts <- computeRestarts(cond) [01:27:53.828] for (restart in restarts) { [01:27:53.828] name <- restart$name [01:27:53.828] if (is.null(name)) [01:27:53.828] next [01:27:53.828] if (!grepl(pattern, name)) [01:27:53.828] next [01:27:53.828] invokeRestart(restart) [01:27:53.828] muffled <- TRUE [01:27:53.828] break [01:27:53.828] } [01:27:53.828] } [01:27:53.828] } [01:27:53.828] invisible(muffled) [01:27:53.828] } [01:27:53.828] muffleCondition(cond, pattern = "^muffle") [01:27:53.828] } [01:27:53.828] } [01:27:53.828] } [01:27:53.828] })) [01:27:53.828] }, error = function(ex) { [01:27:53.828] base::structure(base::list(value = NULL, visible = NULL, [01:27:53.828] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:27:53.828] ...future.rng), started = ...future.startTime, [01:27:53.828] finished = Sys.time(), session_uuid = NA_character_, [01:27:53.828] version = "1.8"), class = "FutureResult") [01:27:53.828] }, finally = { [01:27:53.828] if (!identical(...future.workdir, getwd())) [01:27:53.828] setwd(...future.workdir) [01:27:53.828] { [01:27:53.828] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:27:53.828] ...future.oldOptions$nwarnings <- NULL [01:27:53.828] } [01:27:53.828] base::options(...future.oldOptions) [01:27:53.828] if (.Platform$OS.type == "windows") { [01:27:53.828] old_names <- names(...future.oldEnvVars) [01:27:53.828] envs <- base::Sys.getenv() [01:27:53.828] names <- names(envs) [01:27:53.828] common <- intersect(names, old_names) [01:27:53.828] added <- setdiff(names, old_names) [01:27:53.828] removed <- setdiff(old_names, names) [01:27:53.828] changed <- common[...future.oldEnvVars[common] != [01:27:53.828] envs[common]] [01:27:53.828] NAMES <- toupper(changed) [01:27:53.828] args <- list() [01:27:53.828] for (kk in seq_along(NAMES)) { [01:27:53.828] name <- changed[[kk]] [01:27:53.828] NAME <- NAMES[[kk]] [01:27:53.828] if (name != NAME && is.element(NAME, old_names)) [01:27:53.828] next [01:27:53.828] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:53.828] } [01:27:53.828] NAMES <- toupper(added) [01:27:53.828] for (kk in seq_along(NAMES)) { [01:27:53.828] name <- added[[kk]] [01:27:53.828] NAME <- NAMES[[kk]] [01:27:53.828] if (name != NAME && is.element(NAME, old_names)) [01:27:53.828] next [01:27:53.828] args[[name]] <- "" [01:27:53.828] } [01:27:53.828] NAMES <- toupper(removed) [01:27:53.828] for (kk in seq_along(NAMES)) { [01:27:53.828] name <- removed[[kk]] [01:27:53.828] NAME <- NAMES[[kk]] [01:27:53.828] if (name != NAME && is.element(NAME, old_names)) [01:27:53.828] next [01:27:53.828] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:53.828] } [01:27:53.828] if (length(args) > 0) [01:27:53.828] base::do.call(base::Sys.setenv, args = args) [01:27:53.828] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:27:53.828] } [01:27:53.828] else { [01:27:53.828] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:27:53.828] } [01:27:53.828] { [01:27:53.828] if (base::length(...future.futureOptionsAdded) > [01:27:53.828] 0L) { [01:27:53.828] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:27:53.828] base::names(opts) <- ...future.futureOptionsAdded [01:27:53.828] base::options(opts) [01:27:53.828] } [01:27:53.828] { [01:27:53.828] { [01:27:53.828] NULL [01:27:53.828] RNGkind("Mersenne-Twister") [01:27:53.828] base::rm(list = ".Random.seed", envir = base::globalenv(), [01:27:53.828] inherits = FALSE) [01:27:53.828] } [01:27:53.828] options(future.plan = NULL) [01:27:53.828] if (is.na(NA_character_)) [01:27:53.828] Sys.unsetenv("R_FUTURE_PLAN") [01:27:53.828] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:27:53.828] future::plan(list(function (..., envir = parent.frame()) [01:27:53.828] { [01:27:53.828] future <- SequentialFuture(..., envir = envir) [01:27:53.828] if (!future$lazy) [01:27:53.828] future <- run(future) [01:27:53.828] invisible(future) [01:27:53.828] }), .cleanup = FALSE, .init = FALSE) [01:27:53.828] } [01:27:53.828] } [01:27:53.828] } [01:27:53.828] }) [01:27:53.828] if (TRUE) { [01:27:53.828] base::sink(type = "output", split = FALSE) [01:27:53.828] if (TRUE) { [01:27:53.828] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:27:53.828] } [01:27:53.828] else { [01:27:53.828] ...future.result["stdout"] <- base::list(NULL) [01:27:53.828] } [01:27:53.828] base::close(...future.stdout) [01:27:53.828] ...future.stdout <- NULL [01:27:53.828] } [01:27:53.828] ...future.result$conditions <- ...future.conditions [01:27:53.828] ...future.result$finished <- base::Sys.time() [01:27:53.828] ...future.result [01:27:53.828] } [01:27:53.833] assign_globals() ... [01:27:53.833] List of 1 [01:27:53.833] $ my_fcn:Formal class 'standardGeneric' [package "methods"] with 8 slots [01:27:53.833] .. ..@ .Data :function (x) [01:27:53.833] .. ..@ generic : chr "my_fcn" [01:27:53.833] .. .. ..- attr(*, "package")= chr ".GlobalEnv" [01:27:53.833] .. ..@ package : chr ".GlobalEnv" [01:27:53.833] .. ..@ group : list() [01:27:53.833] .. ..@ valueClass: chr(0) [01:27:53.833] .. ..@ signature : chr "x" [01:27:53.833] .. ..@ default : NULL [01:27:53.833] .. ..@ skeleton : language (function (x) stop(gettextf("invalid call in method dispatch to '%s' (no default method)", ... [01:27:53.833] - attr(*, "where")=List of 1 [01:27:53.833] ..$ my_fcn: [01:27:53.833] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list" [01:27:53.833] - attr(*, "resolved")= logi FALSE [01:27:53.833] - attr(*, "total_size")= num 3936 [01:27:53.833] - attr(*, "already-done")= logi TRUE [01:27:53.844] - reassign environment for 'my_fcn' [01:27:53.844] - copied 'my_fcn' to environment [01:27:53.844] assign_globals() ... done [01:27:53.845] plan(): Setting new future strategy stack: [01:27:53.845] List of future strategies: [01:27:53.845] 1. sequential: [01:27:53.845] - args: function (..., envir = parent.frame(), workers = "") [01:27:53.845] - tweaked: FALSE [01:27:53.845] - call: NULL [01:27:53.846] plan(): nbrOfWorkers() = 1 [01:27:53.848] plan(): Setting new future strategy stack: [01:27:53.849] List of future strategies: [01:27:53.849] 1. sequential: [01:27:53.849] - args: function (..., envir = parent.frame(), workers = "") [01:27:53.849] - tweaked: FALSE [01:27:53.849] - call: plan(strategy) [01:27:53.849] plan(): nbrOfWorkers() = 1 [01:27:53.850] SequentialFuture started (and completed) [01:27:53.850] - Launch lazy future ... done [01:27:53.851] run() for 'SequentialFuture' ... done new("standardGeneric", .Data = function (x) standardGeneric("my_fcn"), generic = "my_fcn", package = ".GlobalEnv", group = list(), valueClass = character(0), signature = "x", default = NULL, skeleton = (function (x) stop(gettextf("invalid call in method dispatch to '%s' (no default method)", "my_fcn"), domain = NA))(x)) attr(,"generic") [1] "my_fcn" attr(,"generic")attr(,"package") [1] ".GlobalEnv" attr(,"package") [1] ".GlobalEnv" attr(,"group") list() attr(,"valueClass") character(0) attr(,"signature") [1] "x" attr(,"default") `\001NULL\001` attr(,"skeleton") (function (x) stop(gettextf("invalid call in method dispatch to '%s' (no default method)", "my_fcn"), domain = NA))(x) attr(,"class") [1] "standardGeneric" attr(,"class")attr(,"package") [1] "methods" [01:27:53.851] getGlobalsAndPackages() ... [01:27:53.852] Searching for globals... [01:27:53.862] - globals found: [7] '{', 'my_fcn', 'standardGeneric', 'NULL', 'stop', 'gettextf', 'x' [01:27:53.862] Searching for globals ... DONE [01:27:53.863] Resolving globals: FALSE [01:27:53.863] The total size of the 1 globals is 3.84 KiB (3936 bytes) [01:27:53.864] The total size of the 1 globals exported for future expression ('{; my_fcn(3); }') is 3.84 KiB.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'my_fcn' (3.84 KiB of class 'function') [01:27:53.864] - globals: [1] 'my_fcn' [01:27:53.864] [01:27:53.864] getGlobalsAndPackages() ... DONE [01:27:53.865] run() for 'Future' ... [01:27:53.865] - state: 'created' [01:27:53.865] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [01:27:53.866] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [01:27:53.866] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [01:27:53.866] - Field: 'label' [01:27:53.866] - Field: 'local' [01:27:53.867] - Field: 'owner' [01:27:53.867] - Field: 'envir' [01:27:53.867] - Field: 'packages' [01:27:53.867] - Field: 'gc' [01:27:53.867] - Field: 'conditions' [01:27:53.868] - Field: 'expr' [01:27:53.868] - Field: 'uuid' [01:27:53.868] - Field: 'seed' [01:27:53.868] - Field: 'version' [01:27:53.868] - Field: 'result' [01:27:53.869] - Field: 'asynchronous' [01:27:53.869] - Field: 'calls' [01:27:53.869] - Field: 'globals' [01:27:53.869] - Field: 'stdout' [01:27:53.869] - Field: 'earlySignal' [01:27:53.870] - Field: 'lazy' [01:27:53.870] - Field: 'state' [01:27:53.870] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [01:27:53.870] - Launch lazy future ... [01:27:53.870] Packages needed by the future expression (n = 0): [01:27:53.871] Packages needed by future strategies (n = 0): [01:27:53.871] { [01:27:53.871] { [01:27:53.871] { [01:27:53.871] ...future.startTime <- base::Sys.time() [01:27:53.871] { [01:27:53.871] { [01:27:53.871] { [01:27:53.871] base::local({ [01:27:53.871] has_future <- base::requireNamespace("future", [01:27:53.871] quietly = TRUE) [01:27:53.871] if (has_future) { [01:27:53.871] ns <- base::getNamespace("future") [01:27:53.871] version <- ns[[".package"]][["version"]] [01:27:53.871] if (is.null(version)) [01:27:53.871] version <- utils::packageVersion("future") [01:27:53.871] } [01:27:53.871] else { [01:27:53.871] version <- NULL [01:27:53.871] } [01:27:53.871] if (!has_future || version < "1.8.0") { [01:27:53.871] info <- base::c(r_version = base::gsub("R version ", [01:27:53.871] "", base::R.version$version.string), [01:27:53.871] platform = base::sprintf("%s (%s-bit)", [01:27:53.871] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:27:53.871] os = base::paste(base::Sys.info()[base::c("sysname", [01:27:53.871] "release", "version")], collapse = " "), [01:27:53.871] hostname = base::Sys.info()[["nodename"]]) [01:27:53.871] info <- base::sprintf("%s: %s", base::names(info), [01:27:53.871] info) [01:27:53.871] info <- base::paste(info, collapse = "; ") [01:27:53.871] if (!has_future) { [01:27:53.871] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:27:53.871] info) [01:27:53.871] } [01:27:53.871] else { [01:27:53.871] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:27:53.871] info, version) [01:27:53.871] } [01:27:53.871] base::stop(msg) [01:27:53.871] } [01:27:53.871] }) [01:27:53.871] } [01:27:53.871] options(future.plan = NULL) [01:27:53.871] Sys.unsetenv("R_FUTURE_PLAN") [01:27:53.871] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:27:53.871] } [01:27:53.871] ...future.workdir <- getwd() [01:27:53.871] } [01:27:53.871] ...future.oldOptions <- base::as.list(base::.Options) [01:27:53.871] ...future.oldEnvVars <- base::Sys.getenv() [01:27:53.871] } [01:27:53.871] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:27:53.871] future.globals.maxSize = NULL, future.globals.method = NULL, [01:27:53.871] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:27:53.871] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:27:53.871] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:27:53.871] future.stdout.windows.reencode = NULL, width = 80L) [01:27:53.871] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:27:53.871] base::names(...future.oldOptions)) [01:27:53.871] } [01:27:53.871] if (FALSE) { [01:27:53.871] } [01:27:53.871] else { [01:27:53.871] if (TRUE) { [01:27:53.871] ...future.stdout <- base::rawConnection(base::raw(0L), [01:27:53.871] open = "w") [01:27:53.871] } [01:27:53.871] else { [01:27:53.871] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:27:53.871] windows = "NUL", "/dev/null"), open = "w") [01:27:53.871] } [01:27:53.871] base::sink(...future.stdout, type = "output", split = FALSE) [01:27:53.871] base::on.exit(if (!base::is.null(...future.stdout)) { [01:27:53.871] base::sink(type = "output", split = FALSE) [01:27:53.871] base::close(...future.stdout) [01:27:53.871] }, add = TRUE) [01:27:53.871] } [01:27:53.871] ...future.frame <- base::sys.nframe() [01:27:53.871] ...future.conditions <- base::list() [01:27:53.871] ...future.rng <- base::globalenv()$.Random.seed [01:27:53.871] if (FALSE) { [01:27:53.871] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:27:53.871] "...future.value", "...future.globalenv.names", ".Random.seed") [01:27:53.871] } [01:27:53.871] ...future.result <- base::tryCatch({ [01:27:53.871] base::withCallingHandlers({ [01:27:53.871] ...future.value <- base::withVisible(base::local({ [01:27:53.871] my_fcn(3) [01:27:53.871] })) [01:27:53.871] future::FutureResult(value = ...future.value$value, [01:27:53.871] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:27:53.871] ...future.rng), globalenv = if (FALSE) [01:27:53.871] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:27:53.871] ...future.globalenv.names)) [01:27:53.871] else NULL, started = ...future.startTime, version = "1.8") [01:27:53.871] }, condition = base::local({ [01:27:53.871] c <- base::c [01:27:53.871] inherits <- base::inherits [01:27:53.871] invokeRestart <- base::invokeRestart [01:27:53.871] length <- base::length [01:27:53.871] list <- base::list [01:27:53.871] seq.int <- base::seq.int [01:27:53.871] signalCondition <- base::signalCondition [01:27:53.871] sys.calls <- base::sys.calls [01:27:53.871] `[[` <- base::`[[` [01:27:53.871] `+` <- base::`+` [01:27:53.871] `<<-` <- base::`<<-` [01:27:53.871] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:27:53.871] calls[seq.int(from = from + 12L, to = length(calls) - [01:27:53.871] 3L)] [01:27:53.871] } [01:27:53.871] function(cond) { [01:27:53.871] is_error <- inherits(cond, "error") [01:27:53.871] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:27:53.871] NULL) [01:27:53.871] if (is_error) { [01:27:53.871] sessionInformation <- function() { [01:27:53.871] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:27:53.871] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:27:53.871] search = base::search(), system = base::Sys.info()) [01:27:53.871] } [01:27:53.871] ...future.conditions[[length(...future.conditions) + [01:27:53.871] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:27:53.871] cond$call), session = sessionInformation(), [01:27:53.871] timestamp = base::Sys.time(), signaled = 0L) [01:27:53.871] signalCondition(cond) [01:27:53.871] } [01:27:53.871] else if (!ignore && TRUE && inherits(cond, c("condition", [01:27:53.871] "immediateCondition"))) { [01:27:53.871] signal <- TRUE && inherits(cond, "immediateCondition") [01:27:53.871] ...future.conditions[[length(...future.conditions) + [01:27:53.871] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:27:53.871] if (TRUE && !signal) { [01:27:53.871] muffleCondition <- function (cond, pattern = "^muffle") [01:27:53.871] { [01:27:53.871] inherits <- base::inherits [01:27:53.871] invokeRestart <- base::invokeRestart [01:27:53.871] is.null <- base::is.null [01:27:53.871] muffled <- FALSE [01:27:53.871] if (inherits(cond, "message")) { [01:27:53.871] muffled <- grepl(pattern, "muffleMessage") [01:27:53.871] if (muffled) [01:27:53.871] invokeRestart("muffleMessage") [01:27:53.871] } [01:27:53.871] else if (inherits(cond, "warning")) { [01:27:53.871] muffled <- grepl(pattern, "muffleWarning") [01:27:53.871] if (muffled) [01:27:53.871] invokeRestart("muffleWarning") [01:27:53.871] } [01:27:53.871] else if (inherits(cond, "condition")) { [01:27:53.871] if (!is.null(pattern)) { [01:27:53.871] computeRestarts <- base::computeRestarts [01:27:53.871] grepl <- base::grepl [01:27:53.871] restarts <- computeRestarts(cond) [01:27:53.871] for (restart in restarts) { [01:27:53.871] name <- restart$name [01:27:53.871] if (is.null(name)) [01:27:53.871] next [01:27:53.871] if (!grepl(pattern, name)) [01:27:53.871] next [01:27:53.871] invokeRestart(restart) [01:27:53.871] muffled <- TRUE [01:27:53.871] break [01:27:53.871] } [01:27:53.871] } [01:27:53.871] } [01:27:53.871] invisible(muffled) [01:27:53.871] } [01:27:53.871] muffleCondition(cond, pattern = "^muffle") [01:27:53.871] } [01:27:53.871] } [01:27:53.871] else { [01:27:53.871] if (TRUE) { [01:27:53.871] muffleCondition <- function (cond, pattern = "^muffle") [01:27:53.871] { [01:27:53.871] inherits <- base::inherits [01:27:53.871] invokeRestart <- base::invokeRestart [01:27:53.871] is.null <- base::is.null [01:27:53.871] muffled <- FALSE [01:27:53.871] if (inherits(cond, "message")) { [01:27:53.871] muffled <- grepl(pattern, "muffleMessage") [01:27:53.871] if (muffled) [01:27:53.871] invokeRestart("muffleMessage") [01:27:53.871] } [01:27:53.871] else if (inherits(cond, "warning")) { [01:27:53.871] muffled <- grepl(pattern, "muffleWarning") [01:27:53.871] if (muffled) [01:27:53.871] invokeRestart("muffleWarning") [01:27:53.871] } [01:27:53.871] else if (inherits(cond, "condition")) { [01:27:53.871] if (!is.null(pattern)) { [01:27:53.871] computeRestarts <- base::computeRestarts [01:27:53.871] grepl <- base::grepl [01:27:53.871] restarts <- computeRestarts(cond) [01:27:53.871] for (restart in restarts) { [01:27:53.871] name <- restart$name [01:27:53.871] if (is.null(name)) [01:27:53.871] next [01:27:53.871] if (!grepl(pattern, name)) [01:27:53.871] next [01:27:53.871] invokeRestart(restart) [01:27:53.871] muffled <- TRUE [01:27:53.871] break [01:27:53.871] } [01:27:53.871] } [01:27:53.871] } [01:27:53.871] invisible(muffled) [01:27:53.871] } [01:27:53.871] muffleCondition(cond, pattern = "^muffle") [01:27:53.871] } [01:27:53.871] } [01:27:53.871] } [01:27:53.871] })) [01:27:53.871] }, error = function(ex) { [01:27:53.871] base::structure(base::list(value = NULL, visible = NULL, [01:27:53.871] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:27:53.871] ...future.rng), started = ...future.startTime, [01:27:53.871] finished = Sys.time(), session_uuid = NA_character_, [01:27:53.871] version = "1.8"), class = "FutureResult") [01:27:53.871] }, finally = { [01:27:53.871] if (!identical(...future.workdir, getwd())) [01:27:53.871] setwd(...future.workdir) [01:27:53.871] { [01:27:53.871] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:27:53.871] ...future.oldOptions$nwarnings <- NULL [01:27:53.871] } [01:27:53.871] base::options(...future.oldOptions) [01:27:53.871] if (.Platform$OS.type == "windows") { [01:27:53.871] old_names <- names(...future.oldEnvVars) [01:27:53.871] envs <- base::Sys.getenv() [01:27:53.871] names <- names(envs) [01:27:53.871] common <- intersect(names, old_names) [01:27:53.871] added <- setdiff(names, old_names) [01:27:53.871] removed <- setdiff(old_names, names) [01:27:53.871] changed <- common[...future.oldEnvVars[common] != [01:27:53.871] envs[common]] [01:27:53.871] NAMES <- toupper(changed) [01:27:53.871] args <- list() [01:27:53.871] for (kk in seq_along(NAMES)) { [01:27:53.871] name <- changed[[kk]] [01:27:53.871] NAME <- NAMES[[kk]] [01:27:53.871] if (name != NAME && is.element(NAME, old_names)) [01:27:53.871] next [01:27:53.871] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:53.871] } [01:27:53.871] NAMES <- toupper(added) [01:27:53.871] for (kk in seq_along(NAMES)) { [01:27:53.871] name <- added[[kk]] [01:27:53.871] NAME <- NAMES[[kk]] [01:27:53.871] if (name != NAME && is.element(NAME, old_names)) [01:27:53.871] next [01:27:53.871] args[[name]] <- "" [01:27:53.871] } [01:27:53.871] NAMES <- toupper(removed) [01:27:53.871] for (kk in seq_along(NAMES)) { [01:27:53.871] name <- removed[[kk]] [01:27:53.871] NAME <- NAMES[[kk]] [01:27:53.871] if (name != NAME && is.element(NAME, old_names)) [01:27:53.871] next [01:27:53.871] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:53.871] } [01:27:53.871] if (length(args) > 0) [01:27:53.871] base::do.call(base::Sys.setenv, args = args) [01:27:53.871] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:27:53.871] } [01:27:53.871] else { [01:27:53.871] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:27:53.871] } [01:27:53.871] { [01:27:53.871] if (base::length(...future.futureOptionsAdded) > [01:27:53.871] 0L) { [01:27:53.871] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:27:53.871] base::names(opts) <- ...future.futureOptionsAdded [01:27:53.871] base::options(opts) [01:27:53.871] } [01:27:53.871] { [01:27:53.871] { [01:27:53.871] NULL [01:27:53.871] RNGkind("Mersenne-Twister") [01:27:53.871] base::rm(list = ".Random.seed", envir = base::globalenv(), [01:27:53.871] inherits = FALSE) [01:27:53.871] } [01:27:53.871] options(future.plan = NULL) [01:27:53.871] if (is.na(NA_character_)) [01:27:53.871] Sys.unsetenv("R_FUTURE_PLAN") [01:27:53.871] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:27:53.871] future::plan(list(function (..., envir = parent.frame()) [01:27:53.871] { [01:27:53.871] future <- SequentialFuture(..., envir = envir) [01:27:53.871] if (!future$lazy) [01:27:53.871] future <- run(future) [01:27:53.871] invisible(future) [01:27:53.871] }), .cleanup = FALSE, .init = FALSE) [01:27:53.871] } [01:27:53.871] } [01:27:53.871] } [01:27:53.871] }) [01:27:53.871] if (TRUE) { [01:27:53.871] base::sink(type = "output", split = FALSE) [01:27:53.871] if (TRUE) { [01:27:53.871] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:27:53.871] } [01:27:53.871] else { [01:27:53.871] ...future.result["stdout"] <- base::list(NULL) [01:27:53.871] } [01:27:53.871] base::close(...future.stdout) [01:27:53.871] ...future.stdout <- NULL [01:27:53.871] } [01:27:53.871] ...future.result$conditions <- ...future.conditions [01:27:53.871] ...future.result$finished <- base::Sys.time() [01:27:53.871] ...future.result [01:27:53.871] } [01:27:53.875] assign_globals() ... [01:27:53.875] List of 1 [01:27:53.875] $ my_fcn:Formal class 'standardGeneric' [package "methods"] with 8 slots [01:27:53.875] .. ..@ .Data :function (x) [01:27:53.875] .. ..@ generic : chr "my_fcn" [01:27:53.875] .. .. ..- attr(*, "package")= chr ".GlobalEnv" [01:27:53.875] .. ..@ package : chr ".GlobalEnv" [01:27:53.875] .. ..@ group : list() [01:27:53.875] .. ..@ valueClass: chr(0) [01:27:53.875] .. ..@ signature : chr "x" [01:27:53.875] .. ..@ default : NULL [01:27:53.875] .. ..@ skeleton : language (function (x) stop(gettextf("invalid call in method dispatch to '%s' (no default method)", ... [01:27:53.875] - attr(*, "where")=List of 1 [01:27:53.875] ..$ my_fcn: [01:27:53.875] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list" [01:27:53.875] - attr(*, "resolved")= logi FALSE [01:27:53.875] - attr(*, "total_size")= num 3936 [01:27:53.875] - attr(*, "already-done")= logi TRUE [01:27:53.882] - reassign environment for 'my_fcn' [01:27:53.882] - copied 'my_fcn' to environment [01:27:53.882] assign_globals() ... done [01:27:53.883] plan(): Setting new future strategy stack: [01:27:53.883] List of future strategies: [01:27:53.883] 1. sequential: [01:27:53.883] - args: function (..., envir = parent.frame(), workers = "") [01:27:53.883] - tweaked: FALSE [01:27:53.883] - call: NULL [01:27:53.883] plan(): nbrOfWorkers() = 1 [01:27:53.886] plan(): Setting new future strategy stack: [01:27:53.886] List of future strategies: [01:27:53.886] 1. sequential: [01:27:53.886] - args: function (..., envir = parent.frame(), workers = "") [01:27:53.886] - tweaked: FALSE [01:27:53.886] - call: plan(strategy) [01:27:53.887] plan(): nbrOfWorkers() = 1 [01:27:53.887] SequentialFuture started (and completed) [01:27:53.888] signalConditions() ... [01:27:53.888] - include = 'immediateCondition' [01:27:53.888] - exclude = [01:27:53.888] - resignal = FALSE [01:27:53.888] - Number of conditions: 1 [01:27:53.888] signalConditions() ... done [01:27:53.889] - Launch lazy future ... done [01:27:53.889] run() for 'SequentialFuture' ... done [01:27:53.889] signalConditions() ... [01:27:53.889] - include = 'immediateCondition' [01:27:53.889] - exclude = [01:27:53.890] - resignal = FALSE [01:27:53.890] - Number of conditions: 1 [01:27:53.890] signalConditions() ... done [01:27:53.893] Future state: 'finished' [01:27:53.893] signalConditions() ... [01:27:53.894] - include = 'condition' [01:27:53.894] - exclude = 'immediateCondition' [01:27:53.894] - resignal = TRUE [01:27:53.894] - Number of conditions: 1 [01:27:53.894] - Condition #1: 'simpleError', 'error', 'condition' [01:27:53.895] signalConditions() ... done Type of future: multisession [01:27:53.895] plan(): Setting new future strategy stack: [01:27:53.896] List of future strategies: [01:27:53.896] 1. multisession: [01:27:53.896] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [01:27:53.896] - tweaked: FALSE [01:27:53.896] - call: plan(strategy) [01:27:53.896] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [01:27:53.896] multisession: [01:27:53.896] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [01:27:53.896] - tweaked: FALSE [01:27:53.896] - call: plan(strategy) [01:27:53.902] getGlobalsAndPackages() ... [01:27:53.903] Not searching for globals [01:27:53.903] - globals: [0] [01:27:53.903] getGlobalsAndPackages() ... DONE [01:27:53.904] [local output] makeClusterPSOCK() ... [01:27:53.997] [local output] Workers: [n = 2] 'localhost', 'localhost' [01:27:54.005] [local output] Base port: 33698 [01:27:54.005] [local output] Getting setup options for 2 cluster nodes ... [01:27:54.005] [local output] - Node 1 of 2 ... [01:27:54.006] [local output] localMachine=TRUE => revtunnel=FALSE [01:27:54.008] Testing if worker's PID can be inferred: '"D:/RCompile/recent/R/bin/x64/Rscript" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/Rtmp25gQFm/worker.rank=1.parallelly.parent=1276.4fc11d06dee.pid\")), silent = TRUE)" -e "file.exists(\"D:/temp/Rtmp25gQFm/worker.rank=1.parallelly.parent=1276.4fc11d06dee.pid\")"' [01:27:54.556] - Possible to infer worker's PID: TRUE [01:27:54.557] [local output] Rscript port: 33698 [01:27:54.558] [local output] - Node 2 of 2 ... [01:27:54.559] [local output] localMachine=TRUE => revtunnel=FALSE [01:27:54.560] [local output] Rscript port: 33698 [01:27:54.561] [local output] Getting setup options for 2 cluster nodes ... done [01:27:54.561] [local output] - Parallel setup requested for some PSOCK nodes [01:27:54.562] [local output] Setting up PSOCK nodes in parallel [01:27:54.563] List of 36 [01:27:54.563] $ worker : chr "localhost" [01:27:54.563] ..- attr(*, "localhost")= logi TRUE [01:27:54.563] $ master : chr "localhost" [01:27:54.563] $ port : int 33698 [01:27:54.563] $ connectTimeout : num 120 [01:27:54.563] $ timeout : num 120 [01:27:54.563] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [01:27:54.563] $ homogeneous : logi TRUE [01:27:54.563] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=globals,S4methods.R:1276:CRANWIN"| __truncated__ [01:27:54.563] $ rscript_envs : NULL [01:27:54.563] $ rscript_libs : chr [1:2] "D:/temp/RtmpCIb4qz/RLIBS_32fc52ae7b47" "D:/RCompile/recent/R/library" [01:27:54.563] $ rscript_startup : NULL [01:27:54.563] $ rscript_sh : chr "cmd" [01:27:54.563] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [01:27:54.563] $ methods : logi TRUE [01:27:54.563] $ socketOptions : chr "no-delay" [01:27:54.563] $ useXDR : logi FALSE [01:27:54.563] $ outfile : chr "/dev/null" [01:27:54.563] $ renice : int NA [01:27:54.563] $ rshcmd : NULL [01:27:54.563] $ user : chr(0) [01:27:54.563] $ revtunnel : logi FALSE [01:27:54.563] $ rshlogfile : NULL [01:27:54.563] $ rshopts : chr(0) [01:27:54.563] $ rank : int 1 [01:27:54.563] $ manual : logi FALSE [01:27:54.563] $ dryrun : logi FALSE [01:27:54.563] $ quiet : logi FALSE [01:27:54.563] $ setup_strategy : chr "parallel" [01:27:54.563] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [01:27:54.563] $ pidfile : chr "D:/temp/Rtmp25gQFm/worker.rank=1.parallelly.parent=1276.4fc11d06dee.pid" [01:27:54.563] $ rshcmd_label : NULL [01:27:54.563] $ rsh_call : NULL [01:27:54.563] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [01:27:54.563] $ localMachine : logi TRUE [01:27:54.563] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [01:27:54.563] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [01:27:54.563] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [01:27:54.563] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [01:27:54.563] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [01:27:54.563] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [01:27:54.563] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [01:27:54.563] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [01:27:54.563] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [01:27:54.563] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [01:27:54.563] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [01:27:54.563] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [01:27:54.563] "parallel"), action = c("launch", "options"), verbose = FALSE) [01:27:54.563] $ arguments :List of 28 [01:27:54.563] ..$ worker : chr "localhost" [01:27:54.563] ..$ master : NULL [01:27:54.563] ..$ port : int 33698 [01:27:54.563] ..$ connectTimeout : num 120 [01:27:54.563] ..$ timeout : num 120 [01:27:54.563] ..$ rscript : NULL [01:27:54.563] ..$ homogeneous : NULL [01:27:54.563] ..$ rscript_args : NULL [01:27:54.563] ..$ rscript_envs : NULL [01:27:54.563] ..$ rscript_libs : chr [1:2] "D:/temp/RtmpCIb4qz/RLIBS_32fc52ae7b47" "D:/RCompile/recent/R/library" [01:27:54.563] ..$ rscript_startup : NULL [01:27:54.563] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [01:27:54.563] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [01:27:54.563] ..$ methods : logi TRUE [01:27:54.563] ..$ socketOptions : chr "no-delay" [01:27:54.563] ..$ useXDR : logi FALSE [01:27:54.563] ..$ outfile : chr "/dev/null" [01:27:54.563] ..$ renice : int NA [01:27:54.563] ..$ rshcmd : NULL [01:27:54.563] ..$ user : NULL [01:27:54.563] ..$ revtunnel : logi NA [01:27:54.563] ..$ rshlogfile : NULL [01:27:54.563] ..$ rshopts : NULL [01:27:54.563] ..$ rank : int 1 [01:27:54.563] ..$ manual : logi FALSE [01:27:54.563] ..$ dryrun : logi FALSE [01:27:54.563] ..$ quiet : logi FALSE [01:27:54.563] ..$ setup_strategy : chr "parallel" [01:27:54.563] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [01:27:54.593] [local output] System call to launch all workers: [01:27:54.593] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=globals,S4methods.R:1276:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/Rtmp25gQFm/worker.rank=1.parallelly.parent=1276.4fc11d06dee.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e ".libPaths(c(\"D:/temp/RtmpCIb4qz/RLIBS_32fc52ae7b47\",\"D:/RCompile/recent/R/library\"))" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=33698 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [01:27:54.594] [local output] Starting PSOCK main server [01:27:54.600] [local output] Workers launched [01:27:54.600] [local output] Waiting for workers to connect back [01:27:54.600] - [local output] 0 workers out of 2 ready [01:27:54.773] - [local output] 0 workers out of 2 ready [01:27:54.774] - [local output] 1 workers out of 2 ready [01:27:54.785] - [local output] 1 workers out of 2 ready [01:27:54.785] - [local output] 2 workers out of 2 ready [01:27:54.786] [local output] Launching of workers completed [01:27:54.786] [local output] Collecting session information from workers [01:27:54.787] [local output] - Worker #1 of 2 [01:27:54.788] [local output] - Worker #2 of 2 [01:27:54.788] [local output] makeClusterPSOCK() ... done [01:27:54.804] Packages needed by the future expression (n = 0): [01:27:54.804] Packages needed by future strategies (n = 0): [01:27:54.805] { [01:27:54.805] { [01:27:54.805] { [01:27:54.805] ...future.startTime <- base::Sys.time() [01:27:54.805] { [01:27:54.805] { [01:27:54.805] { [01:27:54.805] { [01:27:54.805] base::local({ [01:27:54.805] has_future <- base::requireNamespace("future", [01:27:54.805] quietly = TRUE) [01:27:54.805] if (has_future) { [01:27:54.805] ns <- base::getNamespace("future") [01:27:54.805] version <- ns[[".package"]][["version"]] [01:27:54.805] if (is.null(version)) [01:27:54.805] version <- utils::packageVersion("future") [01:27:54.805] } [01:27:54.805] else { [01:27:54.805] version <- NULL [01:27:54.805] } [01:27:54.805] if (!has_future || version < "1.8.0") { [01:27:54.805] info <- base::c(r_version = base::gsub("R version ", [01:27:54.805] "", base::R.version$version.string), [01:27:54.805] platform = base::sprintf("%s (%s-bit)", [01:27:54.805] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:27:54.805] os = base::paste(base::Sys.info()[base::c("sysname", [01:27:54.805] "release", "version")], collapse = " "), [01:27:54.805] hostname = base::Sys.info()[["nodename"]]) [01:27:54.805] info <- base::sprintf("%s: %s", base::names(info), [01:27:54.805] info) [01:27:54.805] info <- base::paste(info, collapse = "; ") [01:27:54.805] if (!has_future) { [01:27:54.805] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:27:54.805] info) [01:27:54.805] } [01:27:54.805] else { [01:27:54.805] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:27:54.805] info, version) [01:27:54.805] } [01:27:54.805] base::stop(msg) [01:27:54.805] } [01:27:54.805] }) [01:27:54.805] } [01:27:54.805] ...future.mc.cores.old <- base::getOption("mc.cores") [01:27:54.805] base::options(mc.cores = 1L) [01:27:54.805] } [01:27:54.805] options(future.plan = NULL) [01:27:54.805] Sys.unsetenv("R_FUTURE_PLAN") [01:27:54.805] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:27:54.805] } [01:27:54.805] ...future.workdir <- getwd() [01:27:54.805] } [01:27:54.805] ...future.oldOptions <- base::as.list(base::.Options) [01:27:54.805] ...future.oldEnvVars <- base::Sys.getenv() [01:27:54.805] } [01:27:54.805] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:27:54.805] future.globals.maxSize = NULL, future.globals.method = NULL, [01:27:54.805] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:27:54.805] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:27:54.805] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:27:54.805] future.stdout.windows.reencode = NULL, width = 80L) [01:27:54.805] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:27:54.805] base::names(...future.oldOptions)) [01:27:54.805] } [01:27:54.805] if (FALSE) { [01:27:54.805] } [01:27:54.805] else { [01:27:54.805] if (TRUE) { [01:27:54.805] ...future.stdout <- base::rawConnection(base::raw(0L), [01:27:54.805] open = "w") [01:27:54.805] } [01:27:54.805] else { [01:27:54.805] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:27:54.805] windows = "NUL", "/dev/null"), open = "w") [01:27:54.805] } [01:27:54.805] base::sink(...future.stdout, type = "output", split = FALSE) [01:27:54.805] base::on.exit(if (!base::is.null(...future.stdout)) { [01:27:54.805] base::sink(type = "output", split = FALSE) [01:27:54.805] base::close(...future.stdout) [01:27:54.805] }, add = TRUE) [01:27:54.805] } [01:27:54.805] ...future.frame <- base::sys.nframe() [01:27:54.805] ...future.conditions <- base::list() [01:27:54.805] ...future.rng <- base::globalenv()$.Random.seed [01:27:54.805] if (FALSE) { [01:27:54.805] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:27:54.805] "...future.value", "...future.globalenv.names", ".Random.seed") [01:27:54.805] } [01:27:54.805] ...future.result <- base::tryCatch({ [01:27:54.805] base::withCallingHandlers({ [01:27:54.805] ...future.value <- base::withVisible(base::local({ [01:27:54.805] ...future.makeSendCondition <- base::local({ [01:27:54.805] sendCondition <- NULL [01:27:54.805] function(frame = 1L) { [01:27:54.805] if (is.function(sendCondition)) [01:27:54.805] return(sendCondition) [01:27:54.805] ns <- getNamespace("parallel") [01:27:54.805] if (exists("sendData", mode = "function", [01:27:54.805] envir = ns)) { [01:27:54.805] parallel_sendData <- get("sendData", mode = "function", [01:27:54.805] envir = ns) [01:27:54.805] envir <- sys.frame(frame) [01:27:54.805] master <- NULL [01:27:54.805] while (!identical(envir, .GlobalEnv) && [01:27:54.805] !identical(envir, emptyenv())) { [01:27:54.805] if (exists("master", mode = "list", envir = envir, [01:27:54.805] inherits = FALSE)) { [01:27:54.805] master <- get("master", mode = "list", [01:27:54.805] envir = envir, inherits = FALSE) [01:27:54.805] if (inherits(master, c("SOCKnode", [01:27:54.805] "SOCK0node"))) { [01:27:54.805] sendCondition <<- function(cond) { [01:27:54.805] data <- list(type = "VALUE", value = cond, [01:27:54.805] success = TRUE) [01:27:54.805] parallel_sendData(master, data) [01:27:54.805] } [01:27:54.805] return(sendCondition) [01:27:54.805] } [01:27:54.805] } [01:27:54.805] frame <- frame + 1L [01:27:54.805] envir <- sys.frame(frame) [01:27:54.805] } [01:27:54.805] } [01:27:54.805] sendCondition <<- function(cond) NULL [01:27:54.805] } [01:27:54.805] }) [01:27:54.805] withCallingHandlers({ [01:27:54.805] NA [01:27:54.805] }, immediateCondition = function(cond) { [01:27:54.805] sendCondition <- ...future.makeSendCondition() [01:27:54.805] sendCondition(cond) [01:27:54.805] muffleCondition <- function (cond, pattern = "^muffle") [01:27:54.805] { [01:27:54.805] inherits <- base::inherits [01:27:54.805] invokeRestart <- base::invokeRestart [01:27:54.805] is.null <- base::is.null [01:27:54.805] muffled <- FALSE [01:27:54.805] if (inherits(cond, "message")) { [01:27:54.805] muffled <- grepl(pattern, "muffleMessage") [01:27:54.805] if (muffled) [01:27:54.805] invokeRestart("muffleMessage") [01:27:54.805] } [01:27:54.805] else if (inherits(cond, "warning")) { [01:27:54.805] muffled <- grepl(pattern, "muffleWarning") [01:27:54.805] if (muffled) [01:27:54.805] invokeRestart("muffleWarning") [01:27:54.805] } [01:27:54.805] else if (inherits(cond, "condition")) { [01:27:54.805] if (!is.null(pattern)) { [01:27:54.805] computeRestarts <- base::computeRestarts [01:27:54.805] grepl <- base::grepl [01:27:54.805] restarts <- computeRestarts(cond) [01:27:54.805] for (restart in restarts) { [01:27:54.805] name <- restart$name [01:27:54.805] if (is.null(name)) [01:27:54.805] next [01:27:54.805] if (!grepl(pattern, name)) [01:27:54.805] next [01:27:54.805] invokeRestart(restart) [01:27:54.805] muffled <- TRUE [01:27:54.805] break [01:27:54.805] } [01:27:54.805] } [01:27:54.805] } [01:27:54.805] invisible(muffled) [01:27:54.805] } [01:27:54.805] muffleCondition(cond) [01:27:54.805] }) [01:27:54.805] })) [01:27:54.805] future::FutureResult(value = ...future.value$value, [01:27:54.805] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:27:54.805] ...future.rng), globalenv = if (FALSE) [01:27:54.805] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:27:54.805] ...future.globalenv.names)) [01:27:54.805] else NULL, started = ...future.startTime, version = "1.8") [01:27:54.805] }, condition = base::local({ [01:27:54.805] c <- base::c [01:27:54.805] inherits <- base::inherits [01:27:54.805] invokeRestart <- base::invokeRestart [01:27:54.805] length <- base::length [01:27:54.805] list <- base::list [01:27:54.805] seq.int <- base::seq.int [01:27:54.805] signalCondition <- base::signalCondition [01:27:54.805] sys.calls <- base::sys.calls [01:27:54.805] `[[` <- base::`[[` [01:27:54.805] `+` <- base::`+` [01:27:54.805] `<<-` <- base::`<<-` [01:27:54.805] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:27:54.805] calls[seq.int(from = from + 12L, to = length(calls) - [01:27:54.805] 3L)] [01:27:54.805] } [01:27:54.805] function(cond) { [01:27:54.805] is_error <- inherits(cond, "error") [01:27:54.805] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:27:54.805] NULL) [01:27:54.805] if (is_error) { [01:27:54.805] sessionInformation <- function() { [01:27:54.805] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:27:54.805] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:27:54.805] search = base::search(), system = base::Sys.info()) [01:27:54.805] } [01:27:54.805] ...future.conditions[[length(...future.conditions) + [01:27:54.805] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:27:54.805] cond$call), session = sessionInformation(), [01:27:54.805] timestamp = base::Sys.time(), signaled = 0L) [01:27:54.805] signalCondition(cond) [01:27:54.805] } [01:27:54.805] else if (!ignore && TRUE && inherits(cond, c("condition", [01:27:54.805] "immediateCondition"))) { [01:27:54.805] signal <- TRUE && inherits(cond, "immediateCondition") [01:27:54.805] ...future.conditions[[length(...future.conditions) + [01:27:54.805] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:27:54.805] if (TRUE && !signal) { [01:27:54.805] muffleCondition <- function (cond, pattern = "^muffle") [01:27:54.805] { [01:27:54.805] inherits <- base::inherits [01:27:54.805] invokeRestart <- base::invokeRestart [01:27:54.805] is.null <- base::is.null [01:27:54.805] muffled <- FALSE [01:27:54.805] if (inherits(cond, "message")) { [01:27:54.805] muffled <- grepl(pattern, "muffleMessage") [01:27:54.805] if (muffled) [01:27:54.805] invokeRestart("muffleMessage") [01:27:54.805] } [01:27:54.805] else if (inherits(cond, "warning")) { [01:27:54.805] muffled <- grepl(pattern, "muffleWarning") [01:27:54.805] if (muffled) [01:27:54.805] invokeRestart("muffleWarning") [01:27:54.805] } [01:27:54.805] else if (inherits(cond, "condition")) { [01:27:54.805] if (!is.null(pattern)) { [01:27:54.805] computeRestarts <- base::computeRestarts [01:27:54.805] grepl <- base::grepl [01:27:54.805] restarts <- computeRestarts(cond) [01:27:54.805] for (restart in restarts) { [01:27:54.805] name <- restart$name [01:27:54.805] if (is.null(name)) [01:27:54.805] next [01:27:54.805] if (!grepl(pattern, name)) [01:27:54.805] next [01:27:54.805] invokeRestart(restart) [01:27:54.805] muffled <- TRUE [01:27:54.805] break [01:27:54.805] } [01:27:54.805] } [01:27:54.805] } [01:27:54.805] invisible(muffled) [01:27:54.805] } [01:27:54.805] muffleCondition(cond, pattern = "^muffle") [01:27:54.805] } [01:27:54.805] } [01:27:54.805] else { [01:27:54.805] if (TRUE) { [01:27:54.805] muffleCondition <- function (cond, pattern = "^muffle") [01:27:54.805] { [01:27:54.805] inherits <- base::inherits [01:27:54.805] invokeRestart <- base::invokeRestart [01:27:54.805] is.null <- base::is.null [01:27:54.805] muffled <- FALSE [01:27:54.805] if (inherits(cond, "message")) { [01:27:54.805] muffled <- grepl(pattern, "muffleMessage") [01:27:54.805] if (muffled) [01:27:54.805] invokeRestart("muffleMessage") [01:27:54.805] } [01:27:54.805] else if (inherits(cond, "warning")) { [01:27:54.805] muffled <- grepl(pattern, "muffleWarning") [01:27:54.805] if (muffled) [01:27:54.805] invokeRestart("muffleWarning") [01:27:54.805] } [01:27:54.805] else if (inherits(cond, "condition")) { [01:27:54.805] if (!is.null(pattern)) { [01:27:54.805] computeRestarts <- base::computeRestarts [01:27:54.805] grepl <- base::grepl [01:27:54.805] restarts <- computeRestarts(cond) [01:27:54.805] for (restart in restarts) { [01:27:54.805] name <- restart$name [01:27:54.805] if (is.null(name)) [01:27:54.805] next [01:27:54.805] if (!grepl(pattern, name)) [01:27:54.805] next [01:27:54.805] invokeRestart(restart) [01:27:54.805] muffled <- TRUE [01:27:54.805] break [01:27:54.805] } [01:27:54.805] } [01:27:54.805] } [01:27:54.805] invisible(muffled) [01:27:54.805] } [01:27:54.805] muffleCondition(cond, pattern = "^muffle") [01:27:54.805] } [01:27:54.805] } [01:27:54.805] } [01:27:54.805] })) [01:27:54.805] }, error = function(ex) { [01:27:54.805] base::structure(base::list(value = NULL, visible = NULL, [01:27:54.805] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:27:54.805] ...future.rng), started = ...future.startTime, [01:27:54.805] finished = Sys.time(), session_uuid = NA_character_, [01:27:54.805] version = "1.8"), class = "FutureResult") [01:27:54.805] }, finally = { [01:27:54.805] if (!identical(...future.workdir, getwd())) [01:27:54.805] setwd(...future.workdir) [01:27:54.805] { [01:27:54.805] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:27:54.805] ...future.oldOptions$nwarnings <- NULL [01:27:54.805] } [01:27:54.805] base::options(...future.oldOptions) [01:27:54.805] if (.Platform$OS.type == "windows") { [01:27:54.805] old_names <- names(...future.oldEnvVars) [01:27:54.805] envs <- base::Sys.getenv() [01:27:54.805] names <- names(envs) [01:27:54.805] common <- intersect(names, old_names) [01:27:54.805] added <- setdiff(names, old_names) [01:27:54.805] removed <- setdiff(old_names, names) [01:27:54.805] changed <- common[...future.oldEnvVars[common] != [01:27:54.805] envs[common]] [01:27:54.805] NAMES <- toupper(changed) [01:27:54.805] args <- list() [01:27:54.805] for (kk in seq_along(NAMES)) { [01:27:54.805] name <- changed[[kk]] [01:27:54.805] NAME <- NAMES[[kk]] [01:27:54.805] if (name != NAME && is.element(NAME, old_names)) [01:27:54.805] next [01:27:54.805] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:54.805] } [01:27:54.805] NAMES <- toupper(added) [01:27:54.805] for (kk in seq_along(NAMES)) { [01:27:54.805] name <- added[[kk]] [01:27:54.805] NAME <- NAMES[[kk]] [01:27:54.805] if (name != NAME && is.element(NAME, old_names)) [01:27:54.805] next [01:27:54.805] args[[name]] <- "" [01:27:54.805] } [01:27:54.805] NAMES <- toupper(removed) [01:27:54.805] for (kk in seq_along(NAMES)) { [01:27:54.805] name <- removed[[kk]] [01:27:54.805] NAME <- NAMES[[kk]] [01:27:54.805] if (name != NAME && is.element(NAME, old_names)) [01:27:54.805] next [01:27:54.805] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:54.805] } [01:27:54.805] if (length(args) > 0) [01:27:54.805] base::do.call(base::Sys.setenv, args = args) [01:27:54.805] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:27:54.805] } [01:27:54.805] else { [01:27:54.805] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:27:54.805] } [01:27:54.805] { [01:27:54.805] if (base::length(...future.futureOptionsAdded) > [01:27:54.805] 0L) { [01:27:54.805] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:27:54.805] base::names(opts) <- ...future.futureOptionsAdded [01:27:54.805] base::options(opts) [01:27:54.805] } [01:27:54.805] { [01:27:54.805] { [01:27:54.805] base::options(mc.cores = ...future.mc.cores.old) [01:27:54.805] NULL [01:27:54.805] } [01:27:54.805] options(future.plan = NULL) [01:27:54.805] if (is.na(NA_character_)) [01:27:54.805] Sys.unsetenv("R_FUTURE_PLAN") [01:27:54.805] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:27:54.805] future::plan(list(function (..., workers = availableCores(), [01:27:54.805] lazy = FALSE, rscript_libs = .libPaths(), [01:27:54.805] envir = parent.frame()) [01:27:54.805] { [01:27:54.805] if (is.function(workers)) [01:27:54.805] workers <- workers() [01:27:54.805] workers <- structure(as.integer(workers), [01:27:54.805] class = class(workers)) [01:27:54.805] stop_if_not(length(workers) == 1, is.finite(workers), [01:27:54.805] workers >= 1) [01:27:54.805] if (workers == 1L && !inherits(workers, "AsIs")) { [01:27:54.805] return(sequential(..., lazy = TRUE, envir = envir)) [01:27:54.805] } [01:27:54.805] future <- MultisessionFuture(..., workers = workers, [01:27:54.805] lazy = lazy, rscript_libs = rscript_libs, [01:27:54.805] envir = envir) [01:27:54.805] if (!future$lazy) [01:27:54.805] future <- run(future) [01:27:54.805] invisible(future) [01:27:54.805] }), .cleanup = FALSE, .init = FALSE) [01:27:54.805] } [01:27:54.805] } [01:27:54.805] } [01:27:54.805] }) [01:27:54.805] if (TRUE) { [01:27:54.805] base::sink(type = "output", split = FALSE) [01:27:54.805] if (TRUE) { [01:27:54.805] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:27:54.805] } [01:27:54.805] else { [01:27:54.805] ...future.result["stdout"] <- base::list(NULL) [01:27:54.805] } [01:27:54.805] base::close(...future.stdout) [01:27:54.805] ...future.stdout <- NULL [01:27:54.805] } [01:27:54.805] ...future.result$conditions <- ...future.conditions [01:27:54.805] ...future.result$finished <- base::Sys.time() [01:27:54.805] ...future.result [01:27:54.805] } [01:27:54.889] MultisessionFuture started [01:27:54.889] result() for ClusterFuture ... [01:27:54.890] receiveMessageFromWorker() for ClusterFuture ... [01:27:54.890] - Validating connection of MultisessionFuture [01:27:54.958] - received message: FutureResult [01:27:54.958] - Received FutureResult [01:27:54.961] - Erased future from FutureRegistry [01:27:54.962] result() for ClusterFuture ... [01:27:54.962] - result already collected: FutureResult [01:27:54.962] result() for ClusterFuture ... done [01:27:54.962] receiveMessageFromWorker() for ClusterFuture ... done [01:27:54.962] result() for ClusterFuture ... done [01:27:54.963] result() for ClusterFuture ... [01:27:54.963] - result already collected: FutureResult [01:27:54.963] result() for ClusterFuture ... done [01:27:54.963] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [01:27:54.966] plan(): nbrOfWorkers() = 2 [01:27:54.966] getGlobalsAndPackages() ... [01:27:54.966] Searching for globals... [01:27:54.970] - globals found: [7] '{', 'my_fcn', 'standardGeneric', 'NULL', 'stop', 'gettextf', 'x' [01:27:54.970] Searching for globals ... DONE [01:27:54.970] Resolving globals: FALSE [01:27:54.971] The total size of the 1 globals is 3.84 KiB (3936 bytes) [01:27:54.971] The total size of the 1 globals exported for future expression ('{; my_fcn; }') is 3.84 KiB.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'my_fcn' (3.84 KiB of class 'function') [01:27:54.972] - globals: [1] 'my_fcn' [01:27:54.972] [01:27:54.972] getGlobalsAndPackages() ... DONE [01:27:54.972] run() for 'Future' ... [01:27:54.973] - state: 'created' [01:27:54.973] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [01:27:54.988] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [01:27:54.988] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [01:27:54.988] - Field: 'node' [01:27:54.988] - Field: 'label' [01:27:54.989] - Field: 'local' [01:27:54.989] - Field: 'owner' [01:27:54.989] - Field: 'envir' [01:27:54.989] - Field: 'workers' [01:27:54.989] - Field: 'packages' [01:27:54.990] - Field: 'gc' [01:27:54.990] - Field: 'conditions' [01:27:54.990] - Field: 'persistent' [01:27:54.990] - Field: 'expr' [01:27:54.990] - Field: 'uuid' [01:27:54.991] - Field: 'seed' [01:27:54.991] - Field: 'version' [01:27:54.991] - Field: 'result' [01:27:54.991] - Field: 'asynchronous' [01:27:54.991] - Field: 'calls' [01:27:54.991] - Field: 'globals' [01:27:54.992] - Field: 'stdout' [01:27:54.992] - Field: 'earlySignal' [01:27:54.992] - Field: 'lazy' [01:27:54.992] - Field: 'state' [01:27:54.992] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [01:27:54.993] - Launch lazy future ... [01:27:54.993] Packages needed by the future expression (n = 0): [01:27:54.993] Packages needed by future strategies (n = 0): [01:27:54.994] { [01:27:54.994] { [01:27:54.994] { [01:27:54.994] ...future.startTime <- base::Sys.time() [01:27:54.994] { [01:27:54.994] { [01:27:54.994] { [01:27:54.994] { [01:27:54.994] base::local({ [01:27:54.994] has_future <- base::requireNamespace("future", [01:27:54.994] quietly = TRUE) [01:27:54.994] if (has_future) { [01:27:54.994] ns <- base::getNamespace("future") [01:27:54.994] version <- ns[[".package"]][["version"]] [01:27:54.994] if (is.null(version)) [01:27:54.994] version <- utils::packageVersion("future") [01:27:54.994] } [01:27:54.994] else { [01:27:54.994] version <- NULL [01:27:54.994] } [01:27:54.994] if (!has_future || version < "1.8.0") { [01:27:54.994] info <- base::c(r_version = base::gsub("R version ", [01:27:54.994] "", base::R.version$version.string), [01:27:54.994] platform = base::sprintf("%s (%s-bit)", [01:27:54.994] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:27:54.994] os = base::paste(base::Sys.info()[base::c("sysname", [01:27:54.994] "release", "version")], collapse = " "), [01:27:54.994] hostname = base::Sys.info()[["nodename"]]) [01:27:54.994] info <- base::sprintf("%s: %s", base::names(info), [01:27:54.994] info) [01:27:54.994] info <- base::paste(info, collapse = "; ") [01:27:54.994] if (!has_future) { [01:27:54.994] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:27:54.994] info) [01:27:54.994] } [01:27:54.994] else { [01:27:54.994] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:27:54.994] info, version) [01:27:54.994] } [01:27:54.994] base::stop(msg) [01:27:54.994] } [01:27:54.994] }) [01:27:54.994] } [01:27:54.994] ...future.mc.cores.old <- base::getOption("mc.cores") [01:27:54.994] base::options(mc.cores = 1L) [01:27:54.994] } [01:27:54.994] options(future.plan = NULL) [01:27:54.994] Sys.unsetenv("R_FUTURE_PLAN") [01:27:54.994] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:27:54.994] } [01:27:54.994] ...future.workdir <- getwd() [01:27:54.994] } [01:27:54.994] ...future.oldOptions <- base::as.list(base::.Options) [01:27:54.994] ...future.oldEnvVars <- base::Sys.getenv() [01:27:54.994] } [01:27:54.994] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:27:54.994] future.globals.maxSize = NULL, future.globals.method = NULL, [01:27:54.994] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:27:54.994] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:27:54.994] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:27:54.994] future.stdout.windows.reencode = NULL, width = 80L) [01:27:54.994] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:27:54.994] base::names(...future.oldOptions)) [01:27:54.994] } [01:27:54.994] if (FALSE) { [01:27:54.994] } [01:27:54.994] else { [01:27:54.994] if (TRUE) { [01:27:54.994] ...future.stdout <- base::rawConnection(base::raw(0L), [01:27:54.994] open = "w") [01:27:54.994] } [01:27:54.994] else { [01:27:54.994] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:27:54.994] windows = "NUL", "/dev/null"), open = "w") [01:27:54.994] } [01:27:54.994] base::sink(...future.stdout, type = "output", split = FALSE) [01:27:54.994] base::on.exit(if (!base::is.null(...future.stdout)) { [01:27:54.994] base::sink(type = "output", split = FALSE) [01:27:54.994] base::close(...future.stdout) [01:27:54.994] }, add = TRUE) [01:27:54.994] } [01:27:54.994] ...future.frame <- base::sys.nframe() [01:27:54.994] ...future.conditions <- base::list() [01:27:54.994] ...future.rng <- base::globalenv()$.Random.seed [01:27:54.994] if (FALSE) { [01:27:54.994] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:27:54.994] "...future.value", "...future.globalenv.names", ".Random.seed") [01:27:54.994] } [01:27:54.994] ...future.result <- base::tryCatch({ [01:27:54.994] base::withCallingHandlers({ [01:27:54.994] ...future.value <- base::withVisible(base::local({ [01:27:54.994] ...future.makeSendCondition <- base::local({ [01:27:54.994] sendCondition <- NULL [01:27:54.994] function(frame = 1L) { [01:27:54.994] if (is.function(sendCondition)) [01:27:54.994] return(sendCondition) [01:27:54.994] ns <- getNamespace("parallel") [01:27:54.994] if (exists("sendData", mode = "function", [01:27:54.994] envir = ns)) { [01:27:54.994] parallel_sendData <- get("sendData", mode = "function", [01:27:54.994] envir = ns) [01:27:54.994] envir <- sys.frame(frame) [01:27:54.994] master <- NULL [01:27:54.994] while (!identical(envir, .GlobalEnv) && [01:27:54.994] !identical(envir, emptyenv())) { [01:27:54.994] if (exists("master", mode = "list", envir = envir, [01:27:54.994] inherits = FALSE)) { [01:27:54.994] master <- get("master", mode = "list", [01:27:54.994] envir = envir, inherits = FALSE) [01:27:54.994] if (inherits(master, c("SOCKnode", [01:27:54.994] "SOCK0node"))) { [01:27:54.994] sendCondition <<- function(cond) { [01:27:54.994] data <- list(type = "VALUE", value = cond, [01:27:54.994] success = TRUE) [01:27:54.994] parallel_sendData(master, data) [01:27:54.994] } [01:27:54.994] return(sendCondition) [01:27:54.994] } [01:27:54.994] } [01:27:54.994] frame <- frame + 1L [01:27:54.994] envir <- sys.frame(frame) [01:27:54.994] } [01:27:54.994] } [01:27:54.994] sendCondition <<- function(cond) NULL [01:27:54.994] } [01:27:54.994] }) [01:27:54.994] withCallingHandlers({ [01:27:54.994] { [01:27:54.994] my_fcn [01:27:54.994] } [01:27:54.994] }, immediateCondition = function(cond) { [01:27:54.994] sendCondition <- ...future.makeSendCondition() [01:27:54.994] sendCondition(cond) [01:27:54.994] muffleCondition <- function (cond, pattern = "^muffle") [01:27:54.994] { [01:27:54.994] inherits <- base::inherits [01:27:54.994] invokeRestart <- base::invokeRestart [01:27:54.994] is.null <- base::is.null [01:27:54.994] muffled <- FALSE [01:27:54.994] if (inherits(cond, "message")) { [01:27:54.994] muffled <- grepl(pattern, "muffleMessage") [01:27:54.994] if (muffled) [01:27:54.994] invokeRestart("muffleMessage") [01:27:54.994] } [01:27:54.994] else if (inherits(cond, "warning")) { [01:27:54.994] muffled <- grepl(pattern, "muffleWarning") [01:27:54.994] if (muffled) [01:27:54.994] invokeRestart("muffleWarning") [01:27:54.994] } [01:27:54.994] else if (inherits(cond, "condition")) { [01:27:54.994] if (!is.null(pattern)) { [01:27:54.994] computeRestarts <- base::computeRestarts [01:27:54.994] grepl <- base::grepl [01:27:54.994] restarts <- computeRestarts(cond) [01:27:54.994] for (restart in restarts) { [01:27:54.994] name <- restart$name [01:27:54.994] if (is.null(name)) [01:27:54.994] next [01:27:54.994] if (!grepl(pattern, name)) [01:27:54.994] next [01:27:54.994] invokeRestart(restart) [01:27:54.994] muffled <- TRUE [01:27:54.994] break [01:27:54.994] } [01:27:54.994] } [01:27:54.994] } [01:27:54.994] invisible(muffled) [01:27:54.994] } [01:27:54.994] muffleCondition(cond) [01:27:54.994] }) [01:27:54.994] })) [01:27:54.994] future::FutureResult(value = ...future.value$value, [01:27:54.994] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:27:54.994] ...future.rng), globalenv = if (FALSE) [01:27:54.994] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:27:54.994] ...future.globalenv.names)) [01:27:54.994] else NULL, started = ...future.startTime, version = "1.8") [01:27:54.994] }, condition = base::local({ [01:27:54.994] c <- base::c [01:27:54.994] inherits <- base::inherits [01:27:54.994] invokeRestart <- base::invokeRestart [01:27:54.994] length <- base::length [01:27:54.994] list <- base::list [01:27:54.994] seq.int <- base::seq.int [01:27:54.994] signalCondition <- base::signalCondition [01:27:54.994] sys.calls <- base::sys.calls [01:27:54.994] `[[` <- base::`[[` [01:27:54.994] `+` <- base::`+` [01:27:54.994] `<<-` <- base::`<<-` [01:27:54.994] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:27:54.994] calls[seq.int(from = from + 12L, to = length(calls) - [01:27:54.994] 3L)] [01:27:54.994] } [01:27:54.994] function(cond) { [01:27:54.994] is_error <- inherits(cond, "error") [01:27:54.994] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:27:54.994] NULL) [01:27:54.994] if (is_error) { [01:27:54.994] sessionInformation <- function() { [01:27:54.994] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:27:54.994] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:27:54.994] search = base::search(), system = base::Sys.info()) [01:27:54.994] } [01:27:54.994] ...future.conditions[[length(...future.conditions) + [01:27:54.994] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:27:54.994] cond$call), session = sessionInformation(), [01:27:54.994] timestamp = base::Sys.time(), signaled = 0L) [01:27:54.994] signalCondition(cond) [01:27:54.994] } [01:27:54.994] else if (!ignore && TRUE && inherits(cond, c("condition", [01:27:54.994] "immediateCondition"))) { [01:27:54.994] signal <- TRUE && inherits(cond, "immediateCondition") [01:27:54.994] ...future.conditions[[length(...future.conditions) + [01:27:54.994] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:27:54.994] if (TRUE && !signal) { [01:27:54.994] muffleCondition <- function (cond, pattern = "^muffle") [01:27:54.994] { [01:27:54.994] inherits <- base::inherits [01:27:54.994] invokeRestart <- base::invokeRestart [01:27:54.994] is.null <- base::is.null [01:27:54.994] muffled <- FALSE [01:27:54.994] if (inherits(cond, "message")) { [01:27:54.994] muffled <- grepl(pattern, "muffleMessage") [01:27:54.994] if (muffled) [01:27:54.994] invokeRestart("muffleMessage") [01:27:54.994] } [01:27:54.994] else if (inherits(cond, "warning")) { [01:27:54.994] muffled <- grepl(pattern, "muffleWarning") [01:27:54.994] if (muffled) [01:27:54.994] invokeRestart("muffleWarning") [01:27:54.994] } [01:27:54.994] else if (inherits(cond, "condition")) { [01:27:54.994] if (!is.null(pattern)) { [01:27:54.994] computeRestarts <- base::computeRestarts [01:27:54.994] grepl <- base::grepl [01:27:54.994] restarts <- computeRestarts(cond) [01:27:54.994] for (restart in restarts) { [01:27:54.994] name <- restart$name [01:27:54.994] if (is.null(name)) [01:27:54.994] next [01:27:54.994] if (!grepl(pattern, name)) [01:27:54.994] next [01:27:54.994] invokeRestart(restart) [01:27:54.994] muffled <- TRUE [01:27:54.994] break [01:27:54.994] } [01:27:54.994] } [01:27:54.994] } [01:27:54.994] invisible(muffled) [01:27:54.994] } [01:27:54.994] muffleCondition(cond, pattern = "^muffle") [01:27:54.994] } [01:27:54.994] } [01:27:54.994] else { [01:27:54.994] if (TRUE) { [01:27:54.994] muffleCondition <- function (cond, pattern = "^muffle") [01:27:54.994] { [01:27:54.994] inherits <- base::inherits [01:27:54.994] invokeRestart <- base::invokeRestart [01:27:54.994] is.null <- base::is.null [01:27:54.994] muffled <- FALSE [01:27:54.994] if (inherits(cond, "message")) { [01:27:54.994] muffled <- grepl(pattern, "muffleMessage") [01:27:54.994] if (muffled) [01:27:54.994] invokeRestart("muffleMessage") [01:27:54.994] } [01:27:54.994] else if (inherits(cond, "warning")) { [01:27:54.994] muffled <- grepl(pattern, "muffleWarning") [01:27:54.994] if (muffled) [01:27:54.994] invokeRestart("muffleWarning") [01:27:54.994] } [01:27:54.994] else if (inherits(cond, "condition")) { [01:27:54.994] if (!is.null(pattern)) { [01:27:54.994] computeRestarts <- base::computeRestarts [01:27:54.994] grepl <- base::grepl [01:27:54.994] restarts <- computeRestarts(cond) [01:27:54.994] for (restart in restarts) { [01:27:54.994] name <- restart$name [01:27:54.994] if (is.null(name)) [01:27:54.994] next [01:27:54.994] if (!grepl(pattern, name)) [01:27:54.994] next [01:27:54.994] invokeRestart(restart) [01:27:54.994] muffled <- TRUE [01:27:54.994] break [01:27:54.994] } [01:27:54.994] } [01:27:54.994] } [01:27:54.994] invisible(muffled) [01:27:54.994] } [01:27:54.994] muffleCondition(cond, pattern = "^muffle") [01:27:54.994] } [01:27:54.994] } [01:27:54.994] } [01:27:54.994] })) [01:27:54.994] }, error = function(ex) { [01:27:54.994] base::structure(base::list(value = NULL, visible = NULL, [01:27:54.994] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:27:54.994] ...future.rng), started = ...future.startTime, [01:27:54.994] finished = Sys.time(), session_uuid = NA_character_, [01:27:54.994] version = "1.8"), class = "FutureResult") [01:27:54.994] }, finally = { [01:27:54.994] if (!identical(...future.workdir, getwd())) [01:27:54.994] setwd(...future.workdir) [01:27:54.994] { [01:27:54.994] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:27:54.994] ...future.oldOptions$nwarnings <- NULL [01:27:54.994] } [01:27:54.994] base::options(...future.oldOptions) [01:27:54.994] if (.Platform$OS.type == "windows") { [01:27:54.994] old_names <- names(...future.oldEnvVars) [01:27:54.994] envs <- base::Sys.getenv() [01:27:54.994] names <- names(envs) [01:27:54.994] common <- intersect(names, old_names) [01:27:54.994] added <- setdiff(names, old_names) [01:27:54.994] removed <- setdiff(old_names, names) [01:27:54.994] changed <- common[...future.oldEnvVars[common] != [01:27:54.994] envs[common]] [01:27:54.994] NAMES <- toupper(changed) [01:27:54.994] args <- list() [01:27:54.994] for (kk in seq_along(NAMES)) { [01:27:54.994] name <- changed[[kk]] [01:27:54.994] NAME <- NAMES[[kk]] [01:27:54.994] if (name != NAME && is.element(NAME, old_names)) [01:27:54.994] next [01:27:54.994] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:54.994] } [01:27:54.994] NAMES <- toupper(added) [01:27:54.994] for (kk in seq_along(NAMES)) { [01:27:54.994] name <- added[[kk]] [01:27:54.994] NAME <- NAMES[[kk]] [01:27:54.994] if (name != NAME && is.element(NAME, old_names)) [01:27:54.994] next [01:27:54.994] args[[name]] <- "" [01:27:54.994] } [01:27:54.994] NAMES <- toupper(removed) [01:27:54.994] for (kk in seq_along(NAMES)) { [01:27:54.994] name <- removed[[kk]] [01:27:54.994] NAME <- NAMES[[kk]] [01:27:54.994] if (name != NAME && is.element(NAME, old_names)) [01:27:54.994] next [01:27:54.994] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:54.994] } [01:27:54.994] if (length(args) > 0) [01:27:54.994] base::do.call(base::Sys.setenv, args = args) [01:27:54.994] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:27:54.994] } [01:27:54.994] else { [01:27:54.994] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:27:54.994] } [01:27:54.994] { [01:27:54.994] if (base::length(...future.futureOptionsAdded) > [01:27:54.994] 0L) { [01:27:54.994] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:27:54.994] base::names(opts) <- ...future.futureOptionsAdded [01:27:54.994] base::options(opts) [01:27:54.994] } [01:27:54.994] { [01:27:54.994] { [01:27:54.994] base::options(mc.cores = ...future.mc.cores.old) [01:27:54.994] NULL [01:27:54.994] } [01:27:54.994] options(future.plan = NULL) [01:27:54.994] if (is.na(NA_character_)) [01:27:54.994] Sys.unsetenv("R_FUTURE_PLAN") [01:27:54.994] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:27:54.994] future::plan(list(function (..., workers = availableCores(), [01:27:54.994] lazy = FALSE, rscript_libs = .libPaths(), [01:27:54.994] envir = parent.frame()) [01:27:54.994] { [01:27:54.994] if (is.function(workers)) [01:27:54.994] workers <- workers() [01:27:54.994] workers <- structure(as.integer(workers), [01:27:54.994] class = class(workers)) [01:27:54.994] stop_if_not(length(workers) == 1, is.finite(workers), [01:27:54.994] workers >= 1) [01:27:54.994] if (workers == 1L && !inherits(workers, "AsIs")) { [01:27:54.994] return(sequential(..., lazy = TRUE, envir = envir)) [01:27:54.994] } [01:27:54.994] future <- MultisessionFuture(..., workers = workers, [01:27:54.994] lazy = lazy, rscript_libs = rscript_libs, [01:27:54.994] envir = envir) [01:27:54.994] if (!future$lazy) [01:27:54.994] future <- run(future) [01:27:54.994] invisible(future) [01:27:54.994] }), .cleanup = FALSE, .init = FALSE) [01:27:54.994] } [01:27:54.994] } [01:27:54.994] } [01:27:54.994] }) [01:27:54.994] if (TRUE) { [01:27:54.994] base::sink(type = "output", split = FALSE) [01:27:54.994] if (TRUE) { [01:27:54.994] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:27:54.994] } [01:27:54.994] else { [01:27:54.994] ...future.result["stdout"] <- base::list(NULL) [01:27:54.994] } [01:27:54.994] base::close(...future.stdout) [01:27:54.994] ...future.stdout <- NULL [01:27:54.994] } [01:27:54.994] ...future.result$conditions <- ...future.conditions [01:27:54.994] ...future.result$finished <- base::Sys.time() [01:27:54.994] ...future.result [01:27:54.994] } [01:27:55.000] Exporting 1 global objects (3.84 KiB) to cluster node #1 ... [01:27:55.000] Exporting 'my_fcn' (3.84 KiB) to cluster node #1 ... [01:27:55.001] Exporting 'my_fcn' (3.84 KiB) to cluster node #1 ... DONE [01:27:55.001] Exporting 1 global objects (3.84 KiB) to cluster node #1 ... DONE [01:27:55.002] MultisessionFuture started [01:27:55.002] - Launch lazy future ... done [01:27:55.002] run() for 'MultisessionFuture' ... done [01:27:55.003] result() for ClusterFuture ... [01:27:55.003] receiveMessageFromWorker() for ClusterFuture ... [01:27:55.003] - Validating connection of MultisessionFuture [01:27:55.022] - received message: FutureResult [01:27:55.022] - Received FutureResult [01:27:55.023] - Erased future from FutureRegistry [01:27:55.023] result() for ClusterFuture ... [01:27:55.023] - result already collected: FutureResult [01:27:55.023] result() for ClusterFuture ... done [01:27:55.023] receiveMessageFromWorker() for ClusterFuture ... done [01:27:55.024] result() for ClusterFuture ... done [01:27:55.024] result() for ClusterFuture ... [01:27:55.024] - result already collected: FutureResult [01:27:55.024] result() for ClusterFuture ... done new("standardGeneric", .Data = function (x) standardGeneric("my_fcn"), generic = "my_fcn", package = ".GlobalEnv", group = list(), valueClass = character(0), signature = "x", default = NULL, skeleton = (function (x) stop(gettextf("invalid call in method dispatch to '%s' (no default method)", "my_fcn"), domain = NA))(x)) attr(,"generic") [1] "my_fcn" attr(,"generic")attr(,"package") [1] ".GlobalEnv" attr(,"package") [1] ".GlobalEnv" attr(,"group") list() attr(,"valueClass") character(0) attr(,"signature") [1] "x" attr(,"default") `\001NULL\001` attr(,"skeleton") (function (x) stop(gettextf("invalid call in method dispatch to '%s' (no default method)", "my_fcn"), domain = NA))(x) attr(,"class") [1] "standardGeneric" attr(,"class")attr(,"package") [1] "methods" [01:27:55.025] getGlobalsAndPackages() ... [01:27:55.025] Searching for globals... [01:27:55.029] - globals found: [7] '{', 'my_fcn', 'standardGeneric', 'NULL', 'stop', 'gettextf', 'x' [01:27:55.029] Searching for globals ... DONE [01:27:55.029] Resolving globals: FALSE [01:27:55.030] The total size of the 1 globals is 3.84 KiB (3936 bytes) [01:27:55.030] The total size of the 1 globals exported for future expression ('{; my_fcn(3); }') is 3.84 KiB.. This exceeds the maximum allowed size of 500.00 MiB (option 'future.globals.maxSize'). There is one global: 'my_fcn' (3.84 KiB of class 'function') [01:27:55.031] - globals: [1] 'my_fcn' [01:27:55.031] [01:27:55.031] getGlobalsAndPackages() ... DONE [01:27:55.031] run() for 'Future' ... [01:27:55.032] - state: 'created' [01:27:55.032] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [01:27:55.047] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [01:27:55.047] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [01:27:55.047] - Field: 'node' [01:27:55.048] - Field: 'label' [01:27:55.048] - Field: 'local' [01:27:55.048] - Field: 'owner' [01:27:55.048] - Field: 'envir' [01:27:55.048] - Field: 'workers' [01:27:55.049] - Field: 'packages' [01:27:55.049] - Field: 'gc' [01:27:55.049] - Field: 'conditions' [01:27:55.049] - Field: 'persistent' [01:27:55.049] - Field: 'expr' [01:27:55.050] - Field: 'uuid' [01:27:55.050] - Field: 'seed' [01:27:55.050] - Field: 'version' [01:27:55.050] - Field: 'result' [01:27:55.050] - Field: 'asynchronous' [01:27:55.051] - Field: 'calls' [01:27:55.051] - Field: 'globals' [01:27:55.051] - Field: 'stdout' [01:27:55.051] - Field: 'earlySignal' [01:27:55.051] - Field: 'lazy' [01:27:55.052] - Field: 'state' [01:27:55.052] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [01:27:55.052] - Launch lazy future ... [01:27:55.053] Packages needed by the future expression (n = 0): [01:27:55.053] Packages needed by future strategies (n = 0): [01:27:55.054] { [01:27:55.054] { [01:27:55.054] { [01:27:55.054] ...future.startTime <- base::Sys.time() [01:27:55.054] { [01:27:55.054] { [01:27:55.054] { [01:27:55.054] { [01:27:55.054] base::local({ [01:27:55.054] has_future <- base::requireNamespace("future", [01:27:55.054] quietly = TRUE) [01:27:55.054] if (has_future) { [01:27:55.054] ns <- base::getNamespace("future") [01:27:55.054] version <- ns[[".package"]][["version"]] [01:27:55.054] if (is.null(version)) [01:27:55.054] version <- utils::packageVersion("future") [01:27:55.054] } [01:27:55.054] else { [01:27:55.054] version <- NULL [01:27:55.054] } [01:27:55.054] if (!has_future || version < "1.8.0") { [01:27:55.054] info <- base::c(r_version = base::gsub("R version ", [01:27:55.054] "", base::R.version$version.string), [01:27:55.054] platform = base::sprintf("%s (%s-bit)", [01:27:55.054] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [01:27:55.054] os = base::paste(base::Sys.info()[base::c("sysname", [01:27:55.054] "release", "version")], collapse = " "), [01:27:55.054] hostname = base::Sys.info()[["nodename"]]) [01:27:55.054] info <- base::sprintf("%s: %s", base::names(info), [01:27:55.054] info) [01:27:55.054] info <- base::paste(info, collapse = "; ") [01:27:55.054] if (!has_future) { [01:27:55.054] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [01:27:55.054] info) [01:27:55.054] } [01:27:55.054] else { [01:27:55.054] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [01:27:55.054] info, version) [01:27:55.054] } [01:27:55.054] base::stop(msg) [01:27:55.054] } [01:27:55.054] }) [01:27:55.054] } [01:27:55.054] ...future.mc.cores.old <- base::getOption("mc.cores") [01:27:55.054] base::options(mc.cores = 1L) [01:27:55.054] } [01:27:55.054] options(future.plan = NULL) [01:27:55.054] Sys.unsetenv("R_FUTURE_PLAN") [01:27:55.054] future::plan("default", .cleanup = FALSE, .init = FALSE) [01:27:55.054] } [01:27:55.054] ...future.workdir <- getwd() [01:27:55.054] } [01:27:55.054] ...future.oldOptions <- base::as.list(base::.Options) [01:27:55.054] ...future.oldEnvVars <- base::Sys.getenv() [01:27:55.054] } [01:27:55.054] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [01:27:55.054] future.globals.maxSize = NULL, future.globals.method = NULL, [01:27:55.054] future.globals.onMissing = NULL, future.globals.onReference = NULL, [01:27:55.054] future.globals.resolve = NULL, future.resolve.recursive = NULL, [01:27:55.054] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [01:27:55.054] future.stdout.windows.reencode = NULL, width = 80L) [01:27:55.054] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [01:27:55.054] base::names(...future.oldOptions)) [01:27:55.054] } [01:27:55.054] if (FALSE) { [01:27:55.054] } [01:27:55.054] else { [01:27:55.054] if (TRUE) { [01:27:55.054] ...future.stdout <- base::rawConnection(base::raw(0L), [01:27:55.054] open = "w") [01:27:55.054] } [01:27:55.054] else { [01:27:55.054] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [01:27:55.054] windows = "NUL", "/dev/null"), open = "w") [01:27:55.054] } [01:27:55.054] base::sink(...future.stdout, type = "output", split = FALSE) [01:27:55.054] base::on.exit(if (!base::is.null(...future.stdout)) { [01:27:55.054] base::sink(type = "output", split = FALSE) [01:27:55.054] base::close(...future.stdout) [01:27:55.054] }, add = TRUE) [01:27:55.054] } [01:27:55.054] ...future.frame <- base::sys.nframe() [01:27:55.054] ...future.conditions <- base::list() [01:27:55.054] ...future.rng <- base::globalenv()$.Random.seed [01:27:55.054] if (FALSE) { [01:27:55.054] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [01:27:55.054] "...future.value", "...future.globalenv.names", ".Random.seed") [01:27:55.054] } [01:27:55.054] ...future.result <- base::tryCatch({ [01:27:55.054] base::withCallingHandlers({ [01:27:55.054] ...future.value <- base::withVisible(base::local({ [01:27:55.054] ...future.makeSendCondition <- base::local({ [01:27:55.054] sendCondition <- NULL [01:27:55.054] function(frame = 1L) { [01:27:55.054] if (is.function(sendCondition)) [01:27:55.054] return(sendCondition) [01:27:55.054] ns <- getNamespace("parallel") [01:27:55.054] if (exists("sendData", mode = "function", [01:27:55.054] envir = ns)) { [01:27:55.054] parallel_sendData <- get("sendData", mode = "function", [01:27:55.054] envir = ns) [01:27:55.054] envir <- sys.frame(frame) [01:27:55.054] master <- NULL [01:27:55.054] while (!identical(envir, .GlobalEnv) && [01:27:55.054] !identical(envir, emptyenv())) { [01:27:55.054] if (exists("master", mode = "list", envir = envir, [01:27:55.054] inherits = FALSE)) { [01:27:55.054] master <- get("master", mode = "list", [01:27:55.054] envir = envir, inherits = FALSE) [01:27:55.054] if (inherits(master, c("SOCKnode", [01:27:55.054] "SOCK0node"))) { [01:27:55.054] sendCondition <<- function(cond) { [01:27:55.054] data <- list(type = "VALUE", value = cond, [01:27:55.054] success = TRUE) [01:27:55.054] parallel_sendData(master, data) [01:27:55.054] } [01:27:55.054] return(sendCondition) [01:27:55.054] } [01:27:55.054] } [01:27:55.054] frame <- frame + 1L [01:27:55.054] envir <- sys.frame(frame) [01:27:55.054] } [01:27:55.054] } [01:27:55.054] sendCondition <<- function(cond) NULL [01:27:55.054] } [01:27:55.054] }) [01:27:55.054] withCallingHandlers({ [01:27:55.054] { [01:27:55.054] my_fcn(3) [01:27:55.054] } [01:27:55.054] }, immediateCondition = function(cond) { [01:27:55.054] sendCondition <- ...future.makeSendCondition() [01:27:55.054] sendCondition(cond) [01:27:55.054] muffleCondition <- function (cond, pattern = "^muffle") [01:27:55.054] { [01:27:55.054] inherits <- base::inherits [01:27:55.054] invokeRestart <- base::invokeRestart [01:27:55.054] is.null <- base::is.null [01:27:55.054] muffled <- FALSE [01:27:55.054] if (inherits(cond, "message")) { [01:27:55.054] muffled <- grepl(pattern, "muffleMessage") [01:27:55.054] if (muffled) [01:27:55.054] invokeRestart("muffleMessage") [01:27:55.054] } [01:27:55.054] else if (inherits(cond, "warning")) { [01:27:55.054] muffled <- grepl(pattern, "muffleWarning") [01:27:55.054] if (muffled) [01:27:55.054] invokeRestart("muffleWarning") [01:27:55.054] } [01:27:55.054] else if (inherits(cond, "condition")) { [01:27:55.054] if (!is.null(pattern)) { [01:27:55.054] computeRestarts <- base::computeRestarts [01:27:55.054] grepl <- base::grepl [01:27:55.054] restarts <- computeRestarts(cond) [01:27:55.054] for (restart in restarts) { [01:27:55.054] name <- restart$name [01:27:55.054] if (is.null(name)) [01:27:55.054] next [01:27:55.054] if (!grepl(pattern, name)) [01:27:55.054] next [01:27:55.054] invokeRestart(restart) [01:27:55.054] muffled <- TRUE [01:27:55.054] break [01:27:55.054] } [01:27:55.054] } [01:27:55.054] } [01:27:55.054] invisible(muffled) [01:27:55.054] } [01:27:55.054] muffleCondition(cond) [01:27:55.054] }) [01:27:55.054] })) [01:27:55.054] future::FutureResult(value = ...future.value$value, [01:27:55.054] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [01:27:55.054] ...future.rng), globalenv = if (FALSE) [01:27:55.054] list(added = base::setdiff(base::names(base::.GlobalEnv), [01:27:55.054] ...future.globalenv.names)) [01:27:55.054] else NULL, started = ...future.startTime, version = "1.8") [01:27:55.054] }, condition = base::local({ [01:27:55.054] c <- base::c [01:27:55.054] inherits <- base::inherits [01:27:55.054] invokeRestart <- base::invokeRestart [01:27:55.054] length <- base::length [01:27:55.054] list <- base::list [01:27:55.054] seq.int <- base::seq.int [01:27:55.054] signalCondition <- base::signalCondition [01:27:55.054] sys.calls <- base::sys.calls [01:27:55.054] `[[` <- base::`[[` [01:27:55.054] `+` <- base::`+` [01:27:55.054] `<<-` <- base::`<<-` [01:27:55.054] sysCalls <- function(calls = sys.calls(), from = 1L) { [01:27:55.054] calls[seq.int(from = from + 12L, to = length(calls) - [01:27:55.054] 3L)] [01:27:55.054] } [01:27:55.054] function(cond) { [01:27:55.054] is_error <- inherits(cond, "error") [01:27:55.054] ignore <- !is_error && !is.null(NULL) && inherits(cond, [01:27:55.054] NULL) [01:27:55.054] if (is_error) { [01:27:55.054] sessionInformation <- function() { [01:27:55.054] list(r = base::R.Version(), locale = base::Sys.getlocale(), [01:27:55.054] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [01:27:55.054] search = base::search(), system = base::Sys.info()) [01:27:55.054] } [01:27:55.054] ...future.conditions[[length(...future.conditions) + [01:27:55.054] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [01:27:55.054] cond$call), session = sessionInformation(), [01:27:55.054] timestamp = base::Sys.time(), signaled = 0L) [01:27:55.054] signalCondition(cond) [01:27:55.054] } [01:27:55.054] else if (!ignore && TRUE && inherits(cond, c("condition", [01:27:55.054] "immediateCondition"))) { [01:27:55.054] signal <- TRUE && inherits(cond, "immediateCondition") [01:27:55.054] ...future.conditions[[length(...future.conditions) + [01:27:55.054] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [01:27:55.054] if (TRUE && !signal) { [01:27:55.054] muffleCondition <- function (cond, pattern = "^muffle") [01:27:55.054] { [01:27:55.054] inherits <- base::inherits [01:27:55.054] invokeRestart <- base::invokeRestart [01:27:55.054] is.null <- base::is.null [01:27:55.054] muffled <- FALSE [01:27:55.054] if (inherits(cond, "message")) { [01:27:55.054] muffled <- grepl(pattern, "muffleMessage") [01:27:55.054] if (muffled) [01:27:55.054] invokeRestart("muffleMessage") [01:27:55.054] } [01:27:55.054] else if (inherits(cond, "warning")) { [01:27:55.054] muffled <- grepl(pattern, "muffleWarning") [01:27:55.054] if (muffled) [01:27:55.054] invokeRestart("muffleWarning") [01:27:55.054] } [01:27:55.054] else if (inherits(cond, "condition")) { [01:27:55.054] if (!is.null(pattern)) { [01:27:55.054] computeRestarts <- base::computeRestarts [01:27:55.054] grepl <- base::grepl [01:27:55.054] restarts <- computeRestarts(cond) [01:27:55.054] for (restart in restarts) { [01:27:55.054] name <- restart$name [01:27:55.054] if (is.null(name)) [01:27:55.054] next [01:27:55.054] if (!grepl(pattern, name)) [01:27:55.054] next [01:27:55.054] invokeRestart(restart) [01:27:55.054] muffled <- TRUE [01:27:55.054] break [01:27:55.054] } [01:27:55.054] } [01:27:55.054] } [01:27:55.054] invisible(muffled) [01:27:55.054] } [01:27:55.054] muffleCondition(cond, pattern = "^muffle") [01:27:55.054] } [01:27:55.054] } [01:27:55.054] else { [01:27:55.054] if (TRUE) { [01:27:55.054] muffleCondition <- function (cond, pattern = "^muffle") [01:27:55.054] { [01:27:55.054] inherits <- base::inherits [01:27:55.054] invokeRestart <- base::invokeRestart [01:27:55.054] is.null <- base::is.null [01:27:55.054] muffled <- FALSE [01:27:55.054] if (inherits(cond, "message")) { [01:27:55.054] muffled <- grepl(pattern, "muffleMessage") [01:27:55.054] if (muffled) [01:27:55.054] invokeRestart("muffleMessage") [01:27:55.054] } [01:27:55.054] else if (inherits(cond, "warning")) { [01:27:55.054] muffled <- grepl(pattern, "muffleWarning") [01:27:55.054] if (muffled) [01:27:55.054] invokeRestart("muffleWarning") [01:27:55.054] } [01:27:55.054] else if (inherits(cond, "condition")) { [01:27:55.054] if (!is.null(pattern)) { [01:27:55.054] computeRestarts <- base::computeRestarts [01:27:55.054] grepl <- base::grepl [01:27:55.054] restarts <- computeRestarts(cond) [01:27:55.054] for (restart in restarts) { [01:27:55.054] name <- restart$name [01:27:55.054] if (is.null(name)) [01:27:55.054] next [01:27:55.054] if (!grepl(pattern, name)) [01:27:55.054] next [01:27:55.054] invokeRestart(restart) [01:27:55.054] muffled <- TRUE [01:27:55.054] break [01:27:55.054] } [01:27:55.054] } [01:27:55.054] } [01:27:55.054] invisible(muffled) [01:27:55.054] } [01:27:55.054] muffleCondition(cond, pattern = "^muffle") [01:27:55.054] } [01:27:55.054] } [01:27:55.054] } [01:27:55.054] })) [01:27:55.054] }, error = function(ex) { [01:27:55.054] base::structure(base::list(value = NULL, visible = NULL, [01:27:55.054] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [01:27:55.054] ...future.rng), started = ...future.startTime, [01:27:55.054] finished = Sys.time(), session_uuid = NA_character_, [01:27:55.054] version = "1.8"), class = "FutureResult") [01:27:55.054] }, finally = { [01:27:55.054] if (!identical(...future.workdir, getwd())) [01:27:55.054] setwd(...future.workdir) [01:27:55.054] { [01:27:55.054] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [01:27:55.054] ...future.oldOptions$nwarnings <- NULL [01:27:55.054] } [01:27:55.054] base::options(...future.oldOptions) [01:27:55.054] if (.Platform$OS.type == "windows") { [01:27:55.054] old_names <- names(...future.oldEnvVars) [01:27:55.054] envs <- base::Sys.getenv() [01:27:55.054] names <- names(envs) [01:27:55.054] common <- intersect(names, old_names) [01:27:55.054] added <- setdiff(names, old_names) [01:27:55.054] removed <- setdiff(old_names, names) [01:27:55.054] changed <- common[...future.oldEnvVars[common] != [01:27:55.054] envs[common]] [01:27:55.054] NAMES <- toupper(changed) [01:27:55.054] args <- list() [01:27:55.054] for (kk in seq_along(NAMES)) { [01:27:55.054] name <- changed[[kk]] [01:27:55.054] NAME <- NAMES[[kk]] [01:27:55.054] if (name != NAME && is.element(NAME, old_names)) [01:27:55.054] next [01:27:55.054] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:55.054] } [01:27:55.054] NAMES <- toupper(added) [01:27:55.054] for (kk in seq_along(NAMES)) { [01:27:55.054] name <- added[[kk]] [01:27:55.054] NAME <- NAMES[[kk]] [01:27:55.054] if (name != NAME && is.element(NAME, old_names)) [01:27:55.054] next [01:27:55.054] args[[name]] <- "" [01:27:55.054] } [01:27:55.054] NAMES <- toupper(removed) [01:27:55.054] for (kk in seq_along(NAMES)) { [01:27:55.054] name <- removed[[kk]] [01:27:55.054] NAME <- NAMES[[kk]] [01:27:55.054] if (name != NAME && is.element(NAME, old_names)) [01:27:55.054] next [01:27:55.054] args[[name]] <- ...future.oldEnvVars[[name]] [01:27:55.054] } [01:27:55.054] if (length(args) > 0) [01:27:55.054] base::do.call(base::Sys.setenv, args = args) [01:27:55.054] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [01:27:55.054] } [01:27:55.054] else { [01:27:55.054] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [01:27:55.054] } [01:27:55.054] { [01:27:55.054] if (base::length(...future.futureOptionsAdded) > [01:27:55.054] 0L) { [01:27:55.054] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [01:27:55.054] base::names(opts) <- ...future.futureOptionsAdded [01:27:55.054] base::options(opts) [01:27:55.054] } [01:27:55.054] { [01:27:55.054] { [01:27:55.054] base::options(mc.cores = ...future.mc.cores.old) [01:27:55.054] NULL [01:27:55.054] } [01:27:55.054] options(future.plan = NULL) [01:27:55.054] if (is.na(NA_character_)) [01:27:55.054] Sys.unsetenv("R_FUTURE_PLAN") [01:27:55.054] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [01:27:55.054] future::plan(list(function (..., workers = availableCores(), [01:27:55.054] lazy = FALSE, rscript_libs = .libPaths(), [01:27:55.054] envir = parent.frame()) [01:27:55.054] { [01:27:55.054] if (is.function(workers)) [01:27:55.054] workers <- workers() [01:27:55.054] workers <- structure(as.integer(workers), [01:27:55.054] class = class(workers)) [01:27:55.054] stop_if_not(length(workers) == 1, is.finite(workers), [01:27:55.054] workers >= 1) [01:27:55.054] if (workers == 1L && !inherits(workers, "AsIs")) { [01:27:55.054] return(sequential(..., lazy = TRUE, envir = envir)) [01:27:55.054] } [01:27:55.054] future <- MultisessionFuture(..., workers = workers, [01:27:55.054] lazy = lazy, rscript_libs = rscript_libs, [01:27:55.054] envir = envir) [01:27:55.054] if (!future$lazy) [01:27:55.054] future <- run(future) [01:27:55.054] invisible(future) [01:27:55.054] }), .cleanup = FALSE, .init = FALSE) [01:27:55.054] } [01:27:55.054] } [01:27:55.054] } [01:27:55.054] }) [01:27:55.054] if (TRUE) { [01:27:55.054] base::sink(type = "output", split = FALSE) [01:27:55.054] if (TRUE) { [01:27:55.054] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [01:27:55.054] } [01:27:55.054] else { [01:27:55.054] ...future.result["stdout"] <- base::list(NULL) [01:27:55.054] } [01:27:55.054] base::close(...future.stdout) [01:27:55.054] ...future.stdout <- NULL [01:27:55.054] } [01:27:55.054] ...future.result$conditions <- ...future.conditions [01:27:55.054] ...future.result$finished <- base::Sys.time() [01:27:55.054] ...future.result [01:27:55.054] } [01:27:55.059] Exporting 1 global objects (3.84 KiB) to cluster node #1 ... [01:27:55.060] Exporting 'my_fcn' (3.84 KiB) to cluster node #1 ... [01:27:55.060] Exporting 'my_fcn' (3.84 KiB) to cluster node #1 ... DONE [01:27:55.060] Exporting 1 global objects (3.84 KiB) to cluster node #1 ... DONE [01:27:55.061] MultisessionFuture started [01:27:55.061] - Launch lazy future ... done [01:27:55.062] run() for 'MultisessionFuture' ... done [01:27:55.062] result() for ClusterFuture ... [01:27:55.062] receiveMessageFromWorker() for ClusterFuture ... [01:27:55.062] - Validating connection of MultisessionFuture [01:27:55.081] - received message: FutureResult [01:27:55.081] - Received FutureResult [01:27:55.082] - Erased future from FutureRegistry [01:27:55.082] result() for ClusterFuture ... [01:27:55.082] - result already collected: FutureResult [01:27:55.082] result() for ClusterFuture ... done [01:27:55.082] receiveMessageFromWorker() for ClusterFuture ... done [01:27:55.083] result() for ClusterFuture ... done [01:27:55.083] result() for ClusterFuture ... [01:27:55.083] - result already collected: FutureResult [01:27:55.083] result() for ClusterFuture ... done [1] -3 > > message("*** Globals - S4 methods ... DONE") *** Globals - S4 methods ... DONE > > source("incl/end.R") [01:27:55.084] plan(): Setting new future strategy stack: [01:27:55.085] List of future strategies: [01:27:55.085] 1. FutureStrategy: [01:27:55.085] - args: function (..., envir = parent.frame(), workers = "") [01:27:55.085] - tweaked: FALSE [01:27:55.085] - call: future::plan(oplan) [01:27:55.086] 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.85 0.06 1.76