R Under development (unstable) (2023-06-30 r84625 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") [18:01:45.932] plan(): Setting new future strategy stack: [18:01:45.934] List of future strategies: [18:01:45.934] 1. sequential: [18:01:45.934] - args: function (..., envir = parent.frame()) [18:01:45.934] - tweaked: FALSE [18:01:45.934] - call: future::plan("sequential") [18:01:45.953] 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 [18:01:45.992] plan(): Setting new future strategy stack: [18:01:45.993] List of future strategies: [18:01:45.993] 1. sequential: [18:01:45.993] - args: function (..., envir = parent.frame()) [18:01:45.993] - tweaked: FALSE [18:01:45.993] - call: plan(strategy) [18:01:46.008] plan(): nbrOfWorkers() = 1 [18:01:46.009] getGlobalsAndPackages() ... [18:01:46.009] Searching for globals... [18:01:46.017] - globals found: [7] '{', 'my_fcn', 'standardGeneric', 'NULL', 'stop', 'gettextf', 'x' [18:01:46.017] Searching for globals ... DONE [18:01:46.017] Resolving globals: FALSE [18:01:46.019] The total size of the 1 globals is 3.84 KiB (3936 bytes) [18:01:46.019] 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') [18:01:46.020] - globals: [1] 'my_fcn' [18:01:46.020] [18:01:46.020] getGlobalsAndPackages() ... DONE [18:01:46.021] run() for 'Future' ... [18:01:46.021] - state: 'created' [18:01:46.022] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [18:01:46.022] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [18:01:46.022] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [18:01:46.023] - Field: 'label' [18:01:46.023] - Field: 'local' [18:01:46.023] - Field: 'owner' [18:01:46.023] - Field: 'envir' [18:01:46.023] - Field: 'packages' [18:01:46.024] - Field: 'gc' [18:01:46.024] - Field: 'conditions' [18:01:46.024] - Field: 'expr' [18:01:46.024] - Field: 'uuid' [18:01:46.024] - Field: 'seed' [18:01:46.025] - Field: 'version' [18:01:46.025] - Field: 'result' [18:01:46.025] - Field: 'asynchronous' [18:01:46.025] - Field: 'calls' [18:01:46.025] - Field: 'globals' [18:01:46.025] - Field: 'stdout' [18:01:46.026] - Field: 'earlySignal' [18:01:46.026] - Field: 'lazy' [18:01:46.026] - Field: 'state' [18:01:46.026] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [18:01:46.026] - Launch lazy future ... [18:01:46.029] Packages needed by the future expression (n = 0): [18:01:46.029] Packages needed by future strategies (n = 0): [18:01:46.031] { [18:01:46.031] { [18:01:46.031] { [18:01:46.031] ...future.startTime <- base::Sys.time() [18:01:46.031] { [18:01:46.031] { [18:01:46.031] { [18:01:46.031] base::local({ [18:01:46.031] has_future <- base::requireNamespace("future", [18:01:46.031] quietly = TRUE) [18:01:46.031] if (has_future) { [18:01:46.031] ns <- base::getNamespace("future") [18:01:46.031] version <- ns[[".package"]][["version"]] [18:01:46.031] if (is.null(version)) [18:01:46.031] version <- utils::packageVersion("future") [18:01:46.031] } [18:01:46.031] else { [18:01:46.031] version <- NULL [18:01:46.031] } [18:01:46.031] if (!has_future || version < "1.8.0") { [18:01:46.031] info <- base::c(r_version = base::gsub("R version ", [18:01:46.031] "", base::R.version$version.string), [18:01:46.031] platform = base::sprintf("%s (%s-bit)", [18:01:46.031] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [18:01:46.031] os = base::paste(base::Sys.info()[base::c("sysname", [18:01:46.031] "release", "version")], collapse = " "), [18:01:46.031] hostname = base::Sys.info()[["nodename"]]) [18:01:46.031] info <- base::sprintf("%s: %s", base::names(info), [18:01:46.031] info) [18:01:46.031] info <- base::paste(info, collapse = "; ") [18:01:46.031] if (!has_future) { [18:01:46.031] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [18:01:46.031] info) [18:01:46.031] } [18:01:46.031] else { [18:01:46.031] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [18:01:46.031] info, version) [18:01:46.031] } [18:01:46.031] base::stop(msg) [18:01:46.031] } [18:01:46.031] }) [18:01:46.031] } [18:01:46.031] options(future.plan = NULL) [18:01:46.031] Sys.unsetenv("R_FUTURE_PLAN") [18:01:46.031] future::plan("default", .cleanup = FALSE, .init = FALSE) [18:01:46.031] } [18:01:46.031] ...future.workdir <- getwd() [18:01:46.031] } [18:01:46.031] ...future.oldOptions <- base::as.list(base::.Options) [18:01:46.031] ...future.oldEnvVars <- base::Sys.getenv() [18:01:46.031] } [18:01:46.031] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [18:01:46.031] future.globals.maxSize = NULL, future.globals.method = NULL, [18:01:46.031] future.globals.onMissing = NULL, future.globals.onReference = NULL, [18:01:46.031] future.globals.resolve = NULL, future.resolve.recursive = NULL, [18:01:46.031] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [18:01:46.031] future.stdout.windows.reencode = NULL, width = 80L) [18:01:46.031] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [18:01:46.031] base::names(...future.oldOptions)) [18:01:46.031] } [18:01:46.031] if (FALSE) { [18:01:46.031] } [18:01:46.031] else { [18:01:46.031] if (TRUE) { [18:01:46.031] ...future.stdout <- base::rawConnection(base::raw(0L), [18:01:46.031] open = "w") [18:01:46.031] } [18:01:46.031] else { [18:01:46.031] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [18:01:46.031] windows = "NUL", "/dev/null"), open = "w") [18:01:46.031] } [18:01:46.031] base::sink(...future.stdout, type = "output", split = FALSE) [18:01:46.031] base::on.exit(if (!base::is.null(...future.stdout)) { [18:01:46.031] base::sink(type = "output", split = FALSE) [18:01:46.031] base::close(...future.stdout) [18:01:46.031] }, add = TRUE) [18:01:46.031] } [18:01:46.031] ...future.frame <- base::sys.nframe() [18:01:46.031] ...future.conditions <- base::list() [18:01:46.031] ...future.rng <- base::globalenv()$.Random.seed [18:01:46.031] if (FALSE) { [18:01:46.031] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [18:01:46.031] "...future.value", "...future.globalenv.names", ".Random.seed") [18:01:46.031] } [18:01:46.031] ...future.result <- base::tryCatch({ [18:01:46.031] base::withCallingHandlers({ [18:01:46.031] ...future.value <- base::withVisible(base::local({ [18:01:46.031] my_fcn [18:01:46.031] })) [18:01:46.031] future::FutureResult(value = ...future.value$value, [18:01:46.031] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [18:01:46.031] ...future.rng), globalenv = if (FALSE) [18:01:46.031] list(added = base::setdiff(base::names(base::.GlobalEnv), [18:01:46.031] ...future.globalenv.names)) [18:01:46.031] else NULL, started = ...future.startTime, version = "1.8") [18:01:46.031] }, condition = base::local({ [18:01:46.031] c <- base::c [18:01:46.031] inherits <- base::inherits [18:01:46.031] invokeRestart <- base::invokeRestart [18:01:46.031] length <- base::length [18:01:46.031] list <- base::list [18:01:46.031] seq.int <- base::seq.int [18:01:46.031] signalCondition <- base::signalCondition [18:01:46.031] sys.calls <- base::sys.calls [18:01:46.031] `[[` <- base::`[[` [18:01:46.031] `+` <- base::`+` [18:01:46.031] `<<-` <- base::`<<-` [18:01:46.031] sysCalls <- function(calls = sys.calls(), from = 1L) { [18:01:46.031] calls[seq.int(from = from + 12L, to = length(calls) - [18:01:46.031] 3L)] [18:01:46.031] } [18:01:46.031] function(cond) { [18:01:46.031] is_error <- inherits(cond, "error") [18:01:46.031] ignore <- !is_error && !is.null(NULL) && inherits(cond, [18:01:46.031] NULL) [18:01:46.031] if (is_error) { [18:01:46.031] sessionInformation <- function() { [18:01:46.031] list(r = base::R.Version(), locale = base::Sys.getlocale(), [18:01:46.031] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [18:01:46.031] search = base::search(), system = base::Sys.info()) [18:01:46.031] } [18:01:46.031] ...future.conditions[[length(...future.conditions) + [18:01:46.031] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [18:01:46.031] cond$call), session = sessionInformation(), [18:01:46.031] timestamp = base::Sys.time(), signaled = 0L) [18:01:46.031] signalCondition(cond) [18:01:46.031] } [18:01:46.031] else if (!ignore && TRUE && inherits(cond, c("condition", [18:01:46.031] "immediateCondition"))) { [18:01:46.031] signal <- TRUE && inherits(cond, "immediateCondition") [18:01:46.031] ...future.conditions[[length(...future.conditions) + [18:01:46.031] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [18:01:46.031] if (TRUE && !signal) { [18:01:46.031] muffleCondition <- function (cond, pattern = "^muffle") [18:01:46.031] { [18:01:46.031] inherits <- base::inherits [18:01:46.031] invokeRestart <- base::invokeRestart [18:01:46.031] is.null <- base::is.null [18:01:46.031] muffled <- FALSE [18:01:46.031] if (inherits(cond, "message")) { [18:01:46.031] muffled <- grepl(pattern, "muffleMessage") [18:01:46.031] if (muffled) [18:01:46.031] invokeRestart("muffleMessage") [18:01:46.031] } [18:01:46.031] else if (inherits(cond, "warning")) { [18:01:46.031] muffled <- grepl(pattern, "muffleWarning") [18:01:46.031] if (muffled) [18:01:46.031] invokeRestart("muffleWarning") [18:01:46.031] } [18:01:46.031] else if (inherits(cond, "condition")) { [18:01:46.031] if (!is.null(pattern)) { [18:01:46.031] computeRestarts <- base::computeRestarts [18:01:46.031] grepl <- base::grepl [18:01:46.031] restarts <- computeRestarts(cond) [18:01:46.031] for (restart in restarts) { [18:01:46.031] name <- restart$name [18:01:46.031] if (is.null(name)) [18:01:46.031] next [18:01:46.031] if (!grepl(pattern, name)) [18:01:46.031] next [18:01:46.031] invokeRestart(restart) [18:01:46.031] muffled <- TRUE [18:01:46.031] break [18:01:46.031] } [18:01:46.031] } [18:01:46.031] } [18:01:46.031] invisible(muffled) [18:01:46.031] } [18:01:46.031] muffleCondition(cond, pattern = "^muffle") [18:01:46.031] } [18:01:46.031] } [18:01:46.031] else { [18:01:46.031] if (TRUE) { [18:01:46.031] muffleCondition <- function (cond, pattern = "^muffle") [18:01:46.031] { [18:01:46.031] inherits <- base::inherits [18:01:46.031] invokeRestart <- base::invokeRestart [18:01:46.031] is.null <- base::is.null [18:01:46.031] muffled <- FALSE [18:01:46.031] if (inherits(cond, "message")) { [18:01:46.031] muffled <- grepl(pattern, "muffleMessage") [18:01:46.031] if (muffled) [18:01:46.031] invokeRestart("muffleMessage") [18:01:46.031] } [18:01:46.031] else if (inherits(cond, "warning")) { [18:01:46.031] muffled <- grepl(pattern, "muffleWarning") [18:01:46.031] if (muffled) [18:01:46.031] invokeRestart("muffleWarning") [18:01:46.031] } [18:01:46.031] else if (inherits(cond, "condition")) { [18:01:46.031] if (!is.null(pattern)) { [18:01:46.031] computeRestarts <- base::computeRestarts [18:01:46.031] grepl <- base::grepl [18:01:46.031] restarts <- computeRestarts(cond) [18:01:46.031] for (restart in restarts) { [18:01:46.031] name <- restart$name [18:01:46.031] if (is.null(name)) [18:01:46.031] next [18:01:46.031] if (!grepl(pattern, name)) [18:01:46.031] next [18:01:46.031] invokeRestart(restart) [18:01:46.031] muffled <- TRUE [18:01:46.031] break [18:01:46.031] } [18:01:46.031] } [18:01:46.031] } [18:01:46.031] invisible(muffled) [18:01:46.031] } [18:01:46.031] muffleCondition(cond, pattern = "^muffle") [18:01:46.031] } [18:01:46.031] } [18:01:46.031] } [18:01:46.031] })) [18:01:46.031] }, error = function(ex) { [18:01:46.031] base::structure(base::list(value = NULL, visible = NULL, [18:01:46.031] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [18:01:46.031] ...future.rng), started = ...future.startTime, [18:01:46.031] finished = Sys.time(), session_uuid = NA_character_, [18:01:46.031] version = "1.8"), class = "FutureResult") [18:01:46.031] }, finally = { [18:01:46.031] if (!identical(...future.workdir, getwd())) [18:01:46.031] setwd(...future.workdir) [18:01:46.031] { [18:01:46.031] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [18:01:46.031] ...future.oldOptions$nwarnings <- NULL [18:01:46.031] } [18:01:46.031] base::options(...future.oldOptions) [18:01:46.031] if (.Platform$OS.type == "windows") { [18:01:46.031] old_names <- names(...future.oldEnvVars) [18:01:46.031] envs <- base::Sys.getenv() [18:01:46.031] names <- names(envs) [18:01:46.031] common <- intersect(names, old_names) [18:01:46.031] added <- setdiff(names, old_names) [18:01:46.031] removed <- setdiff(old_names, names) [18:01:46.031] changed <- common[...future.oldEnvVars[common] != [18:01:46.031] envs[common]] [18:01:46.031] NAMES <- toupper(changed) [18:01:46.031] args <- list() [18:01:46.031] for (kk in seq_along(NAMES)) { [18:01:46.031] name <- changed[[kk]] [18:01:46.031] NAME <- NAMES[[kk]] [18:01:46.031] if (name != NAME && is.element(NAME, old_names)) [18:01:46.031] next [18:01:46.031] args[[name]] <- ...future.oldEnvVars[[name]] [18:01:46.031] } [18:01:46.031] NAMES <- toupper(added) [18:01:46.031] for (kk in seq_along(NAMES)) { [18:01:46.031] name <- added[[kk]] [18:01:46.031] NAME <- NAMES[[kk]] [18:01:46.031] if (name != NAME && is.element(NAME, old_names)) [18:01:46.031] next [18:01:46.031] args[[name]] <- "" [18:01:46.031] } [18:01:46.031] NAMES <- toupper(removed) [18:01:46.031] for (kk in seq_along(NAMES)) { [18:01:46.031] name <- removed[[kk]] [18:01:46.031] NAME <- NAMES[[kk]] [18:01:46.031] if (name != NAME && is.element(NAME, old_names)) [18:01:46.031] next [18:01:46.031] args[[name]] <- ...future.oldEnvVars[[name]] [18:01:46.031] } [18:01:46.031] if (length(args) > 0) [18:01:46.031] base::do.call(base::Sys.setenv, args = args) [18:01:46.031] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [18:01:46.031] } [18:01:46.031] else { [18:01:46.031] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [18:01:46.031] } [18:01:46.031] { [18:01:46.031] if (base::length(...future.futureOptionsAdded) > [18:01:46.031] 0L) { [18:01:46.031] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [18:01:46.031] base::names(opts) <- ...future.futureOptionsAdded [18:01:46.031] base::options(opts) [18:01:46.031] } [18:01:46.031] { [18:01:46.031] { [18:01:46.031] NULL [18:01:46.031] RNGkind("Mersenne-Twister") [18:01:46.031] base::rm(list = ".Random.seed", envir = base::globalenv(), [18:01:46.031] inherits = FALSE) [18:01:46.031] } [18:01:46.031] options(future.plan = NULL) [18:01:46.031] if (is.na(NA_character_)) [18:01:46.031] Sys.unsetenv("R_FUTURE_PLAN") [18:01:46.031] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [18:01:46.031] future::plan(list(function (..., envir = parent.frame()) [18:01:46.031] { [18:01:46.031] future <- SequentialFuture(..., envir = envir) [18:01:46.031] if (!future$lazy) [18:01:46.031] future <- run(future) [18:01:46.031] invisible(future) [18:01:46.031] }), .cleanup = FALSE, .init = FALSE) [18:01:46.031] } [18:01:46.031] } [18:01:46.031] } [18:01:46.031] }) [18:01:46.031] if (TRUE) { [18:01:46.031] base::sink(type = "output", split = FALSE) [18:01:46.031] if (TRUE) { [18:01:46.031] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [18:01:46.031] } [18:01:46.031] else { [18:01:46.031] ...future.result["stdout"] <- base::list(NULL) [18:01:46.031] } [18:01:46.031] base::close(...future.stdout) [18:01:46.031] ...future.stdout <- NULL [18:01:46.031] } [18:01:46.031] ...future.result$conditions <- ...future.conditions [18:01:46.031] ...future.result$finished <- base::Sys.time() [18:01:46.031] ...future.result [18:01:46.031] } [18:01:46.035] assign_globals() ... [18:01:46.035] List of 1 [18:01:46.035] $ my_fcn:Formal class 'standardGeneric' [package "methods"] with 8 slots [18:01:46.035] .. ..@ .Data :function (x) [18:01:46.035] .. ..@ generic : chr "my_fcn" [18:01:46.035] .. .. ..- attr(*, "package")= chr ".GlobalEnv" [18:01:46.035] .. ..@ package : chr ".GlobalEnv" [18:01:46.035] .. ..@ group : list() [18:01:46.035] .. ..@ valueClass: chr(0) [18:01:46.035] .. ..@ signature : chr "x" [18:01:46.035] .. ..@ default : NULL [18:01:46.035] .. ..@ skeleton : language (function (x) stop(gettextf("invalid call in method dispatch to '%s' (no default method)", ... [18:01:46.035] - attr(*, "where")=List of 1 [18:01:46.035] ..$ my_fcn: [18:01:46.035] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list" [18:01:46.035] - attr(*, "resolved")= logi FALSE [18:01:46.035] - attr(*, "total_size")= num 3936 [18:01:46.035] - attr(*, "already-done")= logi TRUE [18:01:46.046] - reassign environment for 'my_fcn' [18:01:46.046] - copied 'my_fcn' to environment [18:01:46.046] assign_globals() ... done [18:01:46.047] plan(): Setting new future strategy stack: [18:01:46.047] List of future strategies: [18:01:46.047] 1. sequential: [18:01:46.047] - args: function (..., envir = parent.frame()) [18:01:46.047] - tweaked: FALSE [18:01:46.047] - call: NULL [18:01:46.048] plan(): nbrOfWorkers() = 1 [18:01:46.050] plan(): Setting new future strategy stack: [18:01:46.050] List of future strategies: [18:01:46.050] 1. sequential: [18:01:46.050] - args: function (..., envir = parent.frame()) [18:01:46.050] - tweaked: FALSE [18:01:46.050] - call: plan(strategy) [18:01:46.050] plan(): nbrOfWorkers() = 1 [18:01:46.051] SequentialFuture started (and completed) [18:01:46.051] - Launch lazy future ... done [18:01:46.051] 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" [18:01:46.052] getGlobalsAndPackages() ... [18:01:46.052] Searching for globals... [18:01:46.057] - globals found: [7] '{', 'my_fcn', 'standardGeneric', 'NULL', 'stop', 'gettextf', 'x' [18:01:46.057] Searching for globals ... DONE [18:01:46.058] Resolving globals: FALSE [18:01:46.058] The total size of the 1 globals is 3.84 KiB (3936 bytes) [18:01:46.059] 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') [18:01:46.059] - globals: [1] 'my_fcn' [18:01:46.059] [18:01:46.059] getGlobalsAndPackages() ... DONE [18:01:46.059] run() for 'Future' ... [18:01:46.060] - state: 'created' [18:01:46.060] - Future backend: 'FutureStrategy', 'sequential', 'uniprocess', 'future', 'function' [18:01:46.060] - Future class: 'SequentialFuture', 'UniprocessFuture', 'Future', 'environment' [18:01:46.060] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... [18:01:46.061] - Field: 'label' [18:01:46.061] - Field: 'local' [18:01:46.061] - Field: 'owner' [18:01:46.061] - Field: 'envir' [18:01:46.061] - Field: 'packages' [18:01:46.062] - Field: 'gc' [18:01:46.062] - Field: 'conditions' [18:01:46.062] - Field: 'expr' [18:01:46.062] - Field: 'uuid' [18:01:46.062] - Field: 'seed' [18:01:46.063] - Field: 'version' [18:01:46.063] - Field: 'result' [18:01:46.063] - Field: 'asynchronous' [18:01:46.063] - Field: 'calls' [18:01:46.063] - Field: 'globals' [18:01:46.063] - Field: 'stdout' [18:01:46.064] - Field: 'earlySignal' [18:01:46.064] - Field: 'lazy' [18:01:46.064] - Field: 'state' [18:01:46.064] - Copy elements of temporary 'SequentialFuture' to final 'Future' object ... done [18:01:46.064] - Launch lazy future ... [18:01:46.065] Packages needed by the future expression (n = 0): [18:01:46.065] Packages needed by future strategies (n = 0): [18:01:46.065] { [18:01:46.065] { [18:01:46.065] { [18:01:46.065] ...future.startTime <- base::Sys.time() [18:01:46.065] { [18:01:46.065] { [18:01:46.065] { [18:01:46.065] base::local({ [18:01:46.065] has_future <- base::requireNamespace("future", [18:01:46.065] quietly = TRUE) [18:01:46.065] if (has_future) { [18:01:46.065] ns <- base::getNamespace("future") [18:01:46.065] version <- ns[[".package"]][["version"]] [18:01:46.065] if (is.null(version)) [18:01:46.065] version <- utils::packageVersion("future") [18:01:46.065] } [18:01:46.065] else { [18:01:46.065] version <- NULL [18:01:46.065] } [18:01:46.065] if (!has_future || version < "1.8.0") { [18:01:46.065] info <- base::c(r_version = base::gsub("R version ", [18:01:46.065] "", base::R.version$version.string), [18:01:46.065] platform = base::sprintf("%s (%s-bit)", [18:01:46.065] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [18:01:46.065] os = base::paste(base::Sys.info()[base::c("sysname", [18:01:46.065] "release", "version")], collapse = " "), [18:01:46.065] hostname = base::Sys.info()[["nodename"]]) [18:01:46.065] info <- base::sprintf("%s: %s", base::names(info), [18:01:46.065] info) [18:01:46.065] info <- base::paste(info, collapse = "; ") [18:01:46.065] if (!has_future) { [18:01:46.065] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [18:01:46.065] info) [18:01:46.065] } [18:01:46.065] else { [18:01:46.065] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [18:01:46.065] info, version) [18:01:46.065] } [18:01:46.065] base::stop(msg) [18:01:46.065] } [18:01:46.065] }) [18:01:46.065] } [18:01:46.065] options(future.plan = NULL) [18:01:46.065] Sys.unsetenv("R_FUTURE_PLAN") [18:01:46.065] future::plan("default", .cleanup = FALSE, .init = FALSE) [18:01:46.065] } [18:01:46.065] ...future.workdir <- getwd() [18:01:46.065] } [18:01:46.065] ...future.oldOptions <- base::as.list(base::.Options) [18:01:46.065] ...future.oldEnvVars <- base::Sys.getenv() [18:01:46.065] } [18:01:46.065] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [18:01:46.065] future.globals.maxSize = NULL, future.globals.method = NULL, [18:01:46.065] future.globals.onMissing = NULL, future.globals.onReference = NULL, [18:01:46.065] future.globals.resolve = NULL, future.resolve.recursive = NULL, [18:01:46.065] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [18:01:46.065] future.stdout.windows.reencode = NULL, width = 80L) [18:01:46.065] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [18:01:46.065] base::names(...future.oldOptions)) [18:01:46.065] } [18:01:46.065] if (FALSE) { [18:01:46.065] } [18:01:46.065] else { [18:01:46.065] if (TRUE) { [18:01:46.065] ...future.stdout <- base::rawConnection(base::raw(0L), [18:01:46.065] open = "w") [18:01:46.065] } [18:01:46.065] else { [18:01:46.065] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [18:01:46.065] windows = "NUL", "/dev/null"), open = "w") [18:01:46.065] } [18:01:46.065] base::sink(...future.stdout, type = "output", split = FALSE) [18:01:46.065] base::on.exit(if (!base::is.null(...future.stdout)) { [18:01:46.065] base::sink(type = "output", split = FALSE) [18:01:46.065] base::close(...future.stdout) [18:01:46.065] }, add = TRUE) [18:01:46.065] } [18:01:46.065] ...future.frame <- base::sys.nframe() [18:01:46.065] ...future.conditions <- base::list() [18:01:46.065] ...future.rng <- base::globalenv()$.Random.seed [18:01:46.065] if (FALSE) { [18:01:46.065] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [18:01:46.065] "...future.value", "...future.globalenv.names", ".Random.seed") [18:01:46.065] } [18:01:46.065] ...future.result <- base::tryCatch({ [18:01:46.065] base::withCallingHandlers({ [18:01:46.065] ...future.value <- base::withVisible(base::local({ [18:01:46.065] my_fcn(3) [18:01:46.065] })) [18:01:46.065] future::FutureResult(value = ...future.value$value, [18:01:46.065] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [18:01:46.065] ...future.rng), globalenv = if (FALSE) [18:01:46.065] list(added = base::setdiff(base::names(base::.GlobalEnv), [18:01:46.065] ...future.globalenv.names)) [18:01:46.065] else NULL, started = ...future.startTime, version = "1.8") [18:01:46.065] }, condition = base::local({ [18:01:46.065] c <- base::c [18:01:46.065] inherits <- base::inherits [18:01:46.065] invokeRestart <- base::invokeRestart [18:01:46.065] length <- base::length [18:01:46.065] list <- base::list [18:01:46.065] seq.int <- base::seq.int [18:01:46.065] signalCondition <- base::signalCondition [18:01:46.065] sys.calls <- base::sys.calls [18:01:46.065] `[[` <- base::`[[` [18:01:46.065] `+` <- base::`+` [18:01:46.065] `<<-` <- base::`<<-` [18:01:46.065] sysCalls <- function(calls = sys.calls(), from = 1L) { [18:01:46.065] calls[seq.int(from = from + 12L, to = length(calls) - [18:01:46.065] 3L)] [18:01:46.065] } [18:01:46.065] function(cond) { [18:01:46.065] is_error <- inherits(cond, "error") [18:01:46.065] ignore <- !is_error && !is.null(NULL) && inherits(cond, [18:01:46.065] NULL) [18:01:46.065] if (is_error) { [18:01:46.065] sessionInformation <- function() { [18:01:46.065] list(r = base::R.Version(), locale = base::Sys.getlocale(), [18:01:46.065] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [18:01:46.065] search = base::search(), system = base::Sys.info()) [18:01:46.065] } [18:01:46.065] ...future.conditions[[length(...future.conditions) + [18:01:46.065] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [18:01:46.065] cond$call), session = sessionInformation(), [18:01:46.065] timestamp = base::Sys.time(), signaled = 0L) [18:01:46.065] signalCondition(cond) [18:01:46.065] } [18:01:46.065] else if (!ignore && TRUE && inherits(cond, c("condition", [18:01:46.065] "immediateCondition"))) { [18:01:46.065] signal <- TRUE && inherits(cond, "immediateCondition") [18:01:46.065] ...future.conditions[[length(...future.conditions) + [18:01:46.065] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [18:01:46.065] if (TRUE && !signal) { [18:01:46.065] muffleCondition <- function (cond, pattern = "^muffle") [18:01:46.065] { [18:01:46.065] inherits <- base::inherits [18:01:46.065] invokeRestart <- base::invokeRestart [18:01:46.065] is.null <- base::is.null [18:01:46.065] muffled <- FALSE [18:01:46.065] if (inherits(cond, "message")) { [18:01:46.065] muffled <- grepl(pattern, "muffleMessage") [18:01:46.065] if (muffled) [18:01:46.065] invokeRestart("muffleMessage") [18:01:46.065] } [18:01:46.065] else if (inherits(cond, "warning")) { [18:01:46.065] muffled <- grepl(pattern, "muffleWarning") [18:01:46.065] if (muffled) [18:01:46.065] invokeRestart("muffleWarning") [18:01:46.065] } [18:01:46.065] else if (inherits(cond, "condition")) { [18:01:46.065] if (!is.null(pattern)) { [18:01:46.065] computeRestarts <- base::computeRestarts [18:01:46.065] grepl <- base::grepl [18:01:46.065] restarts <- computeRestarts(cond) [18:01:46.065] for (restart in restarts) { [18:01:46.065] name <- restart$name [18:01:46.065] if (is.null(name)) [18:01:46.065] next [18:01:46.065] if (!grepl(pattern, name)) [18:01:46.065] next [18:01:46.065] invokeRestart(restart) [18:01:46.065] muffled <- TRUE [18:01:46.065] break [18:01:46.065] } [18:01:46.065] } [18:01:46.065] } [18:01:46.065] invisible(muffled) [18:01:46.065] } [18:01:46.065] muffleCondition(cond, pattern = "^muffle") [18:01:46.065] } [18:01:46.065] } [18:01:46.065] else { [18:01:46.065] if (TRUE) { [18:01:46.065] muffleCondition <- function (cond, pattern = "^muffle") [18:01:46.065] { [18:01:46.065] inherits <- base::inherits [18:01:46.065] invokeRestart <- base::invokeRestart [18:01:46.065] is.null <- base::is.null [18:01:46.065] muffled <- FALSE [18:01:46.065] if (inherits(cond, "message")) { [18:01:46.065] muffled <- grepl(pattern, "muffleMessage") [18:01:46.065] if (muffled) [18:01:46.065] invokeRestart("muffleMessage") [18:01:46.065] } [18:01:46.065] else if (inherits(cond, "warning")) { [18:01:46.065] muffled <- grepl(pattern, "muffleWarning") [18:01:46.065] if (muffled) [18:01:46.065] invokeRestart("muffleWarning") [18:01:46.065] } [18:01:46.065] else if (inherits(cond, "condition")) { [18:01:46.065] if (!is.null(pattern)) { [18:01:46.065] computeRestarts <- base::computeRestarts [18:01:46.065] grepl <- base::grepl [18:01:46.065] restarts <- computeRestarts(cond) [18:01:46.065] for (restart in restarts) { [18:01:46.065] name <- restart$name [18:01:46.065] if (is.null(name)) [18:01:46.065] next [18:01:46.065] if (!grepl(pattern, name)) [18:01:46.065] next [18:01:46.065] invokeRestart(restart) [18:01:46.065] muffled <- TRUE [18:01:46.065] break [18:01:46.065] } [18:01:46.065] } [18:01:46.065] } [18:01:46.065] invisible(muffled) [18:01:46.065] } [18:01:46.065] muffleCondition(cond, pattern = "^muffle") [18:01:46.065] } [18:01:46.065] } [18:01:46.065] } [18:01:46.065] })) [18:01:46.065] }, error = function(ex) { [18:01:46.065] base::structure(base::list(value = NULL, visible = NULL, [18:01:46.065] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [18:01:46.065] ...future.rng), started = ...future.startTime, [18:01:46.065] finished = Sys.time(), session_uuid = NA_character_, [18:01:46.065] version = "1.8"), class = "FutureResult") [18:01:46.065] }, finally = { [18:01:46.065] if (!identical(...future.workdir, getwd())) [18:01:46.065] setwd(...future.workdir) [18:01:46.065] { [18:01:46.065] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [18:01:46.065] ...future.oldOptions$nwarnings <- NULL [18:01:46.065] } [18:01:46.065] base::options(...future.oldOptions) [18:01:46.065] if (.Platform$OS.type == "windows") { [18:01:46.065] old_names <- names(...future.oldEnvVars) [18:01:46.065] envs <- base::Sys.getenv() [18:01:46.065] names <- names(envs) [18:01:46.065] common <- intersect(names, old_names) [18:01:46.065] added <- setdiff(names, old_names) [18:01:46.065] removed <- setdiff(old_names, names) [18:01:46.065] changed <- common[...future.oldEnvVars[common] != [18:01:46.065] envs[common]] [18:01:46.065] NAMES <- toupper(changed) [18:01:46.065] args <- list() [18:01:46.065] for (kk in seq_along(NAMES)) { [18:01:46.065] name <- changed[[kk]] [18:01:46.065] NAME <- NAMES[[kk]] [18:01:46.065] if (name != NAME && is.element(NAME, old_names)) [18:01:46.065] next [18:01:46.065] args[[name]] <- ...future.oldEnvVars[[name]] [18:01:46.065] } [18:01:46.065] NAMES <- toupper(added) [18:01:46.065] for (kk in seq_along(NAMES)) { [18:01:46.065] name <- added[[kk]] [18:01:46.065] NAME <- NAMES[[kk]] [18:01:46.065] if (name != NAME && is.element(NAME, old_names)) [18:01:46.065] next [18:01:46.065] args[[name]] <- "" [18:01:46.065] } [18:01:46.065] NAMES <- toupper(removed) [18:01:46.065] for (kk in seq_along(NAMES)) { [18:01:46.065] name <- removed[[kk]] [18:01:46.065] NAME <- NAMES[[kk]] [18:01:46.065] if (name != NAME && is.element(NAME, old_names)) [18:01:46.065] next [18:01:46.065] args[[name]] <- ...future.oldEnvVars[[name]] [18:01:46.065] } [18:01:46.065] if (length(args) > 0) [18:01:46.065] base::do.call(base::Sys.setenv, args = args) [18:01:46.065] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [18:01:46.065] } [18:01:46.065] else { [18:01:46.065] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [18:01:46.065] } [18:01:46.065] { [18:01:46.065] if (base::length(...future.futureOptionsAdded) > [18:01:46.065] 0L) { [18:01:46.065] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [18:01:46.065] base::names(opts) <- ...future.futureOptionsAdded [18:01:46.065] base::options(opts) [18:01:46.065] } [18:01:46.065] { [18:01:46.065] { [18:01:46.065] NULL [18:01:46.065] RNGkind("Mersenne-Twister") [18:01:46.065] base::rm(list = ".Random.seed", envir = base::globalenv(), [18:01:46.065] inherits = FALSE) [18:01:46.065] } [18:01:46.065] options(future.plan = NULL) [18:01:46.065] if (is.na(NA_character_)) [18:01:46.065] Sys.unsetenv("R_FUTURE_PLAN") [18:01:46.065] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [18:01:46.065] future::plan(list(function (..., envir = parent.frame()) [18:01:46.065] { [18:01:46.065] future <- SequentialFuture(..., envir = envir) [18:01:46.065] if (!future$lazy) [18:01:46.065] future <- run(future) [18:01:46.065] invisible(future) [18:01:46.065] }), .cleanup = FALSE, .init = FALSE) [18:01:46.065] } [18:01:46.065] } [18:01:46.065] } [18:01:46.065] }) [18:01:46.065] if (TRUE) { [18:01:46.065] base::sink(type = "output", split = FALSE) [18:01:46.065] if (TRUE) { [18:01:46.065] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [18:01:46.065] } [18:01:46.065] else { [18:01:46.065] ...future.result["stdout"] <- base::list(NULL) [18:01:46.065] } [18:01:46.065] base::close(...future.stdout) [18:01:46.065] ...future.stdout <- NULL [18:01:46.065] } [18:01:46.065] ...future.result$conditions <- ...future.conditions [18:01:46.065] ...future.result$finished <- base::Sys.time() [18:01:46.065] ...future.result [18:01:46.065] } [18:01:46.072] assign_globals() ... [18:01:46.072] List of 1 [18:01:46.072] $ my_fcn:Formal class 'standardGeneric' [package "methods"] with 8 slots [18:01:46.072] .. ..@ .Data :function (x) [18:01:46.072] .. ..@ generic : chr "my_fcn" [18:01:46.072] .. .. ..- attr(*, "package")= chr ".GlobalEnv" [18:01:46.072] .. ..@ package : chr ".GlobalEnv" [18:01:46.072] .. ..@ group : list() [18:01:46.072] .. ..@ valueClass: chr(0) [18:01:46.072] .. ..@ signature : chr "x" [18:01:46.072] .. ..@ default : NULL [18:01:46.072] .. ..@ skeleton : language (function (x) stop(gettextf("invalid call in method dispatch to '%s' (no default method)", ... [18:01:46.072] - attr(*, "where")=List of 1 [18:01:46.072] ..$ my_fcn: [18:01:46.072] - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list" [18:01:46.072] - attr(*, "resolved")= logi FALSE [18:01:46.072] - attr(*, "total_size")= num 3936 [18:01:46.072] - attr(*, "already-done")= logi TRUE [18:01:46.084] - reassign environment for 'my_fcn' [18:01:46.084] - copied 'my_fcn' to environment [18:01:46.085] assign_globals() ... done [18:01:46.085] plan(): Setting new future strategy stack: [18:01:46.085] List of future strategies: [18:01:46.085] 1. sequential: [18:01:46.085] - args: function (..., envir = parent.frame()) [18:01:46.085] - tweaked: FALSE [18:01:46.085] - call: NULL [18:01:46.086] plan(): nbrOfWorkers() = 1 [18:01:46.089] plan(): Setting new future strategy stack: [18:01:46.089] List of future strategies: [18:01:46.089] 1. sequential: [18:01:46.089] - args: function (..., envir = parent.frame()) [18:01:46.089] - tweaked: FALSE [18:01:46.089] - call: plan(strategy) [18:01:46.090] plan(): nbrOfWorkers() = 1 [18:01:46.090] SequentialFuture started (and completed) [18:01:46.090] signalConditions() ... [18:01:46.090] - include = 'immediateCondition' [18:01:46.091] - exclude = [18:01:46.091] - resignal = FALSE [18:01:46.091] - Number of conditions: 1 [18:01:46.091] signalConditions() ... done [18:01:46.091] - Launch lazy future ... done [18:01:46.092] run() for 'SequentialFuture' ... done [18:01:46.092] signalConditions() ... [18:01:46.092] - include = 'immediateCondition' [18:01:46.092] - exclude = [18:01:46.092] - resignal = FALSE [18:01:46.092] - Number of conditions: 1 [18:01:46.093] signalConditions() ... done [18:01:46.093] Future state: 'finished' [18:01:46.093] signalConditions() ... [18:01:46.093] - include = 'condition' [18:01:46.093] - exclude = 'immediateCondition' [18:01:46.094] - resignal = TRUE [18:01:46.094] - Number of conditions: 1 [18:01:46.094] - Condition #1: 'simpleError', 'error', 'condition' [18:01:46.094] signalConditions() ... done ): unable to find an inherited method for function 'my_fcn' for signature '"numeric"'> Type of future: multisession [18:01:46.095] plan(): Setting new future strategy stack: [18:01:46.096] List of future strategies: [18:01:46.096] 1. multisession: [18:01:46.096] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [18:01:46.096] - tweaked: FALSE [18:01:46.096] - call: plan(strategy) [18:01:46.096] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... [18:01:46.096] multisession: [18:01:46.096] - args: function (..., workers = availableCores(), lazy = FALSE, rscript_libs = .libPaths(), envir = parent.frame()) [18:01:46.096] - tweaked: FALSE [18:01:46.096] - call: plan(strategy) [18:01:46.102] getGlobalsAndPackages() ... [18:01:46.102] Not searching for globals [18:01:46.102] - globals: [0] [18:01:46.102] getGlobalsAndPackages() ... DONE [18:01:46.103] [local output] makeClusterPSOCK() ... [18:01:46.176] [local output] Workers: [n = 2] 'localhost', 'localhost' [18:01:46.183] [local output] Base port: 27597 [18:01:46.183] [local output] Getting setup options for 2 cluster nodes ... [18:01:46.183] [local output] - Node 1 of 2 ... [18:01:46.184] [local output] localMachine=TRUE => revtunnel=FALSE [18:01:46.185] Testing if worker's PID can be inferred: '"D:/RCompile/recent/R/bin/x64/Rscript" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpcFZN5E/worker.rank=1.parallelly.parent=193960.2f5a873b820f3.pid\")), silent = TRUE)" -e "file.exists(\"D:/temp/RtmpcFZN5E/worker.rank=1.parallelly.parent=193960.2f5a873b820f3.pid\")"' [18:01:46.627] - Possible to infer worker's PID: TRUE [18:01:46.628] [local output] Rscript port: 27597 [18:01:46.628] [local output] - Node 2 of 2 ... [18:01:46.629] [local output] localMachine=TRUE => revtunnel=FALSE [18:01:46.630] [local output] Rscript port: 27597 [18:01:46.630] [local output] Getting setup options for 2 cluster nodes ... done [18:01:46.631] [local output] - Parallel setup requested for some PSOCK nodes [18:01:46.631] [local output] Setting up PSOCK nodes in parallel [18:01:46.632] List of 36 [18:01:46.632] $ worker : chr "localhost" [18:01:46.632] ..- attr(*, "localhost")= logi TRUE [18:01:46.632] $ master : chr "localhost" [18:01:46.632] $ port : int 27597 [18:01:46.632] $ connectTimeout : num 120 [18:01:46.632] $ timeout : num 120 [18:01:46.632] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [18:01:46.632] $ homogeneous : logi TRUE [18:01:46.632] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=globals,S4methods.R:193960:CRANW"| __truncated__ [18:01:46.632] $ rscript_envs : NULL [18:01:46.632] $ rscript_libs : chr [1:2] "D:/temp/Rtmp67Lu9b/RLIBS_19fe819742e2c" "D:/RCompile/recent/R/library" [18:01:46.632] $ rscript_startup : NULL [18:01:46.632] $ rscript_sh : chr "cmd" [18:01:46.632] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [18:01:46.632] $ methods : logi TRUE [18:01:46.632] $ socketOptions : chr "no-delay" [18:01:46.632] $ useXDR : logi FALSE [18:01:46.632] $ outfile : chr "/dev/null" [18:01:46.632] $ renice : int NA [18:01:46.632] $ rshcmd : NULL [18:01:46.632] $ user : chr(0) [18:01:46.632] $ revtunnel : logi FALSE [18:01:46.632] $ rshlogfile : NULL [18:01:46.632] $ rshopts : chr(0) [18:01:46.632] $ rank : int 1 [18:01:46.632] $ manual : logi FALSE [18:01:46.632] $ dryrun : logi FALSE [18:01:46.632] $ quiet : logi FALSE [18:01:46.632] $ setup_strategy : chr "parallel" [18:01:46.632] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [18:01:46.632] $ pidfile : chr "D:/temp/RtmpcFZN5E/worker.rank=1.parallelly.parent=193960.2f5a873b820f3.pid" [18:01:46.632] $ rshcmd_label : NULL [18:01:46.632] $ rsh_call : NULL [18:01:46.632] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [18:01:46.632] $ localMachine : logi TRUE [18:01:46.632] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [18:01:46.632] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [18:01:46.632] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [18:01:46.632] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [18:01:46.632] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [18:01:46.632] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [18:01:46.632] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [18:01:46.632] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [18:01:46.632] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [18:01:46.632] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [18:01:46.632] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [18:01:46.632] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [18:01:46.632] "parallel"), action = c("launch", "options"), verbose = FALSE) [18:01:46.632] $ arguments :List of 28 [18:01:46.632] ..$ worker : chr "localhost" [18:01:46.632] ..$ master : NULL [18:01:46.632] ..$ port : int 27597 [18:01:46.632] ..$ connectTimeout : num 120 [18:01:46.632] ..$ timeout : num 120 [18:01:46.632] ..$ rscript : NULL [18:01:46.632] ..$ homogeneous : NULL [18:01:46.632] ..$ rscript_args : NULL [18:01:46.632] ..$ rscript_envs : NULL [18:01:46.632] ..$ rscript_libs : chr [1:2] "D:/temp/Rtmp67Lu9b/RLIBS_19fe819742e2c" "D:/RCompile/recent/R/library" [18:01:46.632] ..$ rscript_startup : NULL [18:01:46.632] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [18:01:46.632] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [18:01:46.632] ..$ methods : logi TRUE [18:01:46.632] ..$ socketOptions : chr "no-delay" [18:01:46.632] ..$ useXDR : logi FALSE [18:01:46.632] ..$ outfile : chr "/dev/null" [18:01:46.632] ..$ renice : int NA [18:01:46.632] ..$ rshcmd : NULL [18:01:46.632] ..$ user : NULL [18:01:46.632] ..$ revtunnel : logi NA [18:01:46.632] ..$ rshlogfile : NULL [18:01:46.632] ..$ rshopts : NULL [18:01:46.632] ..$ rank : int 1 [18:01:46.632] ..$ manual : logi FALSE [18:01:46.632] ..$ dryrun : logi FALSE [18:01:46.632] ..$ quiet : logi FALSE [18:01:46.632] ..$ setup_strategy : chr "parallel" [18:01:46.632] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [18:01:46.656] [local output] System call to launch all workers: [18:01:46.656] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=globals,S4methods.R:193960:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpcFZN5E/worker.rank=1.parallelly.parent=193960.2f5a873b820f3.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e ".libPaths(c(\"D:/temp/Rtmp67Lu9b/RLIBS_19fe819742e2c\",\"D:/RCompile/recent/R/library\"))" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=27597 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [18:01:46.656] [local output] Starting PSOCK main server [18:01:46.665] [local output] Workers launched [18:01:46.665] [local output] Waiting for workers to connect back [18:01:46.665] - [local output] 0 workers out of 2 ready [18:01:46.839] - [local output] 0 workers out of 2 ready [18:01:46.840] - [local output] 1 workers out of 2 ready [18:01:46.840] - [local output] 2 workers out of 2 ready [18:01:46.840] [local output] Launching of workers completed [18:01:46.841] [local output] Collecting session information from workers [18:01:46.842] [local output] - Worker #1 of 2 [18:01:46.842] [local output] - Worker #2 of 2 [18:01:46.843] [local output] makeClusterPSOCK() ... done [18:01:46.855] Packages needed by the future expression (n = 0): [18:01:46.856] Packages needed by future strategies (n = 0): [18:01:46.856] { [18:01:46.856] { [18:01:46.856] { [18:01:46.856] ...future.startTime <- base::Sys.time() [18:01:46.856] { [18:01:46.856] { [18:01:46.856] { [18:01:46.856] { [18:01:46.856] base::local({ [18:01:46.856] has_future <- base::requireNamespace("future", [18:01:46.856] quietly = TRUE) [18:01:46.856] if (has_future) { [18:01:46.856] ns <- base::getNamespace("future") [18:01:46.856] version <- ns[[".package"]][["version"]] [18:01:46.856] if (is.null(version)) [18:01:46.856] version <- utils::packageVersion("future") [18:01:46.856] } [18:01:46.856] else { [18:01:46.856] version <- NULL [18:01:46.856] } [18:01:46.856] if (!has_future || version < "1.8.0") { [18:01:46.856] info <- base::c(r_version = base::gsub("R version ", [18:01:46.856] "", base::R.version$version.string), [18:01:46.856] platform = base::sprintf("%s (%s-bit)", [18:01:46.856] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [18:01:46.856] os = base::paste(base::Sys.info()[base::c("sysname", [18:01:46.856] "release", "version")], collapse = " "), [18:01:46.856] hostname = base::Sys.info()[["nodename"]]) [18:01:46.856] info <- base::sprintf("%s: %s", base::names(info), [18:01:46.856] info) [18:01:46.856] info <- base::paste(info, collapse = "; ") [18:01:46.856] if (!has_future) { [18:01:46.856] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [18:01:46.856] info) [18:01:46.856] } [18:01:46.856] else { [18:01:46.856] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [18:01:46.856] info, version) [18:01:46.856] } [18:01:46.856] base::stop(msg) [18:01:46.856] } [18:01:46.856] }) [18:01:46.856] } [18:01:46.856] ...future.mc.cores.old <- base::getOption("mc.cores") [18:01:46.856] base::options(mc.cores = 1L) [18:01:46.856] } [18:01:46.856] options(future.plan = NULL) [18:01:46.856] Sys.unsetenv("R_FUTURE_PLAN") [18:01:46.856] future::plan("default", .cleanup = FALSE, .init = FALSE) [18:01:46.856] } [18:01:46.856] ...future.workdir <- getwd() [18:01:46.856] } [18:01:46.856] ...future.oldOptions <- base::as.list(base::.Options) [18:01:46.856] ...future.oldEnvVars <- base::Sys.getenv() [18:01:46.856] } [18:01:46.856] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [18:01:46.856] future.globals.maxSize = NULL, future.globals.method = NULL, [18:01:46.856] future.globals.onMissing = NULL, future.globals.onReference = NULL, [18:01:46.856] future.globals.resolve = NULL, future.resolve.recursive = NULL, [18:01:46.856] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [18:01:46.856] future.stdout.windows.reencode = NULL, width = 80L) [18:01:46.856] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [18:01:46.856] base::names(...future.oldOptions)) [18:01:46.856] } [18:01:46.856] if (FALSE) { [18:01:46.856] } [18:01:46.856] else { [18:01:46.856] if (TRUE) { [18:01:46.856] ...future.stdout <- base::rawConnection(base::raw(0L), [18:01:46.856] open = "w") [18:01:46.856] } [18:01:46.856] else { [18:01:46.856] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [18:01:46.856] windows = "NUL", "/dev/null"), open = "w") [18:01:46.856] } [18:01:46.856] base::sink(...future.stdout, type = "output", split = FALSE) [18:01:46.856] base::on.exit(if (!base::is.null(...future.stdout)) { [18:01:46.856] base::sink(type = "output", split = FALSE) [18:01:46.856] base::close(...future.stdout) [18:01:46.856] }, add = TRUE) [18:01:46.856] } [18:01:46.856] ...future.frame <- base::sys.nframe() [18:01:46.856] ...future.conditions <- base::list() [18:01:46.856] ...future.rng <- base::globalenv()$.Random.seed [18:01:46.856] if (FALSE) { [18:01:46.856] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [18:01:46.856] "...future.value", "...future.globalenv.names", ".Random.seed") [18:01:46.856] } [18:01:46.856] ...future.result <- base::tryCatch({ [18:01:46.856] base::withCallingHandlers({ [18:01:46.856] ...future.value <- base::withVisible(base::local({ [18:01:46.856] ...future.makeSendCondition <- local({ [18:01:46.856] sendCondition <- NULL [18:01:46.856] function(frame = 1L) { [18:01:46.856] if (is.function(sendCondition)) [18:01:46.856] return(sendCondition) [18:01:46.856] ns <- getNamespace("parallel") [18:01:46.856] if (exists("sendData", mode = "function", [18:01:46.856] envir = ns)) { [18:01:46.856] parallel_sendData <- get("sendData", mode = "function", [18:01:46.856] envir = ns) [18:01:46.856] envir <- sys.frame(frame) [18:01:46.856] master <- NULL [18:01:46.856] while (!identical(envir, .GlobalEnv) && [18:01:46.856] !identical(envir, emptyenv())) { [18:01:46.856] if (exists("master", mode = "list", envir = envir, [18:01:46.856] inherits = FALSE)) { [18:01:46.856] master <- get("master", mode = "list", [18:01:46.856] envir = envir, inherits = FALSE) [18:01:46.856] if (inherits(master, c("SOCKnode", [18:01:46.856] "SOCK0node"))) { [18:01:46.856] sendCondition <<- function(cond) { [18:01:46.856] data <- list(type = "VALUE", value = cond, [18:01:46.856] success = TRUE) [18:01:46.856] parallel_sendData(master, data) [18:01:46.856] } [18:01:46.856] return(sendCondition) [18:01:46.856] } [18:01:46.856] } [18:01:46.856] frame <- frame + 1L [18:01:46.856] envir <- sys.frame(frame) [18:01:46.856] } [18:01:46.856] } [18:01:46.856] sendCondition <<- function(cond) NULL [18:01:46.856] } [18:01:46.856] }) [18:01:46.856] withCallingHandlers({ [18:01:46.856] NA [18:01:46.856] }, immediateCondition = function(cond) { [18:01:46.856] sendCondition <- ...future.makeSendCondition() [18:01:46.856] sendCondition(cond) [18:01:46.856] muffleCondition <- function (cond, pattern = "^muffle") [18:01:46.856] { [18:01:46.856] inherits <- base::inherits [18:01:46.856] invokeRestart <- base::invokeRestart [18:01:46.856] is.null <- base::is.null [18:01:46.856] muffled <- FALSE [18:01:46.856] if (inherits(cond, "message")) { [18:01:46.856] muffled <- grepl(pattern, "muffleMessage") [18:01:46.856] if (muffled) [18:01:46.856] invokeRestart("muffleMessage") [18:01:46.856] } [18:01:46.856] else if (inherits(cond, "warning")) { [18:01:46.856] muffled <- grepl(pattern, "muffleWarning") [18:01:46.856] if (muffled) [18:01:46.856] invokeRestart("muffleWarning") [18:01:46.856] } [18:01:46.856] else if (inherits(cond, "condition")) { [18:01:46.856] if (!is.null(pattern)) { [18:01:46.856] computeRestarts <- base::computeRestarts [18:01:46.856] grepl <- base::grepl [18:01:46.856] restarts <- computeRestarts(cond) [18:01:46.856] for (restart in restarts) { [18:01:46.856] name <- restart$name [18:01:46.856] if (is.null(name)) [18:01:46.856] next [18:01:46.856] if (!grepl(pattern, name)) [18:01:46.856] next [18:01:46.856] invokeRestart(restart) [18:01:46.856] muffled <- TRUE [18:01:46.856] break [18:01:46.856] } [18:01:46.856] } [18:01:46.856] } [18:01:46.856] invisible(muffled) [18:01:46.856] } [18:01:46.856] muffleCondition(cond) [18:01:46.856] }) [18:01:46.856] })) [18:01:46.856] future::FutureResult(value = ...future.value$value, [18:01:46.856] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [18:01:46.856] ...future.rng), globalenv = if (FALSE) [18:01:46.856] list(added = base::setdiff(base::names(base::.GlobalEnv), [18:01:46.856] ...future.globalenv.names)) [18:01:46.856] else NULL, started = ...future.startTime, version = "1.8") [18:01:46.856] }, condition = base::local({ [18:01:46.856] c <- base::c [18:01:46.856] inherits <- base::inherits [18:01:46.856] invokeRestart <- base::invokeRestart [18:01:46.856] length <- base::length [18:01:46.856] list <- base::list [18:01:46.856] seq.int <- base::seq.int [18:01:46.856] signalCondition <- base::signalCondition [18:01:46.856] sys.calls <- base::sys.calls [18:01:46.856] `[[` <- base::`[[` [18:01:46.856] `+` <- base::`+` [18:01:46.856] `<<-` <- base::`<<-` [18:01:46.856] sysCalls <- function(calls = sys.calls(), from = 1L) { [18:01:46.856] calls[seq.int(from = from + 12L, to = length(calls) - [18:01:46.856] 3L)] [18:01:46.856] } [18:01:46.856] function(cond) { [18:01:46.856] is_error <- inherits(cond, "error") [18:01:46.856] ignore <- !is_error && !is.null(NULL) && inherits(cond, [18:01:46.856] NULL) [18:01:46.856] if (is_error) { [18:01:46.856] sessionInformation <- function() { [18:01:46.856] list(r = base::R.Version(), locale = base::Sys.getlocale(), [18:01:46.856] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [18:01:46.856] search = base::search(), system = base::Sys.info()) [18:01:46.856] } [18:01:46.856] ...future.conditions[[length(...future.conditions) + [18:01:46.856] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [18:01:46.856] cond$call), session = sessionInformation(), [18:01:46.856] timestamp = base::Sys.time(), signaled = 0L) [18:01:46.856] signalCondition(cond) [18:01:46.856] } [18:01:46.856] else if (!ignore && TRUE && inherits(cond, c("condition", [18:01:46.856] "immediateCondition"))) { [18:01:46.856] signal <- TRUE && inherits(cond, "immediateCondition") [18:01:46.856] ...future.conditions[[length(...future.conditions) + [18:01:46.856] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [18:01:46.856] if (TRUE && !signal) { [18:01:46.856] muffleCondition <- function (cond, pattern = "^muffle") [18:01:46.856] { [18:01:46.856] inherits <- base::inherits [18:01:46.856] invokeRestart <- base::invokeRestart [18:01:46.856] is.null <- base::is.null [18:01:46.856] muffled <- FALSE [18:01:46.856] if (inherits(cond, "message")) { [18:01:46.856] muffled <- grepl(pattern, "muffleMessage") [18:01:46.856] if (muffled) [18:01:46.856] invokeRestart("muffleMessage") [18:01:46.856] } [18:01:46.856] else if (inherits(cond, "warning")) { [18:01:46.856] muffled <- grepl(pattern, "muffleWarning") [18:01:46.856] if (muffled) [18:01:46.856] invokeRestart("muffleWarning") [18:01:46.856] } [18:01:46.856] else if (inherits(cond, "condition")) { [18:01:46.856] if (!is.null(pattern)) { [18:01:46.856] computeRestarts <- base::computeRestarts [18:01:46.856] grepl <- base::grepl [18:01:46.856] restarts <- computeRestarts(cond) [18:01:46.856] for (restart in restarts) { [18:01:46.856] name <- restart$name [18:01:46.856] if (is.null(name)) [18:01:46.856] next [18:01:46.856] if (!grepl(pattern, name)) [18:01:46.856] next [18:01:46.856] invokeRestart(restart) [18:01:46.856] muffled <- TRUE [18:01:46.856] break [18:01:46.856] } [18:01:46.856] } [18:01:46.856] } [18:01:46.856] invisible(muffled) [18:01:46.856] } [18:01:46.856] muffleCondition(cond, pattern = "^muffle") [18:01:46.856] } [18:01:46.856] } [18:01:46.856] else { [18:01:46.856] if (TRUE) { [18:01:46.856] muffleCondition <- function (cond, pattern = "^muffle") [18:01:46.856] { [18:01:46.856] inherits <- base::inherits [18:01:46.856] invokeRestart <- base::invokeRestart [18:01:46.856] is.null <- base::is.null [18:01:46.856] muffled <- FALSE [18:01:46.856] if (inherits(cond, "message")) { [18:01:46.856] muffled <- grepl(pattern, "muffleMessage") [18:01:46.856] if (muffled) [18:01:46.856] invokeRestart("muffleMessage") [18:01:46.856] } [18:01:46.856] else if (inherits(cond, "warning")) { [18:01:46.856] muffled <- grepl(pattern, "muffleWarning") [18:01:46.856] if (muffled) [18:01:46.856] invokeRestart("muffleWarning") [18:01:46.856] } [18:01:46.856] else if (inherits(cond, "condition")) { [18:01:46.856] if (!is.null(pattern)) { [18:01:46.856] computeRestarts <- base::computeRestarts [18:01:46.856] grepl <- base::grepl [18:01:46.856] restarts <- computeRestarts(cond) [18:01:46.856] for (restart in restarts) { [18:01:46.856] name <- restart$name [18:01:46.856] if (is.null(name)) [18:01:46.856] next [18:01:46.856] if (!grepl(pattern, name)) [18:01:46.856] next [18:01:46.856] invokeRestart(restart) [18:01:46.856] muffled <- TRUE [18:01:46.856] break [18:01:46.856] } [18:01:46.856] } [18:01:46.856] } [18:01:46.856] invisible(muffled) [18:01:46.856] } [18:01:46.856] muffleCondition(cond, pattern = "^muffle") [18:01:46.856] } [18:01:46.856] } [18:01:46.856] } [18:01:46.856] })) [18:01:46.856] }, error = function(ex) { [18:01:46.856] base::structure(base::list(value = NULL, visible = NULL, [18:01:46.856] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [18:01:46.856] ...future.rng), started = ...future.startTime, [18:01:46.856] finished = Sys.time(), session_uuid = NA_character_, [18:01:46.856] version = "1.8"), class = "FutureResult") [18:01:46.856] }, finally = { [18:01:46.856] if (!identical(...future.workdir, getwd())) [18:01:46.856] setwd(...future.workdir) [18:01:46.856] { [18:01:46.856] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [18:01:46.856] ...future.oldOptions$nwarnings <- NULL [18:01:46.856] } [18:01:46.856] base::options(...future.oldOptions) [18:01:46.856] if (.Platform$OS.type == "windows") { [18:01:46.856] old_names <- names(...future.oldEnvVars) [18:01:46.856] envs <- base::Sys.getenv() [18:01:46.856] names <- names(envs) [18:01:46.856] common <- intersect(names, old_names) [18:01:46.856] added <- setdiff(names, old_names) [18:01:46.856] removed <- setdiff(old_names, names) [18:01:46.856] changed <- common[...future.oldEnvVars[common] != [18:01:46.856] envs[common]] [18:01:46.856] NAMES <- toupper(changed) [18:01:46.856] args <- list() [18:01:46.856] for (kk in seq_along(NAMES)) { [18:01:46.856] name <- changed[[kk]] [18:01:46.856] NAME <- NAMES[[kk]] [18:01:46.856] if (name != NAME && is.element(NAME, old_names)) [18:01:46.856] next [18:01:46.856] args[[name]] <- ...future.oldEnvVars[[name]] [18:01:46.856] } [18:01:46.856] NAMES <- toupper(added) [18:01:46.856] for (kk in seq_along(NAMES)) { [18:01:46.856] name <- added[[kk]] [18:01:46.856] NAME <- NAMES[[kk]] [18:01:46.856] if (name != NAME && is.element(NAME, old_names)) [18:01:46.856] next [18:01:46.856] args[[name]] <- "" [18:01:46.856] } [18:01:46.856] NAMES <- toupper(removed) [18:01:46.856] for (kk in seq_along(NAMES)) { [18:01:46.856] name <- removed[[kk]] [18:01:46.856] NAME <- NAMES[[kk]] [18:01:46.856] if (name != NAME && is.element(NAME, old_names)) [18:01:46.856] next [18:01:46.856] args[[name]] <- ...future.oldEnvVars[[name]] [18:01:46.856] } [18:01:46.856] if (length(args) > 0) [18:01:46.856] base::do.call(base::Sys.setenv, args = args) [18:01:46.856] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [18:01:46.856] } [18:01:46.856] else { [18:01:46.856] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [18:01:46.856] } [18:01:46.856] { [18:01:46.856] if (base::length(...future.futureOptionsAdded) > [18:01:46.856] 0L) { [18:01:46.856] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [18:01:46.856] base::names(opts) <- ...future.futureOptionsAdded [18:01:46.856] base::options(opts) [18:01:46.856] } [18:01:46.856] { [18:01:46.856] { [18:01:46.856] base::options(mc.cores = ...future.mc.cores.old) [18:01:46.856] NULL [18:01:46.856] } [18:01:46.856] options(future.plan = NULL) [18:01:46.856] if (is.na(NA_character_)) [18:01:46.856] Sys.unsetenv("R_FUTURE_PLAN") [18:01:46.856] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [18:01:46.856] future::plan(list(function (..., workers = availableCores(), [18:01:46.856] lazy = FALSE, rscript_libs = .libPaths(), [18:01:46.856] envir = parent.frame()) [18:01:46.856] { [18:01:46.856] if (is.function(workers)) [18:01:46.856] workers <- workers() [18:01:46.856] workers <- structure(as.integer(workers), [18:01:46.856] class = class(workers)) [18:01:46.856] stop_if_not(length(workers) == 1, is.finite(workers), [18:01:46.856] workers >= 1) [18:01:46.856] if (workers == 1L && !inherits(workers, "AsIs")) { [18:01:46.856] return(sequential(..., lazy = TRUE, envir = envir)) [18:01:46.856] } [18:01:46.856] future <- MultisessionFuture(..., workers = workers, [18:01:46.856] lazy = lazy, rscript_libs = rscript_libs, [18:01:46.856] envir = envir) [18:01:46.856] if (!future$lazy) [18:01:46.856] future <- run(future) [18:01:46.856] invisible(future) [18:01:46.856] }), .cleanup = FALSE, .init = FALSE) [18:01:46.856] } [18:01:46.856] } [18:01:46.856] } [18:01:46.856] }) [18:01:46.856] if (TRUE) { [18:01:46.856] base::sink(type = "output", split = FALSE) [18:01:46.856] if (TRUE) { [18:01:46.856] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [18:01:46.856] } [18:01:46.856] else { [18:01:46.856] ...future.result["stdout"] <- base::list(NULL) [18:01:46.856] } [18:01:46.856] base::close(...future.stdout) [18:01:46.856] ...future.stdout <- NULL [18:01:46.856] } [18:01:46.856] ...future.result$conditions <- ...future.conditions [18:01:46.856] ...future.result$finished <- base::Sys.time() [18:01:46.856] ...future.result [18:01:46.856] } [18:01:46.946] MultisessionFuture started [18:01:46.946] result() for ClusterFuture ... [18:01:46.947] receiveMessageFromWorker() for ClusterFuture ... [18:01:46.947] - Validating connection of MultisessionFuture [18:01:47.003] - received message: FutureResult [18:01:47.004] - Received FutureResult [18:01:47.007] - Erased future from FutureRegistry [18:01:47.007] result() for ClusterFuture ... [18:01:47.007] - result already collected: FutureResult [18:01:47.008] result() for ClusterFuture ... done [18:01:47.008] receiveMessageFromWorker() for ClusterFuture ... done [18:01:47.008] result() for ClusterFuture ... done [18:01:47.008] result() for ClusterFuture ... [18:01:47.008] - result already collected: FutureResult [18:01:47.009] result() for ClusterFuture ... done [18:01:47.009] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ... DONE [18:01:47.012] plan(): nbrOfWorkers() = 2 [18:01:47.012] getGlobalsAndPackages() ... [18:01:47.012] Searching for globals... [18:01:47.016] - globals found: [7] '{', 'my_fcn', 'standardGeneric', 'NULL', 'stop', 'gettextf', 'x' [18:01:47.016] Searching for globals ... DONE [18:01:47.016] Resolving globals: FALSE [18:01:47.017] The total size of the 1 globals is 3.84 KiB (3936 bytes) [18:01:47.018] 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') [18:01:47.018] - globals: [1] 'my_fcn' [18:01:47.018] [18:01:47.018] getGlobalsAndPackages() ... DONE [18:01:47.019] run() for 'Future' ... [18:01:47.019] - state: 'created' [18:01:47.019] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [18:01:47.034] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [18:01:47.034] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [18:01:47.034] - Field: 'node' [18:01:47.035] - Field: 'label' [18:01:47.035] - Field: 'local' [18:01:47.035] - Field: 'owner' [18:01:47.035] - Field: 'envir' [18:01:47.035] - Field: 'workers' [18:01:47.036] - Field: 'packages' [18:01:47.036] - Field: 'gc' [18:01:47.036] - Field: 'conditions' [18:01:47.036] - Field: 'persistent' [18:01:47.036] - Field: 'expr' [18:01:47.037] - Field: 'uuid' [18:01:47.037] - Field: 'seed' [18:01:47.037] - Field: 'version' [18:01:47.037] - Field: 'result' [18:01:47.037] - Field: 'asynchronous' [18:01:47.038] - Field: 'calls' [18:01:47.038] - Field: 'globals' [18:01:47.038] - Field: 'stdout' [18:01:47.038] - Field: 'earlySignal' [18:01:47.038] - Field: 'lazy' [18:01:47.039] - Field: 'state' [18:01:47.039] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [18:01:47.039] - Launch lazy future ... [18:01:47.039] Packages needed by the future expression (n = 0): [18:01:47.040] Packages needed by future strategies (n = 0): [18:01:47.040] { [18:01:47.040] { [18:01:47.040] { [18:01:47.040] ...future.startTime <- base::Sys.time() [18:01:47.040] { [18:01:47.040] { [18:01:47.040] { [18:01:47.040] { [18:01:47.040] base::local({ [18:01:47.040] has_future <- base::requireNamespace("future", [18:01:47.040] quietly = TRUE) [18:01:47.040] if (has_future) { [18:01:47.040] ns <- base::getNamespace("future") [18:01:47.040] version <- ns[[".package"]][["version"]] [18:01:47.040] if (is.null(version)) [18:01:47.040] version <- utils::packageVersion("future") [18:01:47.040] } [18:01:47.040] else { [18:01:47.040] version <- NULL [18:01:47.040] } [18:01:47.040] if (!has_future || version < "1.8.0") { [18:01:47.040] info <- base::c(r_version = base::gsub("R version ", [18:01:47.040] "", base::R.version$version.string), [18:01:47.040] platform = base::sprintf("%s (%s-bit)", [18:01:47.040] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [18:01:47.040] os = base::paste(base::Sys.info()[base::c("sysname", [18:01:47.040] "release", "version")], collapse = " "), [18:01:47.040] hostname = base::Sys.info()[["nodename"]]) [18:01:47.040] info <- base::sprintf("%s: %s", base::names(info), [18:01:47.040] info) [18:01:47.040] info <- base::paste(info, collapse = "; ") [18:01:47.040] if (!has_future) { [18:01:47.040] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [18:01:47.040] info) [18:01:47.040] } [18:01:47.040] else { [18:01:47.040] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [18:01:47.040] info, version) [18:01:47.040] } [18:01:47.040] base::stop(msg) [18:01:47.040] } [18:01:47.040] }) [18:01:47.040] } [18:01:47.040] ...future.mc.cores.old <- base::getOption("mc.cores") [18:01:47.040] base::options(mc.cores = 1L) [18:01:47.040] } [18:01:47.040] options(future.plan = NULL) [18:01:47.040] Sys.unsetenv("R_FUTURE_PLAN") [18:01:47.040] future::plan("default", .cleanup = FALSE, .init = FALSE) [18:01:47.040] } [18:01:47.040] ...future.workdir <- getwd() [18:01:47.040] } [18:01:47.040] ...future.oldOptions <- base::as.list(base::.Options) [18:01:47.040] ...future.oldEnvVars <- base::Sys.getenv() [18:01:47.040] } [18:01:47.040] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [18:01:47.040] future.globals.maxSize = NULL, future.globals.method = NULL, [18:01:47.040] future.globals.onMissing = NULL, future.globals.onReference = NULL, [18:01:47.040] future.globals.resolve = NULL, future.resolve.recursive = NULL, [18:01:47.040] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [18:01:47.040] future.stdout.windows.reencode = NULL, width = 80L) [18:01:47.040] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [18:01:47.040] base::names(...future.oldOptions)) [18:01:47.040] } [18:01:47.040] if (FALSE) { [18:01:47.040] } [18:01:47.040] else { [18:01:47.040] if (TRUE) { [18:01:47.040] ...future.stdout <- base::rawConnection(base::raw(0L), [18:01:47.040] open = "w") [18:01:47.040] } [18:01:47.040] else { [18:01:47.040] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [18:01:47.040] windows = "NUL", "/dev/null"), open = "w") [18:01:47.040] } [18:01:47.040] base::sink(...future.stdout, type = "output", split = FALSE) [18:01:47.040] base::on.exit(if (!base::is.null(...future.stdout)) { [18:01:47.040] base::sink(type = "output", split = FALSE) [18:01:47.040] base::close(...future.stdout) [18:01:47.040] }, add = TRUE) [18:01:47.040] } [18:01:47.040] ...future.frame <- base::sys.nframe() [18:01:47.040] ...future.conditions <- base::list() [18:01:47.040] ...future.rng <- base::globalenv()$.Random.seed [18:01:47.040] if (FALSE) { [18:01:47.040] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [18:01:47.040] "...future.value", "...future.globalenv.names", ".Random.seed") [18:01:47.040] } [18:01:47.040] ...future.result <- base::tryCatch({ [18:01:47.040] base::withCallingHandlers({ [18:01:47.040] ...future.value <- base::withVisible(base::local({ [18:01:47.040] ...future.makeSendCondition <- local({ [18:01:47.040] sendCondition <- NULL [18:01:47.040] function(frame = 1L) { [18:01:47.040] if (is.function(sendCondition)) [18:01:47.040] return(sendCondition) [18:01:47.040] ns <- getNamespace("parallel") [18:01:47.040] if (exists("sendData", mode = "function", [18:01:47.040] envir = ns)) { [18:01:47.040] parallel_sendData <- get("sendData", mode = "function", [18:01:47.040] envir = ns) [18:01:47.040] envir <- sys.frame(frame) [18:01:47.040] master <- NULL [18:01:47.040] while (!identical(envir, .GlobalEnv) && [18:01:47.040] !identical(envir, emptyenv())) { [18:01:47.040] if (exists("master", mode = "list", envir = envir, [18:01:47.040] inherits = FALSE)) { [18:01:47.040] master <- get("master", mode = "list", [18:01:47.040] envir = envir, inherits = FALSE) [18:01:47.040] if (inherits(master, c("SOCKnode", [18:01:47.040] "SOCK0node"))) { [18:01:47.040] sendCondition <<- function(cond) { [18:01:47.040] data <- list(type = "VALUE", value = cond, [18:01:47.040] success = TRUE) [18:01:47.040] parallel_sendData(master, data) [18:01:47.040] } [18:01:47.040] return(sendCondition) [18:01:47.040] } [18:01:47.040] } [18:01:47.040] frame <- frame + 1L [18:01:47.040] envir <- sys.frame(frame) [18:01:47.040] } [18:01:47.040] } [18:01:47.040] sendCondition <<- function(cond) NULL [18:01:47.040] } [18:01:47.040] }) [18:01:47.040] withCallingHandlers({ [18:01:47.040] { [18:01:47.040] my_fcn [18:01:47.040] } [18:01:47.040] }, immediateCondition = function(cond) { [18:01:47.040] sendCondition <- ...future.makeSendCondition() [18:01:47.040] sendCondition(cond) [18:01:47.040] muffleCondition <- function (cond, pattern = "^muffle") [18:01:47.040] { [18:01:47.040] inherits <- base::inherits [18:01:47.040] invokeRestart <- base::invokeRestart [18:01:47.040] is.null <- base::is.null [18:01:47.040] muffled <- FALSE [18:01:47.040] if (inherits(cond, "message")) { [18:01:47.040] muffled <- grepl(pattern, "muffleMessage") [18:01:47.040] if (muffled) [18:01:47.040] invokeRestart("muffleMessage") [18:01:47.040] } [18:01:47.040] else if (inherits(cond, "warning")) { [18:01:47.040] muffled <- grepl(pattern, "muffleWarning") [18:01:47.040] if (muffled) [18:01:47.040] invokeRestart("muffleWarning") [18:01:47.040] } [18:01:47.040] else if (inherits(cond, "condition")) { [18:01:47.040] if (!is.null(pattern)) { [18:01:47.040] computeRestarts <- base::computeRestarts [18:01:47.040] grepl <- base::grepl [18:01:47.040] restarts <- computeRestarts(cond) [18:01:47.040] for (restart in restarts) { [18:01:47.040] name <- restart$name [18:01:47.040] if (is.null(name)) [18:01:47.040] next [18:01:47.040] if (!grepl(pattern, name)) [18:01:47.040] next [18:01:47.040] invokeRestart(restart) [18:01:47.040] muffled <- TRUE [18:01:47.040] break [18:01:47.040] } [18:01:47.040] } [18:01:47.040] } [18:01:47.040] invisible(muffled) [18:01:47.040] } [18:01:47.040] muffleCondition(cond) [18:01:47.040] }) [18:01:47.040] })) [18:01:47.040] future::FutureResult(value = ...future.value$value, [18:01:47.040] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [18:01:47.040] ...future.rng), globalenv = if (FALSE) [18:01:47.040] list(added = base::setdiff(base::names(base::.GlobalEnv), [18:01:47.040] ...future.globalenv.names)) [18:01:47.040] else NULL, started = ...future.startTime, version = "1.8") [18:01:47.040] }, condition = base::local({ [18:01:47.040] c <- base::c [18:01:47.040] inherits <- base::inherits [18:01:47.040] invokeRestart <- base::invokeRestart [18:01:47.040] length <- base::length [18:01:47.040] list <- base::list [18:01:47.040] seq.int <- base::seq.int [18:01:47.040] signalCondition <- base::signalCondition [18:01:47.040] sys.calls <- base::sys.calls [18:01:47.040] `[[` <- base::`[[` [18:01:47.040] `+` <- base::`+` [18:01:47.040] `<<-` <- base::`<<-` [18:01:47.040] sysCalls <- function(calls = sys.calls(), from = 1L) { [18:01:47.040] calls[seq.int(from = from + 12L, to = length(calls) - [18:01:47.040] 3L)] [18:01:47.040] } [18:01:47.040] function(cond) { [18:01:47.040] is_error <- inherits(cond, "error") [18:01:47.040] ignore <- !is_error && !is.null(NULL) && inherits(cond, [18:01:47.040] NULL) [18:01:47.040] if (is_error) { [18:01:47.040] sessionInformation <- function() { [18:01:47.040] list(r = base::R.Version(), locale = base::Sys.getlocale(), [18:01:47.040] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [18:01:47.040] search = base::search(), system = base::Sys.info()) [18:01:47.040] } [18:01:47.040] ...future.conditions[[length(...future.conditions) + [18:01:47.040] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [18:01:47.040] cond$call), session = sessionInformation(), [18:01:47.040] timestamp = base::Sys.time(), signaled = 0L) [18:01:47.040] signalCondition(cond) [18:01:47.040] } [18:01:47.040] else if (!ignore && TRUE && inherits(cond, c("condition", [18:01:47.040] "immediateCondition"))) { [18:01:47.040] signal <- TRUE && inherits(cond, "immediateCondition") [18:01:47.040] ...future.conditions[[length(...future.conditions) + [18:01:47.040] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [18:01:47.040] if (TRUE && !signal) { [18:01:47.040] muffleCondition <- function (cond, pattern = "^muffle") [18:01:47.040] { [18:01:47.040] inherits <- base::inherits [18:01:47.040] invokeRestart <- base::invokeRestart [18:01:47.040] is.null <- base::is.null [18:01:47.040] muffled <- FALSE [18:01:47.040] if (inherits(cond, "message")) { [18:01:47.040] muffled <- grepl(pattern, "muffleMessage") [18:01:47.040] if (muffled) [18:01:47.040] invokeRestart("muffleMessage") [18:01:47.040] } [18:01:47.040] else if (inherits(cond, "warning")) { [18:01:47.040] muffled <- grepl(pattern, "muffleWarning") [18:01:47.040] if (muffled) [18:01:47.040] invokeRestart("muffleWarning") [18:01:47.040] } [18:01:47.040] else if (inherits(cond, "condition")) { [18:01:47.040] if (!is.null(pattern)) { [18:01:47.040] computeRestarts <- base::computeRestarts [18:01:47.040] grepl <- base::grepl [18:01:47.040] restarts <- computeRestarts(cond) [18:01:47.040] for (restart in restarts) { [18:01:47.040] name <- restart$name [18:01:47.040] if (is.null(name)) [18:01:47.040] next [18:01:47.040] if (!grepl(pattern, name)) [18:01:47.040] next [18:01:47.040] invokeRestart(restart) [18:01:47.040] muffled <- TRUE [18:01:47.040] break [18:01:47.040] } [18:01:47.040] } [18:01:47.040] } [18:01:47.040] invisible(muffled) [18:01:47.040] } [18:01:47.040] muffleCondition(cond, pattern = "^muffle") [18:01:47.040] } [18:01:47.040] } [18:01:47.040] else { [18:01:47.040] if (TRUE) { [18:01:47.040] muffleCondition <- function (cond, pattern = "^muffle") [18:01:47.040] { [18:01:47.040] inherits <- base::inherits [18:01:47.040] invokeRestart <- base::invokeRestart [18:01:47.040] is.null <- base::is.null [18:01:47.040] muffled <- FALSE [18:01:47.040] if (inherits(cond, "message")) { [18:01:47.040] muffled <- grepl(pattern, "muffleMessage") [18:01:47.040] if (muffled) [18:01:47.040] invokeRestart("muffleMessage") [18:01:47.040] } [18:01:47.040] else if (inherits(cond, "warning")) { [18:01:47.040] muffled <- grepl(pattern, "muffleWarning") [18:01:47.040] if (muffled) [18:01:47.040] invokeRestart("muffleWarning") [18:01:47.040] } [18:01:47.040] else if (inherits(cond, "condition")) { [18:01:47.040] if (!is.null(pattern)) { [18:01:47.040] computeRestarts <- base::computeRestarts [18:01:47.040] grepl <- base::grepl [18:01:47.040] restarts <- computeRestarts(cond) [18:01:47.040] for (restart in restarts) { [18:01:47.040] name <- restart$name [18:01:47.040] if (is.null(name)) [18:01:47.040] next [18:01:47.040] if (!grepl(pattern, name)) [18:01:47.040] next [18:01:47.040] invokeRestart(restart) [18:01:47.040] muffled <- TRUE [18:01:47.040] break [18:01:47.040] } [18:01:47.040] } [18:01:47.040] } [18:01:47.040] invisible(muffled) [18:01:47.040] } [18:01:47.040] muffleCondition(cond, pattern = "^muffle") [18:01:47.040] } [18:01:47.040] } [18:01:47.040] } [18:01:47.040] })) [18:01:47.040] }, error = function(ex) { [18:01:47.040] base::structure(base::list(value = NULL, visible = NULL, [18:01:47.040] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [18:01:47.040] ...future.rng), started = ...future.startTime, [18:01:47.040] finished = Sys.time(), session_uuid = NA_character_, [18:01:47.040] version = "1.8"), class = "FutureResult") [18:01:47.040] }, finally = { [18:01:47.040] if (!identical(...future.workdir, getwd())) [18:01:47.040] setwd(...future.workdir) [18:01:47.040] { [18:01:47.040] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [18:01:47.040] ...future.oldOptions$nwarnings <- NULL [18:01:47.040] } [18:01:47.040] base::options(...future.oldOptions) [18:01:47.040] if (.Platform$OS.type == "windows") { [18:01:47.040] old_names <- names(...future.oldEnvVars) [18:01:47.040] envs <- base::Sys.getenv() [18:01:47.040] names <- names(envs) [18:01:47.040] common <- intersect(names, old_names) [18:01:47.040] added <- setdiff(names, old_names) [18:01:47.040] removed <- setdiff(old_names, names) [18:01:47.040] changed <- common[...future.oldEnvVars[common] != [18:01:47.040] envs[common]] [18:01:47.040] NAMES <- toupper(changed) [18:01:47.040] args <- list() [18:01:47.040] for (kk in seq_along(NAMES)) { [18:01:47.040] name <- changed[[kk]] [18:01:47.040] NAME <- NAMES[[kk]] [18:01:47.040] if (name != NAME && is.element(NAME, old_names)) [18:01:47.040] next [18:01:47.040] args[[name]] <- ...future.oldEnvVars[[name]] [18:01:47.040] } [18:01:47.040] NAMES <- toupper(added) [18:01:47.040] for (kk in seq_along(NAMES)) { [18:01:47.040] name <- added[[kk]] [18:01:47.040] NAME <- NAMES[[kk]] [18:01:47.040] if (name != NAME && is.element(NAME, old_names)) [18:01:47.040] next [18:01:47.040] args[[name]] <- "" [18:01:47.040] } [18:01:47.040] NAMES <- toupper(removed) [18:01:47.040] for (kk in seq_along(NAMES)) { [18:01:47.040] name <- removed[[kk]] [18:01:47.040] NAME <- NAMES[[kk]] [18:01:47.040] if (name != NAME && is.element(NAME, old_names)) [18:01:47.040] next [18:01:47.040] args[[name]] <- ...future.oldEnvVars[[name]] [18:01:47.040] } [18:01:47.040] if (length(args) > 0) [18:01:47.040] base::do.call(base::Sys.setenv, args = args) [18:01:47.040] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [18:01:47.040] } [18:01:47.040] else { [18:01:47.040] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [18:01:47.040] } [18:01:47.040] { [18:01:47.040] if (base::length(...future.futureOptionsAdded) > [18:01:47.040] 0L) { [18:01:47.040] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [18:01:47.040] base::names(opts) <- ...future.futureOptionsAdded [18:01:47.040] base::options(opts) [18:01:47.040] } [18:01:47.040] { [18:01:47.040] { [18:01:47.040] base::options(mc.cores = ...future.mc.cores.old) [18:01:47.040] NULL [18:01:47.040] } [18:01:47.040] options(future.plan = NULL) [18:01:47.040] if (is.na(NA_character_)) [18:01:47.040] Sys.unsetenv("R_FUTURE_PLAN") [18:01:47.040] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [18:01:47.040] future::plan(list(function (..., workers = availableCores(), [18:01:47.040] lazy = FALSE, rscript_libs = .libPaths(), [18:01:47.040] envir = parent.frame()) [18:01:47.040] { [18:01:47.040] if (is.function(workers)) [18:01:47.040] workers <- workers() [18:01:47.040] workers <- structure(as.integer(workers), [18:01:47.040] class = class(workers)) [18:01:47.040] stop_if_not(length(workers) == 1, is.finite(workers), [18:01:47.040] workers >= 1) [18:01:47.040] if (workers == 1L && !inherits(workers, "AsIs")) { [18:01:47.040] return(sequential(..., lazy = TRUE, envir = envir)) [18:01:47.040] } [18:01:47.040] future <- MultisessionFuture(..., workers = workers, [18:01:47.040] lazy = lazy, rscript_libs = rscript_libs, [18:01:47.040] envir = envir) [18:01:47.040] if (!future$lazy) [18:01:47.040] future <- run(future) [18:01:47.040] invisible(future) [18:01:47.040] }), .cleanup = FALSE, .init = FALSE) [18:01:47.040] } [18:01:47.040] } [18:01:47.040] } [18:01:47.040] }) [18:01:47.040] if (TRUE) { [18:01:47.040] base::sink(type = "output", split = FALSE) [18:01:47.040] if (TRUE) { [18:01:47.040] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [18:01:47.040] } [18:01:47.040] else { [18:01:47.040] ...future.result["stdout"] <- base::list(NULL) [18:01:47.040] } [18:01:47.040] base::close(...future.stdout) [18:01:47.040] ...future.stdout <- NULL [18:01:47.040] } [18:01:47.040] ...future.result$conditions <- ...future.conditions [18:01:47.040] ...future.result$finished <- base::Sys.time() [18:01:47.040] ...future.result [18:01:47.040] } [18:01:47.046] Exporting 1 global objects (3.84 KiB) to cluster node #1 ... [18:01:47.046] Exporting 'my_fcn' (3.84 KiB) to cluster node #1 ... [18:01:47.047] Exporting 'my_fcn' (3.84 KiB) to cluster node #1 ... DONE [18:01:47.047] Exporting 1 global objects (3.84 KiB) to cluster node #1 ... DONE [18:01:47.048] MultisessionFuture started [18:01:47.048] - Launch lazy future ... done [18:01:47.048] run() for 'MultisessionFuture' ... done [18:01:47.049] result() for ClusterFuture ... [18:01:47.049] receiveMessageFromWorker() for ClusterFuture ... [18:01:47.049] - Validating connection of MultisessionFuture [18:01:47.066] - received message: FutureResult [18:01:47.066] - Received FutureResult [18:01:47.066] - Erased future from FutureRegistry [18:01:47.066] result() for ClusterFuture ... [18:01:47.066] - result already collected: FutureResult [18:01:47.066] result() for ClusterFuture ... done [18:01:47.067] receiveMessageFromWorker() for ClusterFuture ... done [18:01:47.067] result() for ClusterFuture ... done [18:01:47.067] result() for ClusterFuture ... [18:01:47.067] - result already collected: FutureResult [18:01:47.067] 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" [18:01:47.068] getGlobalsAndPackages() ... [18:01:47.068] Searching for globals... [18:01:47.072] - globals found: [7] '{', 'my_fcn', 'standardGeneric', 'NULL', 'stop', 'gettextf', 'x' [18:01:47.072] Searching for globals ... DONE [18:01:47.072] Resolving globals: FALSE [18:01:47.073] The total size of the 1 globals is 3.84 KiB (3936 bytes) [18:01:47.073] 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') [18:01:47.074] - globals: [1] 'my_fcn' [18:01:47.074] [18:01:47.074] getGlobalsAndPackages() ... DONE [18:01:47.074] run() for 'Future' ... [18:01:47.075] - state: 'created' [18:01:47.075] - Future backend: 'FutureStrategy', 'multisession', 'cluster', 'multiprocess', 'future', 'function' [18:01:47.089] - Future class: 'MultisessionFuture', 'ClusterFuture', 'MultiprocessFuture', 'Future', 'environment' [18:01:47.090] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... [18:01:47.090] - Field: 'node' [18:01:47.090] - Field: 'label' [18:01:47.090] - Field: 'local' [18:01:47.090] - Field: 'owner' [18:01:47.091] - Field: 'envir' [18:01:47.091] - Field: 'workers' [18:01:47.091] - Field: 'packages' [18:01:47.091] - Field: 'gc' [18:01:47.091] - Field: 'conditions' [18:01:47.092] - Field: 'persistent' [18:01:47.092] - Field: 'expr' [18:01:47.092] - Field: 'uuid' [18:01:47.092] - Field: 'seed' [18:01:47.092] - Field: 'version' [18:01:47.093] - Field: 'result' [18:01:47.093] - Field: 'asynchronous' [18:01:47.093] - Field: 'calls' [18:01:47.093] - Field: 'globals' [18:01:47.093] - Field: 'stdout' [18:01:47.094] - Field: 'earlySignal' [18:01:47.094] - Field: 'lazy' [18:01:47.094] - Field: 'state' [18:01:47.094] - Copy elements of temporary 'MultisessionFuture' to final 'Future' object ... done [18:01:47.094] - Launch lazy future ... [18:01:47.095] Packages needed by the future expression (n = 0): [18:01:47.095] Packages needed by future strategies (n = 0): [18:01:47.096] { [18:01:47.096] { [18:01:47.096] { [18:01:47.096] ...future.startTime <- base::Sys.time() [18:01:47.096] { [18:01:47.096] { [18:01:47.096] { [18:01:47.096] { [18:01:47.096] base::local({ [18:01:47.096] has_future <- base::requireNamespace("future", [18:01:47.096] quietly = TRUE) [18:01:47.096] if (has_future) { [18:01:47.096] ns <- base::getNamespace("future") [18:01:47.096] version <- ns[[".package"]][["version"]] [18:01:47.096] if (is.null(version)) [18:01:47.096] version <- utils::packageVersion("future") [18:01:47.096] } [18:01:47.096] else { [18:01:47.096] version <- NULL [18:01:47.096] } [18:01:47.096] if (!has_future || version < "1.8.0") { [18:01:47.096] info <- base::c(r_version = base::gsub("R version ", [18:01:47.096] "", base::R.version$version.string), [18:01:47.096] platform = base::sprintf("%s (%s-bit)", [18:01:47.096] base::R.version$platform, 8 * base::.Machine$sizeof.pointer), [18:01:47.096] os = base::paste(base::Sys.info()[base::c("sysname", [18:01:47.096] "release", "version")], collapse = " "), [18:01:47.096] hostname = base::Sys.info()[["nodename"]]) [18:01:47.096] info <- base::sprintf("%s: %s", base::names(info), [18:01:47.096] info) [18:01:47.096] info <- base::paste(info, collapse = "; ") [18:01:47.096] if (!has_future) { [18:01:47.096] msg <- base::sprintf("Package 'future' is not installed on worker (%s)", [18:01:47.096] info) [18:01:47.096] } [18:01:47.096] else { [18:01:47.096] msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", [18:01:47.096] info, version) [18:01:47.096] } [18:01:47.096] base::stop(msg) [18:01:47.096] } [18:01:47.096] }) [18:01:47.096] } [18:01:47.096] ...future.mc.cores.old <- base::getOption("mc.cores") [18:01:47.096] base::options(mc.cores = 1L) [18:01:47.096] } [18:01:47.096] options(future.plan = NULL) [18:01:47.096] Sys.unsetenv("R_FUTURE_PLAN") [18:01:47.096] future::plan("default", .cleanup = FALSE, .init = FALSE) [18:01:47.096] } [18:01:47.096] ...future.workdir <- getwd() [18:01:47.096] } [18:01:47.096] ...future.oldOptions <- base::as.list(base::.Options) [18:01:47.096] ...future.oldEnvVars <- base::Sys.getenv() [18:01:47.096] } [18:01:47.096] base::options(future.startup.script = FALSE, future.globals.onMissing = NULL, [18:01:47.096] future.globals.maxSize = NULL, future.globals.method = NULL, [18:01:47.096] future.globals.onMissing = NULL, future.globals.onReference = NULL, [18:01:47.096] future.globals.resolve = NULL, future.resolve.recursive = NULL, [18:01:47.096] future.rng.onMisuse = NULL, future.rng.onMisuse.keepFuture = NULL, [18:01:47.096] future.stdout.windows.reencode = NULL, width = 80L) [18:01:47.096] ...future.futureOptionsAdded <- base::setdiff(base::names(base::.Options), [18:01:47.096] base::names(...future.oldOptions)) [18:01:47.096] } [18:01:47.096] if (FALSE) { [18:01:47.096] } [18:01:47.096] else { [18:01:47.096] if (TRUE) { [18:01:47.096] ...future.stdout <- base::rawConnection(base::raw(0L), [18:01:47.096] open = "w") [18:01:47.096] } [18:01:47.096] else { [18:01:47.096] ...future.stdout <- base::file(base::switch(.Platform$OS.type, [18:01:47.096] windows = "NUL", "/dev/null"), open = "w") [18:01:47.096] } [18:01:47.096] base::sink(...future.stdout, type = "output", split = FALSE) [18:01:47.096] base::on.exit(if (!base::is.null(...future.stdout)) { [18:01:47.096] base::sink(type = "output", split = FALSE) [18:01:47.096] base::close(...future.stdout) [18:01:47.096] }, add = TRUE) [18:01:47.096] } [18:01:47.096] ...future.frame <- base::sys.nframe() [18:01:47.096] ...future.conditions <- base::list() [18:01:47.096] ...future.rng <- base::globalenv()$.Random.seed [18:01:47.096] if (FALSE) { [18:01:47.096] ...future.globalenv.names <- c(base::names(base::.GlobalEnv), [18:01:47.096] "...future.value", "...future.globalenv.names", ".Random.seed") [18:01:47.096] } [18:01:47.096] ...future.result <- base::tryCatch({ [18:01:47.096] base::withCallingHandlers({ [18:01:47.096] ...future.value <- base::withVisible(base::local({ [18:01:47.096] ...future.makeSendCondition <- local({ [18:01:47.096] sendCondition <- NULL [18:01:47.096] function(frame = 1L) { [18:01:47.096] if (is.function(sendCondition)) [18:01:47.096] return(sendCondition) [18:01:47.096] ns <- getNamespace("parallel") [18:01:47.096] if (exists("sendData", mode = "function", [18:01:47.096] envir = ns)) { [18:01:47.096] parallel_sendData <- get("sendData", mode = "function", [18:01:47.096] envir = ns) [18:01:47.096] envir <- sys.frame(frame) [18:01:47.096] master <- NULL [18:01:47.096] while (!identical(envir, .GlobalEnv) && [18:01:47.096] !identical(envir, emptyenv())) { [18:01:47.096] if (exists("master", mode = "list", envir = envir, [18:01:47.096] inherits = FALSE)) { [18:01:47.096] master <- get("master", mode = "list", [18:01:47.096] envir = envir, inherits = FALSE) [18:01:47.096] if (inherits(master, c("SOCKnode", [18:01:47.096] "SOCK0node"))) { [18:01:47.096] sendCondition <<- function(cond) { [18:01:47.096] data <- list(type = "VALUE", value = cond, [18:01:47.096] success = TRUE) [18:01:47.096] parallel_sendData(master, data) [18:01:47.096] } [18:01:47.096] return(sendCondition) [18:01:47.096] } [18:01:47.096] } [18:01:47.096] frame <- frame + 1L [18:01:47.096] envir <- sys.frame(frame) [18:01:47.096] } [18:01:47.096] } [18:01:47.096] sendCondition <<- function(cond) NULL [18:01:47.096] } [18:01:47.096] }) [18:01:47.096] withCallingHandlers({ [18:01:47.096] { [18:01:47.096] my_fcn(3) [18:01:47.096] } [18:01:47.096] }, immediateCondition = function(cond) { [18:01:47.096] sendCondition <- ...future.makeSendCondition() [18:01:47.096] sendCondition(cond) [18:01:47.096] muffleCondition <- function (cond, pattern = "^muffle") [18:01:47.096] { [18:01:47.096] inherits <- base::inherits [18:01:47.096] invokeRestart <- base::invokeRestart [18:01:47.096] is.null <- base::is.null [18:01:47.096] muffled <- FALSE [18:01:47.096] if (inherits(cond, "message")) { [18:01:47.096] muffled <- grepl(pattern, "muffleMessage") [18:01:47.096] if (muffled) [18:01:47.096] invokeRestart("muffleMessage") [18:01:47.096] } [18:01:47.096] else if (inherits(cond, "warning")) { [18:01:47.096] muffled <- grepl(pattern, "muffleWarning") [18:01:47.096] if (muffled) [18:01:47.096] invokeRestart("muffleWarning") [18:01:47.096] } [18:01:47.096] else if (inherits(cond, "condition")) { [18:01:47.096] if (!is.null(pattern)) { [18:01:47.096] computeRestarts <- base::computeRestarts [18:01:47.096] grepl <- base::grepl [18:01:47.096] restarts <- computeRestarts(cond) [18:01:47.096] for (restart in restarts) { [18:01:47.096] name <- restart$name [18:01:47.096] if (is.null(name)) [18:01:47.096] next [18:01:47.096] if (!grepl(pattern, name)) [18:01:47.096] next [18:01:47.096] invokeRestart(restart) [18:01:47.096] muffled <- TRUE [18:01:47.096] break [18:01:47.096] } [18:01:47.096] } [18:01:47.096] } [18:01:47.096] invisible(muffled) [18:01:47.096] } [18:01:47.096] muffleCondition(cond) [18:01:47.096] }) [18:01:47.096] })) [18:01:47.096] future::FutureResult(value = ...future.value$value, [18:01:47.096] visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, [18:01:47.096] ...future.rng), globalenv = if (FALSE) [18:01:47.096] list(added = base::setdiff(base::names(base::.GlobalEnv), [18:01:47.096] ...future.globalenv.names)) [18:01:47.096] else NULL, started = ...future.startTime, version = "1.8") [18:01:47.096] }, condition = base::local({ [18:01:47.096] c <- base::c [18:01:47.096] inherits <- base::inherits [18:01:47.096] invokeRestart <- base::invokeRestart [18:01:47.096] length <- base::length [18:01:47.096] list <- base::list [18:01:47.096] seq.int <- base::seq.int [18:01:47.096] signalCondition <- base::signalCondition [18:01:47.096] sys.calls <- base::sys.calls [18:01:47.096] `[[` <- base::`[[` [18:01:47.096] `+` <- base::`+` [18:01:47.096] `<<-` <- base::`<<-` [18:01:47.096] sysCalls <- function(calls = sys.calls(), from = 1L) { [18:01:47.096] calls[seq.int(from = from + 12L, to = length(calls) - [18:01:47.096] 3L)] [18:01:47.096] } [18:01:47.096] function(cond) { [18:01:47.096] is_error <- inherits(cond, "error") [18:01:47.096] ignore <- !is_error && !is.null(NULL) && inherits(cond, [18:01:47.096] NULL) [18:01:47.096] if (is_error) { [18:01:47.096] sessionInformation <- function() { [18:01:47.096] list(r = base::R.Version(), locale = base::Sys.getlocale(), [18:01:47.096] rngkind = base::RNGkind(), namespaces = base::loadedNamespaces(), [18:01:47.096] search = base::search(), system = base::Sys.info()) [18:01:47.096] } [18:01:47.096] ...future.conditions[[length(...future.conditions) + [18:01:47.096] 1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), [18:01:47.096] cond$call), session = sessionInformation(), [18:01:47.096] timestamp = base::Sys.time(), signaled = 0L) [18:01:47.096] signalCondition(cond) [18:01:47.096] } [18:01:47.096] else if (!ignore && TRUE && inherits(cond, c("condition", [18:01:47.096] "immediateCondition"))) { [18:01:47.096] signal <- TRUE && inherits(cond, "immediateCondition") [18:01:47.096] ...future.conditions[[length(...future.conditions) + [18:01:47.096] 1L]] <<- list(condition = cond, signaled = base::as.integer(signal)) [18:01:47.096] if (TRUE && !signal) { [18:01:47.096] muffleCondition <- function (cond, pattern = "^muffle") [18:01:47.096] { [18:01:47.096] inherits <- base::inherits [18:01:47.096] invokeRestart <- base::invokeRestart [18:01:47.096] is.null <- base::is.null [18:01:47.096] muffled <- FALSE [18:01:47.096] if (inherits(cond, "message")) { [18:01:47.096] muffled <- grepl(pattern, "muffleMessage") [18:01:47.096] if (muffled) [18:01:47.096] invokeRestart("muffleMessage") [18:01:47.096] } [18:01:47.096] else if (inherits(cond, "warning")) { [18:01:47.096] muffled <- grepl(pattern, "muffleWarning") [18:01:47.096] if (muffled) [18:01:47.096] invokeRestart("muffleWarning") [18:01:47.096] } [18:01:47.096] else if (inherits(cond, "condition")) { [18:01:47.096] if (!is.null(pattern)) { [18:01:47.096] computeRestarts <- base::computeRestarts [18:01:47.096] grepl <- base::grepl [18:01:47.096] restarts <- computeRestarts(cond) [18:01:47.096] for (restart in restarts) { [18:01:47.096] name <- restart$name [18:01:47.096] if (is.null(name)) [18:01:47.096] next [18:01:47.096] if (!grepl(pattern, name)) [18:01:47.096] next [18:01:47.096] invokeRestart(restart) [18:01:47.096] muffled <- TRUE [18:01:47.096] break [18:01:47.096] } [18:01:47.096] } [18:01:47.096] } [18:01:47.096] invisible(muffled) [18:01:47.096] } [18:01:47.096] muffleCondition(cond, pattern = "^muffle") [18:01:47.096] } [18:01:47.096] } [18:01:47.096] else { [18:01:47.096] if (TRUE) { [18:01:47.096] muffleCondition <- function (cond, pattern = "^muffle") [18:01:47.096] { [18:01:47.096] inherits <- base::inherits [18:01:47.096] invokeRestart <- base::invokeRestart [18:01:47.096] is.null <- base::is.null [18:01:47.096] muffled <- FALSE [18:01:47.096] if (inherits(cond, "message")) { [18:01:47.096] muffled <- grepl(pattern, "muffleMessage") [18:01:47.096] if (muffled) [18:01:47.096] invokeRestart("muffleMessage") [18:01:47.096] } [18:01:47.096] else if (inherits(cond, "warning")) { [18:01:47.096] muffled <- grepl(pattern, "muffleWarning") [18:01:47.096] if (muffled) [18:01:47.096] invokeRestart("muffleWarning") [18:01:47.096] } [18:01:47.096] else if (inherits(cond, "condition")) { [18:01:47.096] if (!is.null(pattern)) { [18:01:47.096] computeRestarts <- base::computeRestarts [18:01:47.096] grepl <- base::grepl [18:01:47.096] restarts <- computeRestarts(cond) [18:01:47.096] for (restart in restarts) { [18:01:47.096] name <- restart$name [18:01:47.096] if (is.null(name)) [18:01:47.096] next [18:01:47.096] if (!grepl(pattern, name)) [18:01:47.096] next [18:01:47.096] invokeRestart(restart) [18:01:47.096] muffled <- TRUE [18:01:47.096] break [18:01:47.096] } [18:01:47.096] } [18:01:47.096] } [18:01:47.096] invisible(muffled) [18:01:47.096] } [18:01:47.096] muffleCondition(cond, pattern = "^muffle") [18:01:47.096] } [18:01:47.096] } [18:01:47.096] } [18:01:47.096] })) [18:01:47.096] }, error = function(ex) { [18:01:47.096] base::structure(base::list(value = NULL, visible = NULL, [18:01:47.096] conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, [18:01:47.096] ...future.rng), started = ...future.startTime, [18:01:47.096] finished = Sys.time(), session_uuid = NA_character_, [18:01:47.096] version = "1.8"), class = "FutureResult") [18:01:47.096] }, finally = { [18:01:47.096] if (!identical(...future.workdir, getwd())) [18:01:47.096] setwd(...future.workdir) [18:01:47.096] { [18:01:47.096] if (identical(getOption("nwarnings"), ...future.oldOptions$nwarnings)) { [18:01:47.096] ...future.oldOptions$nwarnings <- NULL [18:01:47.096] } [18:01:47.096] base::options(...future.oldOptions) [18:01:47.096] if (.Platform$OS.type == "windows") { [18:01:47.096] old_names <- names(...future.oldEnvVars) [18:01:47.096] envs <- base::Sys.getenv() [18:01:47.096] names <- names(envs) [18:01:47.096] common <- intersect(names, old_names) [18:01:47.096] added <- setdiff(names, old_names) [18:01:47.096] removed <- setdiff(old_names, names) [18:01:47.096] changed <- common[...future.oldEnvVars[common] != [18:01:47.096] envs[common]] [18:01:47.096] NAMES <- toupper(changed) [18:01:47.096] args <- list() [18:01:47.096] for (kk in seq_along(NAMES)) { [18:01:47.096] name <- changed[[kk]] [18:01:47.096] NAME <- NAMES[[kk]] [18:01:47.096] if (name != NAME && is.element(NAME, old_names)) [18:01:47.096] next [18:01:47.096] args[[name]] <- ...future.oldEnvVars[[name]] [18:01:47.096] } [18:01:47.096] NAMES <- toupper(added) [18:01:47.096] for (kk in seq_along(NAMES)) { [18:01:47.096] name <- added[[kk]] [18:01:47.096] NAME <- NAMES[[kk]] [18:01:47.096] if (name != NAME && is.element(NAME, old_names)) [18:01:47.096] next [18:01:47.096] args[[name]] <- "" [18:01:47.096] } [18:01:47.096] NAMES <- toupper(removed) [18:01:47.096] for (kk in seq_along(NAMES)) { [18:01:47.096] name <- removed[[kk]] [18:01:47.096] NAME <- NAMES[[kk]] [18:01:47.096] if (name != NAME && is.element(NAME, old_names)) [18:01:47.096] next [18:01:47.096] args[[name]] <- ...future.oldEnvVars[[name]] [18:01:47.096] } [18:01:47.096] if (length(args) > 0) [18:01:47.096] base::do.call(base::Sys.setenv, args = args) [18:01:47.096] args <- names <- old_names <- NAMES <- envs <- common <- added <- removed <- NULL [18:01:47.096] } [18:01:47.096] else { [18:01:47.096] base::do.call(base::Sys.setenv, args = base::as.list(...future.oldEnvVars)) [18:01:47.096] } [18:01:47.096] { [18:01:47.096] if (base::length(...future.futureOptionsAdded) > [18:01:47.096] 0L) { [18:01:47.096] opts <- base::vector("list", length = base::length(...future.futureOptionsAdded)) [18:01:47.096] base::names(opts) <- ...future.futureOptionsAdded [18:01:47.096] base::options(opts) [18:01:47.096] } [18:01:47.096] { [18:01:47.096] { [18:01:47.096] base::options(mc.cores = ...future.mc.cores.old) [18:01:47.096] NULL [18:01:47.096] } [18:01:47.096] options(future.plan = NULL) [18:01:47.096] if (is.na(NA_character_)) [18:01:47.096] Sys.unsetenv("R_FUTURE_PLAN") [18:01:47.096] else Sys.setenv(R_FUTURE_PLAN = NA_character_) [18:01:47.096] future::plan(list(function (..., workers = availableCores(), [18:01:47.096] lazy = FALSE, rscript_libs = .libPaths(), [18:01:47.096] envir = parent.frame()) [18:01:47.096] { [18:01:47.096] if (is.function(workers)) [18:01:47.096] workers <- workers() [18:01:47.096] workers <- structure(as.integer(workers), [18:01:47.096] class = class(workers)) [18:01:47.096] stop_if_not(length(workers) == 1, is.finite(workers), [18:01:47.096] workers >= 1) [18:01:47.096] if (workers == 1L && !inherits(workers, "AsIs")) { [18:01:47.096] return(sequential(..., lazy = TRUE, envir = envir)) [18:01:47.096] } [18:01:47.096] future <- MultisessionFuture(..., workers = workers, [18:01:47.096] lazy = lazy, rscript_libs = rscript_libs, [18:01:47.096] envir = envir) [18:01:47.096] if (!future$lazy) [18:01:47.096] future <- run(future) [18:01:47.096] invisible(future) [18:01:47.096] }), .cleanup = FALSE, .init = FALSE) [18:01:47.096] } [18:01:47.096] } [18:01:47.096] } [18:01:47.096] }) [18:01:47.096] if (TRUE) { [18:01:47.096] base::sink(type = "output", split = FALSE) [18:01:47.096] if (TRUE) { [18:01:47.096] ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout)) [18:01:47.096] } [18:01:47.096] else { [18:01:47.096] ...future.result["stdout"] <- base::list(NULL) [18:01:47.096] } [18:01:47.096] base::close(...future.stdout) [18:01:47.096] ...future.stdout <- NULL [18:01:47.096] } [18:01:47.096] ...future.result$conditions <- ...future.conditions [18:01:47.096] ...future.result$finished <- base::Sys.time() [18:01:47.096] ...future.result [18:01:47.096] } [18:01:47.101] Exporting 1 global objects (3.84 KiB) to cluster node #1 ... [18:01:47.102] Exporting 'my_fcn' (3.84 KiB) to cluster node #1 ... [18:01:47.102] Exporting 'my_fcn' (3.84 KiB) to cluster node #1 ... DONE [18:01:47.102] Exporting 1 global objects (3.84 KiB) to cluster node #1 ... DONE [18:01:47.103] MultisessionFuture started [18:01:47.103] - Launch lazy future ... done [18:01:47.104] run() for 'MultisessionFuture' ... done [18:01:47.104] result() for ClusterFuture ... [18:01:47.104] receiveMessageFromWorker() for ClusterFuture ... [18:01:47.104] - Validating connection of MultisessionFuture [18:01:47.120] - received message: FutureResult [18:01:47.120] - Received FutureResult [18:01:47.121] - Erased future from FutureRegistry [18:01:47.121] result() for ClusterFuture ... [18:01:47.121] - result already collected: FutureResult [18:01:47.121] result() for ClusterFuture ... done [18:01:47.121] receiveMessageFromWorker() for ClusterFuture ... done [18:01:47.122] result() for ClusterFuture ... done [18:01:47.122] result() for ClusterFuture ... [18:01:47.122] - result already collected: FutureResult [18:01:47.122] result() for ClusterFuture ... done [1] -3 > > message("*** Globals - S4 methods ... DONE") *** Globals - S4 methods ... DONE > > source("incl/end.R") [18:01:47.123] plan(): Setting new future strategy stack: [18:01:47.123] List of future strategies: [18:01:47.123] 1. FutureStrategy: [18:01:47.123] - args: function (..., envir = parent.frame()) [18:01:47.123] - tweaked: FALSE [18:01:47.123] - call: future::plan(oplan) [18:01:47.124] plan(): nbrOfWorkers() = 1 Failed to undo environment variables: - Expected environment variables: [n=201] '!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', 'OMP_THREAD_LIMIT', 'OS', 'PATH', 'PATHEXT', 'PROCESSOR_ARCHITECTURE', 'PROCESSOR_IDENTIFIER', 'PROCESSOR_LEVEL', 'PROCESSOR_REVISION', 'PROGRAMFILES', 'PROMPT', 'PSModulePath', 'PUBLIC', 'PWD', 'ProgramData', 'ProgramFiles(x86)', 'ProgramW6432', 'RETICULATE_AUTOCONFIGURE', '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_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_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_', '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.60 0.14 1.53