Running ‘DEPRECATED.R’ [1s/1s]
  Running ‘cluster-missing-doFuture-pkg.R’ [1s/3s]
  Running ‘doRNG,dopar.R’ [2s/41s]
  Running ‘doRNG,dorng.R’ [6s/45s]
  Running ‘foreach,errors.R’ [6s/119s]
  Running ‘foreach,globals.R’ [7s/129s]
  Running ‘foreach,nested.R’ [8s/168s]
  Running ‘foreach,nested_dopar.R’ [15s/281s]
  Running ‘foreach.R’ [11s/58s]
  Running ‘future.BatchJobs.R’ [26s/42s]
  Running ‘future.batchtools.R’ [35s/48s]
  Running ‘options.R’ [3s/24s]
  Running ‘registerDoFuture.R’ [2s/36s]
  Running ‘times.R’ [1s/3s]
  Running ‘zzz_opt-in,NMF.R’ [0s/1s]
  Running ‘zzz_opt-in,TSP.R’ [0s/1s]
  Running ‘zzz_opt-in,caret.R’ [0s/1s]
  Running ‘zzz_opt-in,foreach.R’ [0s/1s]
  Running ‘zzz_opt-in,glmnet.R’ [0s/1s]
  Running ‘zzz_opt-in,plyr.R’ [0s/1s]
Running the tests in ‘tests/times.R’ failed.
Complete output:
  > source("incl/start.R")
  Loading required package: globals
  Loading required package: future
  Loading required package: foreach
  Loading required package: iterators
  Loading required package: parallel
  [20:40:20.380] plan(): Setting new future strategy stack:
  [20:40:20.381] List of future strategies:
  [20:40:20.381] 1. sequential:
  [20:40:20.381]    - args: function (expr, envir = parent.frame(), substitute = TRUE, lazy = FALSE, seed = NULL, globals = TRUE, local = TRUE, earlySignal = FALSE, label = NULL, ...)
  [20:40:20.381]    - tweaked: FALSE
  [20:40:20.381]    - call: future::plan(future::sequential)
  [20:40:20.383] plan(): nbrOfWorkers() = 1
  > 
  > strategies <- future:::supportedStrategies()
  > strategies <- setdiff(strategies, "multiprocess")
  > 
  > message("*** times() ...")
  *** times() ...
  > 
  > res0 <- NULL
  > 
  > for (strategy in strategies) {
  +   message(sprintf("- plan('%s') ...", strategy))
  +   plan(strategy)
  + 
  +   mu <- 1.0
  +   sigma <- 2.0
  +   ## NOTE: Using times() with %dopar% without proper parallel RNG will likely
  +   ## produce unreliable results.  Here we don't produce random numbers so it
  +   ## is ok, but it's a toy example because just like base::replicate(),
  +   ## foreach::times() is commonly used for resampling purposes.
  +   res <- times(3L) %dopar% {
  +     dnorm(2L, mean = mu, sd = sigma)
  +   }
  +   print(res)
  + 
  +   if (is.null(res0)) {
  +     res0 <- res
  +   } else {
  +     stopifnot(all.equal(res, res0))
  +   }
  + 
  +   message(sprintf("- plan('%s') ... DONE", strategy))
  + } ## for (strategy ...)
  - plan('sequential') ...
  [20:40:20.413] plan(): Setting new future strategy stack:
  [20:40:20.413] List of future strategies:
  [20:40:20.413] 1. sequential:
  [20:40:20.413]    - args: function (expr, envir = parent.frame(), substitute = TRUE, lazy = FALSE, seed = NULL, globals = TRUE, local = TRUE, earlySignal = FALSE, label = NULL, ...)
  [20:40:20.413]    - tweaked: FALSE
  [20:40:20.413]    - call: plan(strategy)
  [20:40:20.439] plan(): nbrOfWorkers() = 1
  [20:40:20.440] doFuture() ...
  [20:40:20.441] - dummy globals (as locals): [0] 
  [20:40:20.443] - R expression:
  [20:40:20.443] {
  [20:40:20.443]     doFuture::registerDoFuture()
  [20:40:20.443]     lapply(seq_along(...future.x_ii), FUN = function(jj) {
  [20:40:20.443]         ...future.x_jj <- ...future.x_ii[[jj]]
  [20:40:20.443]         NULL
  [20:40:20.443]         ...future.env <- environment()
  [20:40:20.443]         local({
  [20:40:20.443]             for (name in names(...future.x_jj)) {
  [20:40:20.443]                 assign(name, ...future.x_jj[[name]], envir = ...future.env, 
  [20:40:20.443]                   inherits = FALSE)
  [20:40:20.443]             }
  [20:40:20.443]         })
  [20:40:20.443]         tryCatch({
  [20:40:20.443]             dnorm(2L, mean = mu, sd = sigma)
  [20:40:20.443]         }, error = identity)
  [20:40:20.443]     })
  [20:40:20.443] }
  [20:40:20.444] - identifying globals and packages ...
  [20:40:20.445] getGlobalsAndPackages() ...
  [20:40:20.446] Searching for globals...
  [20:40:20.469] - globals found: [17] '{', '::', 'lapply', 'seq_along', '...future.x_ii', '<-', '[[', 'environment', 'local', 'for', 'names', 'assign', 'tryCatch', 'dnorm', 'mu', 'sigma', 'identity'
  [20:40:20.469] Searching for globals ... DONE
  [20:40:20.469] Resolving globals: FALSE
  [20:40:20.473] The total size of the 3 globals is 112 bytes (112 bytes)
  [20:40:20.474] - globals: [3] '...future.x_ii', 'mu', 'sigma'
  [20:40:20.474] - packages: [1] 'stats'
  [20:40:20.474] getGlobalsAndPackages() ... DONE
  [20:40:20.475] List of 3
  [20:40:20.475]  $ ...future.x_ii: NULL
  [20:40:20.475]  $ mu            : num 1
  [20:40:20.475]  $ sigma         : num 2
  [20:40:20.475]  - attr(*, "where")=List of 3
  [20:40:20.475]   ..$ ...future.x_ii:<environment: 0x55ac7e840790> 
  [20:40:20.475]   ..$ mu            :<environment: R_GlobalEnv> 
  [20:40:20.475]   ..$ sigma         :<environment: R_GlobalEnv> 
  [20:40:20.475]  - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list"
  [20:40:20.475]  - attr(*, "resolved")= logi FALSE
  [20:40:20.475]  - attr(*, "total_size")= num 112
  [20:40:20.493]   - R expression:
  [20:40:20.494] {
  [20:40:20.494]     doFuture::registerDoFuture()
  [20:40:20.494]     lapply(seq_along(...future.x_ii), FUN = function(jj) {
  [20:40:20.494]         ...future.x_jj <- ...future.x_ii[[jj]]
  [20:40:20.494]         NULL
  [20:40:20.494]         ...future.env <- environment()
  [20:40:20.494]         local({
  [20:40:20.494]             for (name in names(...future.x_jj)) {
  [20:40:20.494]                 assign(name, ...future.x_jj[[name]], envir = ...future.env, 
  [20:40:20.494]                   inherits = FALSE)
  [20:40:20.494]             }
  [20:40:20.494]         })
  [20:40:20.494]         tryCatch({
  [20:40:20.494]             dnorm(2L, mean = mu, sd = sigma)
  [20:40:20.494]         }, error = identity)
  [20:40:20.494]     })
  [20:40:20.494] }
  [20:40:20.494]   - globals: [3] '...future.x_ii', 'mu', 'sigma'
  [20:40:20.495] List of 3
  [20:40:20.495]  $ ...future.x_ii: NULL
  [20:40:20.495]  $ mu            : num 1
  [20:40:20.495]  $ sigma         : num 2
  [20:40:20.495]  - attr(*, "where")=List of 3
  [20:40:20.495]   ..$ ...future.x_ii:<environment: 0x55ac7e840790> 
  [20:40:20.495]   ..$ mu            :<environment: R_GlobalEnv> 
  [20:40:20.495]   ..$ sigma         :<environment: R_GlobalEnv> 
  [20:40:20.495]  - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list"
  [20:40:20.495]  - attr(*, "resolved")= logi FALSE
  [20:40:20.495]  - attr(*, "total_size")= num 112
  [20:40:20.503]   - packages: [2] 'doFuture', 'stats'
  [20:40:20.504] - identifying globals and packages ... DONE
  [20:40:20.504] Number of chunks: 1
  [20:40:20.505] Number of futures (= number of chunks): 1
  [20:40:20.506] Launching 1 futures (chunks) ...
  [20:40:20.506] Chunk #1 of 1 ...
  [20:40:20.506]  - Finding globals in 'args_list' chunk #1 ...
  [20:40:20.507] getGlobalsAndPackages() ...
  [20:40:20.507] Searching for globals...
  [20:40:20.508] 
  [20:40:20.508] Searching for globals ... DONE
  [20:40:20.508] - globals: [0] <none>
  [20:40:20.509] getGlobalsAndPackages() ... DONE
  [20:40:20.509] 
  [20:40:20.509] 
  [20:40:20.510]  - Finding globals in 'args_list' for chunk #1 ... DONE
  [20:40:20.510] getGlobalsAndPackages() ...
  [20:40:20.511] - globals passed as-is: [3] '...future.x_ii', 'mu', 'sigma'
  [20:40:20.511] Resolving globals: FALSE
  [20:40:20.512] The total size of the 3 globals is 112 bytes (112 bytes)
  [20:40:20.512] - globals: [3] '...future.x_ii', 'mu', 'sigma'
  [20:40:20.513] 
  [20:40:20.513] getGlobalsAndPackages() ... DONE
  [20:40:20.515] Packages needed by the future expression (n = 2): 'doFuture', 'stats'
  [20:40:20.516] Packages needed by future strategies (n = 0): <none>
  [20:40:20.521] {
  [20:40:20.521]     {
  [20:40:20.521]         ...future.startTime <- base::Sys.time()
  [20:40:20.521]         ...future.oldOptions <- base::options(future.startup.script = FALSE, 
  [20:40:20.521]             future.globals.onMissing = "ignore", future.globals.maxSize = NULL, 
  [20:40:20.521]             future.globals.method = NULL, future.globals.onMissing = NULL, 
  [20:40:20.521]             future.globals.onReference = NULL, future.globals.resolve = NULL, 
  [20:40:20.521]             future.resolve.recursive = NULL, width = 80L)
  [20:40:20.521]         {
  [20:40:20.521]             {
  [20:40:20.521]                 {
  [20:40:20.521]                   has_future <- base::requireNamespace("future", 
  [20:40:20.521]                     quietly = TRUE)
  [20:40:20.521]                   version <- if (has_future) 
  [20:40:20.521]                     utils::packageVersion("future")
  [20:40:20.521]                   else NULL
  [20:40:20.521]                   if (!has_future || version < "1.8.0") {
  [20:40:20.521]                     info <- base::c(r_version = base::gsub("R version ", 
  [20:40:20.521]                       "", base::R.version$version.string), platform = base::sprintf("%s (%s-bit)", 
  [20:40:20.521]                       base::R.version$platform, 8 * base::.Machine$sizeof.pointer), 
  [20:40:20.521]                       os = base::paste(base::Sys.info()[base::c("sysname", 
  [20:40:20.521]                         "release", "version")], collapse = " "), 
  [20:40:20.521]                       hostname = base::Sys.info()[["nodename"]])
  [20:40:20.521]                     info <- base::sprintf("%s: %s", base::names(info), 
  [20:40:20.521]                       info)
  [20:40:20.521]                     info <- base::paste(info, collapse = "; ")
  [20:40:20.521]                     if (!has_future) {
  [20:40:20.521]                       msg <- base::sprintf("Package 'future' is not installed on worker (%s)", 
  [20:40:20.521]                         info)
  [20:40:20.521]                     }
  [20:40:20.521]                     else {
  [20:40:20.521]                       msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", 
  [20:40:20.521]                         info, version)
  [20:40:20.521]                     }
  [20:40:20.521]                     base::stop(msg)
  [20:40:20.521]                   }
  [20:40:20.521]                 }
  [20:40:20.521]                 base::local({
  [20:40:20.521]                   for (pkg in c("doFuture", "stats")) {
  [20:40:20.521]                     base::loadNamespace(pkg)
  [20:40:20.521]                     base::library(pkg, character.only = TRUE)
  [20:40:20.521]                   }
  [20:40:20.521]                 })
  [20:40:20.521]             }
  [20:40:20.521]             future::plan("default", .cleanup = FALSE, .init = FALSE)
  [20:40:20.521]         }
  [20:40:20.521]     }
  [20:40:20.521]     if (base::is.na(TRUE)) {
  [20:40:20.521]     }
  [20:40:20.521]     else {
  [20:40:20.521]         if (TRUE) {
  [20:40:20.521]             ...future.stdout <- base::rawConnection(base::raw(0L), 
  [20:40:20.521]                 open = "w")
  [20:40:20.521]         }
  [20:40:20.521]         else {
  [20:40:20.521]             ...future.stdout <- base::file(base::switch(.Platform$OS.type, 
  [20:40:20.521]                 windows = "NUL", "/dev/null"), open = "w")
  [20:40:20.521]         }
  [20:40:20.521]         base::sink(...future.stdout, type = "output", split = FALSE)
  [20:40:20.521]         base::on.exit(if (!base::is.null(...future.stdout)) {
  [20:40:20.521]             base::sink(type = "output", split = FALSE)
  [20:40:20.521]             base::close(...future.stdout)
  [20:40:20.521]         }, add = TRUE)
  [20:40:20.521]     }
  [20:40:20.521]     ...future.frame <- base::sys.nframe()
  [20:40:20.521]     ...future.conditions <- base::list()
  [20:40:20.521]     ...future.rng <- base::globalenv()$.Random.seed
  [20:40:20.521]     ...future.result <- base::tryCatch({
  [20:40:20.521]         base::withCallingHandlers({
  [20:40:20.521]             ...future.value <- base::withVisible(base::local({
  [20:40:20.521]                 doFuture::registerDoFuture()
  [20:40:20.521]                 lapply(seq_along(...future.x_ii), FUN = function(jj) {
  [20:40:20.521]                   ...future.x_jj <- ...future.x_ii[[jj]]
  [20:40:20.521]                   NULL
  [20:40:20.521]                   ...future.env <- environment()
  [20:40:20.521]                   local({
  [20:40:20.521]                     for (name in names(...future.x_jj)) {
  [20:40:20.521]                       assign(name, ...future.x_jj[[name]], envir = ...future.env, 
  [20:40:20.521]                         inherits = FALSE)
  [20:40:20.521]                     }
  [20:40:20.521]                   })
  [20:40:20.521]                   tryCatch({
  [20:40:20.521]                     dnorm(2L, mean = mu, sd = sigma)
  [20:40:20.521]                   }, error = identity)
  [20:40:20.521]                 })
  [20:40:20.521]             }))
  [20:40:20.521]             future::FutureResult(value = ...future.value$value, 
  [20:40:20.521]                 visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, 
  [20:40:20.521]                   ...future.rng), started = ...future.startTime, 
  [20:40:20.521]                 version = "1.8")
  [20:40:20.521]         }, condition = base::local({
  [20:40:20.521]             c <- base::c
  [20:40:20.521]             inherits <- base::inherits
  [20:40:20.521]             invokeRestart <- base::invokeRestart
  [20:40:20.521]             length <- base::length
  [20:40:20.521]             list <- base::list
  [20:40:20.521]             seq.int <- base::seq.int
  [20:40:20.521]             signalCondition <- base::signalCondition
  [20:40:20.521]             sys.calls <- base::sys.calls
  [20:40:20.521]             Sys.time <- base::Sys.time
  [20:40:20.521]             `[[` <- base::`[[`
  [20:40:20.521]             `+` <- base::`+`
  [20:40:20.521]             `<<-` <- base::`<<-`
  [20:40:20.521]             sysCalls <- function(calls = sys.calls(), from = 1L) {
  [20:40:20.521]                 calls[seq.int(from = from + 12L, to = length(calls) - 
  [20:40:20.521]                   3L)]
  [20:40:20.521]             }
  [20:40:20.521]             function(cond) {
  [20:40:20.521]                 if (inherits(cond, "error")) {
  [20:40:20.521]                   ...future.conditions[[length(...future.conditions) + 
  [20:40:20.521]                     1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), 
  [20:40:20.521]                     cond$call), timestamp = Sys.time(), signaled = 0L)
  [20:40:20.521]                   signalCondition(cond)
  [20:40:20.521]                 }
  [20:40:20.521]                 else if (inherits(cond, c("condition", "immediateCondition"
  [20:40:20.521]                 ))) {
  [20:40:20.521]                   signal <- TRUE && inherits(cond, "immediateCondition")
  [20:40:20.521]                   ...future.conditions[[length(...future.conditions) + 
  [20:40:20.521]                     1L]] <<- list(condition = cond, signaled = base::as.integer(signal))
  [20:40:20.521]                   if (!signal) {
  [20:40:20.521]                     muffleCondition <- function (cond) 
  [20:40:20.521]                     {
  [20:40:20.521]                       inherits <- base::inherits
  [20:40:20.521]                       invokeRestart <- base::invokeRestart
  [20:40:20.521]                       muffled <- FALSE
  [20:40:20.521]                       if (inherits(cond, "message")) {
  [20:40:20.521]                         invokeRestart("muffleMessage")
  [20:40:20.521]                         muffled <- TRUE
  [20:40:20.521]                       }
  [20:40:20.521]                       else if (inherits(cond, "warning")) {
  [20:40:20.521]                         invokeRestart("muffleWarning")
  [20:40:20.521]                         muffled <- TRUE
  [20:40:20.521]                       }
  [20:40:20.521]                       else if (inherits(cond, "condition")) {
  [20:40:20.521]                         computeRestarts <- base::computeRestarts
  [20:40:20.521]                         grepl <- base::grepl
  [20:40:20.521]                         is.null <- base::is.null
  [20:40:20.521]                         restarts <- computeRestarts(cond)
  [20:40:20.521]                         for (restart in restarts) {
  [20:40:20.521]                           name <- restart$name
  [20:40:20.521]                           if (is.null(name)) 
  [20:40:20.521]                             next
  [20:40:20.521]                           if (!grepl("^muffle", name)) 
  [20:40:20.521]                             next
  [20:40:20.521]                           invokeRestart(restart)
  [20:40:20.521]                           muffled <- TRUE
  [20:40:20.521]                           break
  [20:40:20.521]                         }
  [20:40:20.521]                       }
  [20:40:20.521]                       invisible(muffled)
  [20:40:20.521]                     }
  [20:40:20.521]                     muffleCondition(cond)
  [20:40:20.521]                   }
  [20:40:20.521]                 }
  [20:40:20.521]             }
  [20:40:20.521]         }))
  [20:40:20.521]     }, error = function(ex) {
  [20:40:20.521]         base::structure(base::list(value = NULL, visible = NULL, 
  [20:40:20.521]             conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, 
  [20:40:20.521]                 ...future.rng), version = "1.8"), class = "FutureResult")
  [20:40:20.521]     }, finally = {
  [20:40:20.521]         {
  [20:40:20.521]             NULL
  [20:40:20.521]             future::plan(list(function (expr, envir = parent.frame(), 
  [20:40:20.521]                 substitute = TRUE, lazy = FALSE, seed = NULL, 
  [20:40:20.521]                 globals = TRUE, local = TRUE, earlySignal = FALSE, 
  [20:40:20.521]                 label = NULL, ...) 
  [20:40:20.521]             {
  [20:40:20.521]                 if (substitute) 
  [20:40:20.521]                   expr <- substitute(expr)
  [20:40:20.521]                 local <- as.logical(local)
  [20:40:20.521]                 future <- SequentialFuture(expr = expr, envir = envir, 
  [20:40:20.521]                   substitute = FALSE, lazy = lazy, seed = seed, 
  [20:40:20.521]                   globals = globals, local = local, earlySignal = earlySignal, 
  [20:40:20.521]                   label = label, ...)
  [20:40:20.521]                 if (!future$lazy) 
  [20:40:20.521]                   future <- run(future)
  [20:40:20.521]                 invisible(future)
  [20:40:20.521]             }), .cleanup = FALSE, .init = FALSE)
  [20:40:20.521]         }
  [20:40:20.521]         base::options(...future.oldOptions)
  [20:40:20.521]     })
  [20:40:20.521]     Sys.time
  [20:40:20.521]     if (base::is.na(TRUE)) {
  [20:40:20.521]     }
  [20:40:20.521]     else {
  [20:40:20.521]         base::sink(type = "output", split = FALSE)
  [20:40:20.521]         if (TRUE) {
  [20:40:20.521]             ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout))
  [20:40:20.521]         }
  [20:40:20.521]         else {
  [20:40:20.521]             ...future.result["stdout"] <- base::list(NULL)
  [20:40:20.521]         }
  [20:40:20.521]         base::close(...future.stdout)
  [20:40:20.521]         ...future.stdout <- NULL
  [20:40:20.521]     }
  [20:40:20.521]     ...future.result$conditions <- ...future.conditions
  [20:40:20.521]     ...future.result
  [20:40:20.521] }
  [20:40:20.526] plan(): Setting new future strategy stack:
  [20:40:20.526] List of future strategies:
  [20:40:20.526] 1. sequential:
  [20:40:20.526]    - args: function (expr, envir = parent.frame(), substitute = TRUE, lazy = FALSE, seed = NULL, globals = TRUE, local = TRUE, earlySignal = FALSE, label = NULL, ...)
  [20:40:20.526]    - tweaked: FALSE
  [20:40:20.526]    - call: NULL
  [20:40:20.527] plan(): nbrOfWorkers() = 1
  [20:40:20.541] plan(): Setting new future strategy stack:
  [20:40:20.541] List of future strategies:
  [20:40:20.541] 1. sequential:
  [20:40:20.541]    - args: function (expr, envir = parent.frame(), substitute = TRUE, lazy = FALSE, seed = NULL, globals = TRUE, local = TRUE, earlySignal = FALSE, label = NULL, ...)
  [20:40:20.541]    - tweaked: FALSE
  [20:40:20.541]    - call: plan(strategy)
  [20:40:20.542] plan(): nbrOfWorkers() = 1
  [20:40:20.542] SequentialFuture started (and completed)
  [20:40:20.543] Chunk #1 of 1 ... DONE
  [20:40:20.544] Launching 1 futures (chunks) ... DONE
  [20:40:20.544] - resolving futures
  [20:40:20.544]   - gathering results & relaying conditions (except errors)
  [20:40:20.545] resolve() on list ...
  [20:40:20.545]  recursive: 0
  [20:40:20.549]  length: 1
  [20:40:20.549] 
  [20:40:20.550] Future #1
  [20:40:20.550] signalConditionsASAP(SequentialFuture, pos=1) ...
  [20:40:20.551] - nx: 1
  [20:40:20.551] - relay: TRUE
  [20:40:20.551] - stdout: TRUE
  [20:40:20.551] - signal: TRUE
  [20:40:20.552] - resignal: FALSE
  [20:40:20.552] - force: FALSE
  [20:40:20.552] - relayed: [n=1] FALSE
  [20:40:20.552] - queued futures: [n=1] FALSE
  [20:40:20.553]  - until=1
  [20:40:20.553]  - relaying element #1
  [20:40:20.553] - relayed: [n=1] TRUE
  [20:40:20.554] - queued futures: [n=1] TRUE
  [20:40:20.554] signalConditionsASAP(SequentialFuture, pos=1) ... done
  [20:40:20.554]  length: 0 (resolved future 1)
  [20:40:20.555] Relaying remaining futures
  [20:40:20.555] signalConditionsASAP(NULL, pos=0) ...
  [20:40:20.555] - nx: 1
  [20:40:20.555] - relay: TRUE
  [20:40:20.556] - stdout: TRUE
  [20:40:20.556] - signal: TRUE
  [20:40:20.556] - resignal: FALSE
  [20:40:20.556] - force: FALSE
  [20:40:20.557] - relayed: [n=1] TRUE
  [20:40:20.557] - queued futures: [n=1] TRUE
   - flush all
  [20:40:20.557] - relayed: [n=1] TRUE
  [20:40:20.558] - queued futures: [n=1] TRUE
  [20:40:20.558] signalConditionsASAP(NULL, pos=0) ... done
  [20:40:20.558] resolve() on list ... DONE
  [20:40:20.558] - collecting values of futures
  [20:40:20.559] - accumulating results
  [20:40:20.561] - processing errors (handler = 'stop')
  [20:40:20.561] - extracting results
  [20:40:20.562] doFuture() ... DONE
  [1] 0.1760327 0.1760327 0.1760327
  - plan('sequential') ... DONE
  - plan('multicore') ...
  [20:40:20.563] plan(): Setting new future strategy stack:
  [20:40:20.563] List of future strategies:
  [20:40:20.563] 1. multicore:
  [20:40:20.563]    - args: function (expr, envir = parent.frame(), substitute = TRUE, lazy = FALSE, seed = NULL, globals = TRUE, workers = availableCores(constraints = "multicore"), earlySignal = FALSE, label = NULL, ...)
  [20:40:20.563]    - tweaked: FALSE
  [20:40:20.563]    - call: plan(strategy)
  [20:40:20.605] plan(): nbrOfWorkers() = 2
  [20:40:20.606] doFuture() ...
  [20:40:20.607] - dummy globals (as locals): [0] 
  [20:40:20.607] - R expression:
  [20:40:20.607] {
  [20:40:20.607]     doFuture::registerDoFuture()
  [20:40:20.607]     lapply(seq_along(...future.x_ii), FUN = function(jj) {
  [20:40:20.607]         ...future.x_jj <- ...future.x_ii[[jj]]
  [20:40:20.607]         NULL
  [20:40:20.607]         ...future.env <- environment()
  [20:40:20.607]         local({
  [20:40:20.607]             for (name in names(...future.x_jj)) {
  [20:40:20.607]                 assign(name, ...future.x_jj[[name]], envir = ...future.env, 
  [20:40:20.607]                   inherits = FALSE)
  [20:40:20.607]             }
  [20:40:20.607]         })
  [20:40:20.607]         tryCatch({
  [20:40:20.607]             dnorm(2L, mean = mu, sd = sigma)
  [20:40:20.607]         }, error = identity)
  [20:40:20.607]     })
  [20:40:20.607] }
  [20:40:20.608] - identifying globals and packages ...
  [20:40:20.609] getGlobalsAndPackages() ...
  [20:40:20.609] Searching for globals...
  [20:40:20.632] - globals found: [17] '{', '::', 'lapply', 'seq_along', '...future.x_ii', '<-', '[[', 'environment', 'local', 'for', 'names', 'assign', 'tryCatch', 'dnorm', 'mu', 'sigma', 'identity'
  [20:40:20.632] Searching for globals ... DONE
  [20:40:20.633] Resolving globals: FALSE
  [20:40:20.634] The total size of the 3 globals is 112 bytes (112 bytes)
  [20:40:20.634] - globals: [3] '...future.x_ii', 'mu', 'sigma'
  [20:40:20.635] - packages: [1] 'stats'
  [20:40:20.635] getGlobalsAndPackages() ... DONE
  [20:40:20.635] List of 3
  [20:40:20.635]  $ ...future.x_ii: NULL
  [20:40:20.635]  $ mu            : num 1
  [20:40:20.635]  $ sigma         : num 2
  [20:40:20.635]  - attr(*, "where")=List of 3
  [20:40:20.635]   ..$ ...future.x_ii:<environment: 0x55ac7e26d5e8> 
  [20:40:20.635]   ..$ mu            :<environment: R_GlobalEnv> 
  [20:40:20.635]   ..$ sigma         :<environment: R_GlobalEnv> 
  [20:40:20.635]  - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list"
  [20:40:20.635]  - attr(*, "resolved")= logi FALSE
  [20:40:20.635]  - attr(*, "total_size")= num 112
  [20:40:20.644]   - R expression:
  [20:40:20.645] {
  [20:40:20.645]     doFuture::registerDoFuture()
  [20:40:20.645]     lapply(seq_along(...future.x_ii), FUN = function(jj) {
  [20:40:20.645]         ...future.x_jj <- ...future.x_ii[[jj]]
  [20:40:20.645]         NULL
  [20:40:20.645]         ...future.env <- environment()
  [20:40:20.645]         local({
  [20:40:20.645]             for (name in names(...future.x_jj)) {
  [20:40:20.645]                 assign(name, ...future.x_jj[[name]], envir = ...future.env, 
  [20:40:20.645]                   inherits = FALSE)
  [20:40:20.645]             }
  [20:40:20.645]         })
  [20:40:20.645]         tryCatch({
  [20:40:20.645]             dnorm(2L, mean = mu, sd = sigma)
  [20:40:20.645]         }, error = identity)
  [20:40:20.645]     })
  [20:40:20.645] }
  [20:40:20.645]   - globals: [3] '...future.x_ii', 'mu', 'sigma'
  [20:40:20.662] List of 3
  [20:40:20.662]  $ ...future.x_ii: NULL
  [20:40:20.662]  $ mu            : num 1
  [20:40:20.662]  $ sigma         : num 2
  [20:40:20.662]  - attr(*, "where")=List of 3
  [20:40:20.662]   ..$ ...future.x_ii:<environment: 0x55ac7e26d5e8> 
  [20:40:20.662]   ..$ mu            :<environment: R_GlobalEnv> 
  [20:40:20.662]   ..$ sigma         :<environment: R_GlobalEnv> 
  [20:40:20.662]  - attr(*, "class")= chr [1:3] "FutureGlobals" "Globals" "list"
  [20:40:20.662]  - attr(*, "resolved")= logi FALSE
  [20:40:20.662]  - attr(*, "total_size")= num 112
  [20:40:20.671]   - packages: [2] 'doFuture', 'stats'
  [20:40:20.671] - identifying globals and packages ... DONE
  [20:40:20.674] Number of chunks: 2
  [20:40:20.675] Number of futures (= number of chunks): 2
  [20:40:20.675] Launching 2 futures (chunks) ...
  [20:40:20.676] Chunk #1 of 2 ...
  [20:40:20.676]  - Finding globals in 'args_list' chunk #1 ...
  [20:40:20.696] getGlobalsAndPackages() ...
  [20:40:20.696] Searching for globals...
  [20:40:20.697] 
  [20:40:20.697] Searching for globals ... DONE
  [20:40:20.697] - globals: [0] <none>
  [20:40:20.697] getGlobalsAndPackages() ... DONE
  [20:40:20.698] 
  [20:40:20.698] 
  [20:40:20.698]  - Finding globals in 'args_list' for chunk #1 ... DONE
  [20:40:20.699] getGlobalsAndPackages() ...
  [20:40:20.699] - globals passed as-is: [3] '...future.x_ii', 'mu', 'sigma'
  [20:40:20.700] Resolving globals: FALSE
  [20:40:20.701] The total size of the 3 globals is 112 bytes (112 bytes)
  [20:40:20.701] - globals: [3] '...future.x_ii', 'mu', 'sigma'
  [20:40:20.701] 
  [20:40:20.702] getGlobalsAndPackages() ... DONE
  [20:40:20.704] Packages needed by the future expression (n = 2): 'doFuture', 'stats'
  [20:40:20.704] Packages needed by future strategies (n = 0): <none>
  [20:40:20.709] {
  [20:40:20.709]     {
  [20:40:20.709]         ...future.startTime <- base::Sys.time()
  [20:40:20.709]         ...future.oldOptions <- base::options(future.startup.script = FALSE, 
  [20:40:20.709]             future.globals.onMissing = "ignore", future.globals.maxSize = NULL, 
  [20:40:20.709]             future.globals.method = NULL, future.globals.onMissing = "ignore", 
  [20:40:20.709]             future.globals.onReference = NULL, future.globals.resolve = NULL, 
  [20:40:20.709]             future.resolve.recursive = NULL, width = 80L)
  [20:40:20.709]         {
  [20:40:20.709]             {
  [20:40:20.709]                 {
  [20:40:20.709]                   {
  [20:40:20.709]                     has_future <- base::requireNamespace("future", 
  [20:40:20.709]                       quietly = TRUE)
  [20:40:20.709]                     version <- if (has_future) 
  [20:40:20.709]                       utils::packageVersion("future")
  [20:40:20.709]                     else NULL
  [20:40:20.709]                     if (!has_future || version < "1.8.0") {
  [20:40:20.709]                       info <- base::c(r_version = base::gsub("R version ", 
  [20:40:20.709]                         "", base::R.version$version.string), 
  [20:40:20.709]                         platform = base::sprintf("%s (%s-bit)", 
  [20:40:20.709]                           base::R.version$platform, 8 * base::.Machine$sizeof.pointer), 
  [20:40:20.709]                         os = base::paste(base::Sys.info()[base::c("sysname", 
  [20:40:20.709]                           "release", "version")], collapse = " "), 
  [20:40:20.709]                         hostname = base::Sys.info()[["nodename"]])
  [20:40:20.709]                       info <- base::sprintf("%s: %s", base::names(info), 
  [20:40:20.709]                         info)
  [20:40:20.709]                       info <- base::paste(info, collapse = "; ")
  [20:40:20.709]                       if (!has_future) {
  [20:40:20.709]                         msg <- base::sprintf("Package 'future' is not installed on worker (%s)", 
  [20:40:20.709]                           info)
  [20:40:20.709]                       }
  [20:40:20.709]                       else {
  [20:40:20.709]                         msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", 
  [20:40:20.709]                           info, version)
  [20:40:20.709]                       }
  [20:40:20.709]                       base::stop(msg)
  [20:40:20.709]                     }
  [20:40:20.709]                   }
  [20:40:20.709]                   ...future.mc.cores.old <- base::getOption("mc.cores")
  [20:40:20.709]                   base::options(mc.cores = 1L)
  [20:40:20.709]                 }
  [20:40:20.709]                 base::local({
  [20:40:20.709]                   for (pkg in c("doFuture", "stats")) {
  [20:40:20.709]                     base::loadNamespace(pkg)
  [20:40:20.709]                     base::library(pkg, character.only = TRUE)
  [20:40:20.709]                   }
  [20:40:20.709]                 })
  [20:40:20.709]             }
  [20:40:20.709]             future::plan("default", .cleanup = FALSE, .init = FALSE)
  [20:40:20.709]         }
  [20:40:20.709]     }
  [20:40:20.709]     if (base::is.na(TRUE)) {
  [20:40:20.709]     }
  [20:40:20.709]     else {
  [20:40:20.709]         if (TRUE) {
  [20:40:20.709]             ...future.stdout <- base::rawConnection(base::raw(0L), 
  [20:40:20.709]                 open = "w")
  [20:40:20.709]         }
  [20:40:20.709]         else {
  [20:40:20.709]             ...future.stdout <- base::file(base::switch(.Platform$OS.type, 
  [20:40:20.709]                 windows = "NUL", "/dev/null"), open = "w")
  [20:40:20.709]         }
  [20:40:20.709]         base::sink(...future.stdout, type = "output", split = FALSE)
  [20:40:20.709]         base::on.exit(if (!base::is.null(...future.stdout)) {
  [20:40:20.709]             base::sink(type = "output", split = FALSE)
  [20:40:20.709]             base::close(...future.stdout)
  [20:40:20.709]         }, add = TRUE)
  [20:40:20.709]     }
  [20:40:20.709]     ...future.frame <- base::sys.nframe()
  [20:40:20.709]     ...future.conditions <- base::list()
  [20:40:20.709]     ...future.rng <- base::globalenv()$.Random.seed
  [20:40:20.709]     ...future.result <- base::tryCatch({
  [20:40:20.709]         base::withCallingHandlers({
  [20:40:20.709]             ...future.value <- base::withVisible(base::local({
  [20:40:20.709]                 doFuture::registerDoFuture()
  [20:40:20.709]                 lapply(seq_along(...future.x_ii), FUN = function(jj) {
  [20:40:20.709]                   ...future.x_jj <- ...future.x_ii[[jj]]
  [20:40:20.709]                   NULL
  [20:40:20.709]                   ...future.env <- environment()
  [20:40:20.709]                   local({
  [20:40:20.709]                     for (name in names(...future.x_jj)) {
  [20:40:20.709]                       assign(name, ...future.x_jj[[name]], envir = ...future.env, 
  [20:40:20.709]                         inherits = FALSE)
  [20:40:20.709]                     }
  [20:40:20.709]                   })
  [20:40:20.709]                   tryCatch({
  [20:40:20.709]                     dnorm(2L, mean = mu, sd = sigma)
  [20:40:20.709]                   }, error = identity)
  [20:40:20.709]                 })
  [20:40:20.709]             }))
  [20:40:20.709]             future::FutureResult(value = ...future.value$value, 
  [20:40:20.709]                 visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, 
  [20:40:20.709]                   ...future.rng), started = ...future.startTime, 
  [20:40:20.709]                 version = "1.8")
  [20:40:20.709]         }, condition = base::local({
  [20:40:20.709]             c <- base::c
  [20:40:20.709]             inherits <- base::inherits
  [20:40:20.709]             invokeRestart <- base::invokeRestart
  [20:40:20.709]             length <- base::length
  [20:40:20.709]             list <- base::list
  [20:40:20.709]             seq.int <- base::seq.int
  [20:40:20.709]             signalCondition <- base::signalCondition
  [20:40:20.709]             sys.calls <- base::sys.calls
  [20:40:20.709]             Sys.time <- base::Sys.time
  [20:40:20.709]             `[[` <- base::`[[`
  [20:40:20.709]             `+` <- base::`+`
  [20:40:20.709]             `<<-` <- base::`<<-`
  [20:40:20.709]             sysCalls <- function(calls = sys.calls(), from = 1L) {
  [20:40:20.709]                 calls[seq.int(from = from + 12L, to = length(calls) - 
  [20:40:20.709]                   3L)]
  [20:40:20.709]             }
  [20:40:20.709]             function(cond) {
  [20:40:20.709]                 if (inherits(cond, "error")) {
  [20:40:20.709]                   ...future.conditions[[length(...future.conditions) + 
  [20:40:20.709]                     1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), 
  [20:40:20.709]                     cond$call), timestamp = Sys.time(), signaled = 0L)
  [20:40:20.709]                   signalCondition(cond)
  [20:40:20.709]                 }
  [20:40:20.709]                 else if (inherits(cond, "condition")) {
  [20:40:20.709]                   signal <- FALSE && inherits(cond, character(0))
  [20:40:20.709]                   ...future.conditions[[length(...future.conditions) + 
  [20:40:20.709]                     1L]] <<- list(condition = cond, signaled = base::as.integer(signal))
  [20:40:20.709]                   if (!signal) {
  [20:40:20.709]                     muffleCondition <- function (cond) 
  [20:40:20.709]                     {
  [20:40:20.709]                       inherits <- base::inherits
  [20:40:20.709]                       invokeRestart <- base::invokeRestart
  [20:40:20.709]                       muffled <- FALSE
  [20:40:20.709]                       if (inherits(cond, "message")) {
  [20:40:20.709]                         invokeRestart("muffleMessage")
  [20:40:20.709]                         muffled <- TRUE
  [20:40:20.709]                       }
  [20:40:20.709]                       else if (inherits(cond, "warning")) {
  [20:40:20.709]                         invokeRestart("muffleWarning")
  [20:40:20.709]                         muffled <- TRUE
  [20:40:20.709]                       }
  [20:40:20.709]                       else if (inherits(cond, "condition")) {
  [20:40:20.709]                         computeRestarts <- base::computeRestarts
  [20:40:20.709]                         grepl <- base::grepl
  [20:40:20.709]                         is.null <- base::is.null
  [20:40:20.709]                         restarts <- computeRestarts(cond)
  [20:40:20.709]                         for (restart in restarts) {
  [20:40:20.709]                           name <- restart$name
  [20:40:20.709]                           if (is.null(name)) 
  [20:40:20.709]                             next
  [20:40:20.709]                           if (!grepl("^muffle", name)) 
  [20:40:20.709]                             next
  [20:40:20.709]                           invokeRestart(restart)
  [20:40:20.709]                           muffled <- TRUE
  [20:40:20.709]                           break
  [20:40:20.709]                         }
  [20:40:20.709]                       }
  [20:40:20.709]                       invisible(muffled)
  [20:40:20.709]                     }
  [20:40:20.709]                     muffleCondition(cond)
  [20:40:20.709]                   }
  [20:40:20.709]                 }
  [20:40:20.709]             }
  [20:40:20.709]         }))
  [20:40:20.709]     }, error = function(ex) {
  [20:40:20.709]         base::structure(base::list(value = NULL, visible = NULL, 
  [20:40:20.709]             conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, 
  [20:40:20.709]                 ...future.rng), version = "1.8"), class = "FutureResult")
  [20:40:20.709]     }, finally = {
  [20:40:20.709]         {
  [20:40:20.709]             {
  [20:40:20.709]                 base::options(mc.cores = ...future.mc.cores.old)
  [20:40:20.709]             }
  [20:40:20.709]             future::plan(list(function (expr, envir = parent.frame(), 
  [20:40:20.709]                 substitute = TRUE, lazy = FALSE, seed = NULL, 
  [20:40:20.709]                 globals = TRUE, workers = availableCores(constraints = "multicore"), 
  [20:40:20.709]                 earlySignal = FALSE, label = NULL, ...) 
  [20:40:20.709]             {
  [20:40:20.709]                 if (substitute) 
  [20:40:20.709]                   expr <- substitute(expr)
  [20:40:20.709]                 if (is.function(workers)) 
  [20:40:20.709]                   workers <- workers()
  [20:40:20.709]                 workers <- as.integer(workers)
  [20:40:20.709]                 stop_if_not(is.finite(workers), workers >= 1L)
  [20:40:20.709]                 if (workers == 1L || !supportsMulticore(warn = TRUE)) {
  [20:40:20.709]                   return(sequential(expr, envir = envir, substitute = FALSE, 
  [20:40:20.709]                     lazy = lazy, seed = seed, globals = globals, 
  [20:40:20.709]                     local = TRUE, label = label, ...))
  [20:40:20.709]                 }
  [20:40:20.709]                 oopts <- options(mc.cores = workers)
  [20:40:20.709]                 on.exit(options(oopts))
  [20:40:20.709]                 future <- MulticoreFuture(expr = expr, envir = envir, 
  [20:40:20.709]                   substitute = FALSE, lazy = lazy, seed = seed, 
  [20:40:20.709]                   globals = globals, workers = workers, earlySignal = earlySignal, 
  [20:40:20.709]                   label = label, ...)
  [20:40:20.709]                 if (!future$lazy) 
  [20:40:20.709]                   future <- run(future)
  [20:40:20.709]                 invisible(future)
  [20:40:20.709]             }), .cleanup = FALSE, .init = FALSE)
  [20:40:20.709]         }
  [20:40:20.709]         base::options(...future.oldOptions)
  [20:40:20.709]     })
  [20:40:20.709]     Sys.time
  [20:40:20.709]     if (base::is.na(TRUE)) {
  [20:40:20.709]     }
  [20:40:20.709]     else {
  [20:40:20.709]         base::sink(type = "output", split = FALSE)
  [20:40:20.709]         if (TRUE) {
  [20:40:20.709]             ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout))
  [20:40:20.709]         }
  [20:40:20.709]         else {
  [20:40:20.709]             ...future.result["stdout"] <- base::list(NULL)
  [20:40:20.709]         }
  [20:40:20.709]         base::close(...future.stdout)
  [20:40:20.709]         ...future.stdout <- NULL
  [20:40:20.709]     }
  [20:40:20.709]     ...future.result$conditions <- ...future.conditions
  [20:40:20.709]     ...future.result
  [20:40:20.709] }
  [20:40:20.729] requestCore(): workers = 2
  [20:40:20.734] MulticoreFuture started
  [20:40:20.734] Chunk #1 of 2 ... DONE
  [20:40:20.735] Chunk #2 of 2 ...
  [20:40:20.735]  - Finding globals in 'args_list' chunk #2 ...
  [20:40:20.735] getGlobalsAndPackages() ...
  [20:40:20.736] Searching for globals...
  [20:40:20.737] 
  [20:40:20.737] Searching for globals ... DONE
  [20:40:20.738] - globals: [0] <none>
  [20:40:20.738] getGlobalsAndPackages() ... DONE
  [20:40:20.738] 
  [20:40:20.738] 
  [20:40:20.739]  - Finding globals in 'args_list' for chunk #2 ... DONE
  [20:40:20.740] getGlobalsAndPackages() ...
  [20:40:20.741] - globals passed as-is: [3] '...future.x_ii', 'mu', 'sigma'
  [20:40:20.741] Resolving globals: FALSE
  [20:40:20.750] plan(): Setting new future strategy stack:
  [20:40:20.751] List of future strategies:
  [20:40:20.751] 1. sequential:
  [20:40:20.751]    - args: function (expr, envir = parent.frame(), substitute = TRUE, lazy = FALSE, seed = NULL, globals = TRUE, local = TRUE, earlySignal = FALSE, label = NULL, ...)
  [20:40:20.751]    - tweaked: FALSE
  [20:40:20.751]    - call: NULL
  [20:40:20.752] plan(): nbrOfWorkers() = 1
  [20:40:20.753] plan(): Setting new future strategy stack:
  [20:40:20.754] List of future strategies:
  [20:40:20.754] 1. multicore:
  [20:40:20.754]    - args: function (expr, envir = parent.frame(), substitute = TRUE, lazy = FALSE, seed = NULL, globals = TRUE, workers = availableCores(constraints = "multicore"), earlySignal = FALSE, label = NULL, ...)
  [20:40:20.754]    - tweaked: FALSE
  [20:40:20.754]    - call: plan(strategy)
  [20:40:20.755] plan(): nbrOfWorkers() = 2
  [20:40:20.758] The total size of the 3 globals is 112 bytes (112 bytes)
  [20:40:20.759] - globals: [3] '...future.x_ii', 'mu', 'sigma'
  [20:40:20.759] 
  [20:40:20.760] getGlobalsAndPackages() ... DONE
  [20:40:20.762] Packages needed by the future expression (n = 2): 'doFuture', 'stats'
  [20:40:20.762] Packages needed by future strategies (n = 0): <none>
  [20:40:20.768] {
  [20:40:20.768]     {
  [20:40:20.768]         ...future.startTime <- base::Sys.time()
  [20:40:20.768]         ...future.oldOptions <- base::options(future.startup.script = FALSE, 
  [20:40:20.768]             future.globals.onMissing = "ignore", future.globals.maxSize = NULL, 
  [20:40:20.768]             future.globals.method = NULL, future.globals.onMissing = "ignore", 
  [20:40:20.768]             future.globals.onReference = NULL, future.globals.resolve = NULL, 
  [20:40:20.768]             future.resolve.recursive = NULL, width = 80L)
  [20:40:20.768]         {
  [20:40:20.768]             {
  [20:40:20.768]                 {
  [20:40:20.768]                   {
  [20:40:20.768]                     has_future <- base::requireNamespace("future", 
  [20:40:20.768]                       quietly = TRUE)
  [20:40:20.768]                     version <- if (has_future) 
  [20:40:20.768]                       utils::packageVersion("future")
  [20:40:20.768]                     else NULL
  [20:40:20.768]                     if (!has_future || version < "1.8.0") {
  [20:40:20.768]                       info <- base::c(r_version = base::gsub("R version ", 
  [20:40:20.768]                         "", base::R.version$version.string), 
  [20:40:20.768]                         platform = base::sprintf("%s (%s-bit)", 
  [20:40:20.768]                           base::R.version$platform, 8 * base::.Machine$sizeof.pointer), 
  [20:40:20.768]                         os = base::paste(base::Sys.info()[base::c("sysname", 
  [20:40:20.768]                           "release", "version")], collapse = " "), 
  [20:40:20.768]                         hostname = base::Sys.info()[["nodename"]])
  [20:40:20.768]                       info <- base::sprintf("%s: %s", base::names(info), 
  [20:40:20.768]                         info)
  [20:40:20.768]                       info <- base::paste(info, collapse = "; ")
  [20:40:20.768]                       if (!has_future) {
  [20:40:20.768]                         msg <- base::sprintf("Package 'future' is not installed on worker (%s)", 
  [20:40:20.768]                           info)
  [20:40:20.768]                       }
  [20:40:20.768]                       else {
  [20:40:20.768]                         msg <- base::sprintf("Package 'future' on worker (%s) must be of version >= 1.8.0: %s", 
  [20:40:20.768]                           info, version)
  [20:40:20.768]                       }
  [20:40:20.768]                       base::stop(msg)
  [20:40:20.768]                     }
  [20:40:20.768]                   }
  [20:40:20.768]                   ...future.mc.cores.old <- base::getOption("mc.cores")
  [20:40:20.768]                   base::options(mc.cores = 1L)
  [20:40:20.768]                 }
  [20:40:20.768]                 base::local({
  [20:40:20.768]                   for (pkg in c("doFuture", "stats")) {
  [20:40:20.768]                     base::loadNamespace(pkg)
  [20:40:20.768]                     base::library(pkg, character.only = TRUE)
  [20:40:20.768]                   }
  [20:40:20.768]                 })
  [20:40:20.768]             }
  [20:40:20.768]             future::plan("default", .cleanup = FALSE, .init = FALSE)
  [20:40:20.768]         }
  [20:40:20.768]     }
  [20:40:20.768]     if (base::is.na(TRUE)) {
  [20:40:20.768]     }
  [20:40:20.768]     else {
  [20:40:20.768]         if (TRUE) {
  [20:40:20.768]             ...future.stdout <- base::rawConnection(base::raw(0L), 
  [20:40:20.768]                 open = "w")
  [20:40:20.768]         }
  [20:40:20.768]         else {
  [20:40:20.768]             ...future.stdout <- base::file(base::switch(.Platform$OS.type, 
  [20:40:20.768]                 windows = "NUL", "/dev/null"), open = "w")
  [20:40:20.768]         }
  [20:40:20.768]         base::sink(...future.stdout, type = "output", split = FALSE)
  [20:40:20.768]         base::on.exit(if (!base::is.null(...future.stdout)) {
  [20:40:20.768]             base::sink(type = "output", split = FALSE)
  [20:40:20.768]             base::close(...future.stdout)
  [20:40:20.768]         }, add = TRUE)
  [20:40:20.768]     }
  [20:40:20.768]     ...future.frame <- base::sys.nframe()
  [20:40:20.768]     ...future.conditions <- base::list()
  [20:40:20.768]     ...future.rng <- base::globalenv()$.Random.seed
  [20:40:20.768]     ...future.result <- base::tryCatch({
  [20:40:20.768]         base::withCallingHandlers({
  [20:40:20.768]             ...future.value <- base::withVisible(base::local({
  [20:40:20.768]                 doFuture::registerDoFuture()
  [20:40:20.768]                 lapply(seq_along(...future.x_ii), FUN = function(jj) {
  [20:40:20.768]                   ...future.x_jj <- ...future.x_ii[[jj]]
  [20:40:20.768]                   NULL
  [20:40:20.768]                   ...future.env <- environment()
  [20:40:20.768]                   local({
  [20:40:20.768]                     for (name in names(...future.x_jj)) {
  [20:40:20.768]                       assign(name, ...future.x_jj[[name]], envir = ...future.env, 
  [20:40:20.768]                         inherits = FALSE)
  [20:40:20.768]                     }
  [20:40:20.768]                   })
  [20:40:20.768]                   tryCatch({
  [20:40:20.768]                     dnorm(2L, mean = mu, sd = sigma)
  [20:40:20.768]                   }, error = identity)
  [20:40:20.768]                 })
  [20:40:20.768]             }))
  [20:40:20.768]             future::FutureResult(value = ...future.value$value, 
  [20:40:20.768]                 visible = ...future.value$visible, rng = !identical(base::globalenv()$.Random.seed, 
  [20:40:20.768]                   ...future.rng), started = ...future.startTime, 
  [20:40:20.768]                 version = "1.8")
  [20:40:20.768]         }, condition = base::local({
  [20:40:20.768]             c <- base::c
  [20:40:20.768]             inherits <- base::inherits
  [20:40:20.768]             invokeRestart <- base::invokeRestart
  [20:40:20.768]             length <- base::length
  [20:40:20.768]             list <- base::list
  [20:40:20.768]             seq.int <- base::seq.int
  [20:40:20.768]             signalCondition <- base::signalCondition
  [20:40:20.768]             sys.calls <- base::sys.calls
  [20:40:20.768]             Sys.time <- base::Sys.time
  [20:40:20.768]             `[[` <- base::`[[`
  [20:40:20.768]             `+` <- base::`+`
  [20:40:20.768]             `<<-` <- base::`<<-`
  [20:40:20.768]             sysCalls <- function(calls = sys.calls(), from = 1L) {
  [20:40:20.768]                 calls[seq.int(from = from + 12L, to = length(calls) - 
  [20:40:20.768]                   3L)]
  [20:40:20.768]             }
  [20:40:20.768]             function(cond) {
  [20:40:20.768]                 if (inherits(cond, "error")) {
  [20:40:20.768]                   ...future.conditions[[length(...future.conditions) + 
  [20:40:20.768]                     1L]] <<- list(condition = cond, calls = c(sysCalls(from = ...future.frame), 
  [20:40:20.768]                     cond$call), timestamp = Sys.time(), signaled = 0L)
  [20:40:20.768]                   signalCondition(cond)
  [20:40:20.768]                 }
  [20:40:20.768]                 else if (inherits(cond, "condition")) {
  [20:40:20.768]                   signal <- FALSE && inherits(cond, character(0))
  [20:40:20.768]                   ...future.conditions[[length(...future.conditions) + 
  [20:40:20.768]                     1L]] <<- list(condition = cond, signaled = base::as.integer(signal))
  [20:40:20.768]                   if (!signal) {
  [20:40:20.768]                     muffleCondition <- function (cond) 
  [20:40:20.768]                     {
  [20:40:20.768]                       inherits <- base::inherits
  [20:40:20.768]                       invokeRestart <- base::invokeRestart
  [20:40:20.768]                       muffled <- FALSE
  [20:40:20.768]                       if (inherits(cond, "message")) {
  [20:40:20.768]                         invokeRestart("muffleMessage")
  [20:40:20.768]                         muffled <- TRUE
  [20:40:20.768]                       }
  [20:40:20.768]                       else if (inherits(cond, "warning")) {
  [20:40:20.768]                         invokeRestart("muffleWarning")
  [20:40:20.768]                         muffled <- TRUE
  [20:40:20.768]                       }
  [20:40:20.768]                       else if (inherits(cond, "condition")) {
  [20:40:20.768]                         computeRestarts <- base::computeRestarts
  [20:40:20.768]                         grepl <- base::grepl
  [20:40:20.768]                         is.null <- base::is.null
  [20:40:20.768]                         restarts <- computeRestarts(cond)
  [20:40:20.768]                         for (restart in restarts) {
  [20:40:20.768]                           name <- restart$name
  [20:40:20.768]                           if (is.null(name)) 
  [20:40:20.768]                             next
  [20:40:20.768]                           if (!grepl("^muffle", name)) 
  [20:40:20.768]                             next
  [20:40:20.768]                           invokeRestart(restart)
  [20:40:20.768]                           muffled <- TRUE
  [20:40:20.768]                           break
  [20:40:20.768]                         }
  [20:40:20.768]                       }
  [20:40:20.768]                       invisible(muffled)
  [20:40:20.768]                     }
  [20:40:20.768]                     muffleCondition(cond)
  [20:40:20.768]                   }
  [20:40:20.768]                 }
  [20:40:20.768]             }
  [20:40:20.768]         }))
  [20:40:20.768]     }, error = function(ex) {
  [20:40:20.768]         base::structure(base::list(value = NULL, visible = NULL, 
  [20:40:20.768]             conditions = ...future.conditions, rng = !identical(base::globalenv()$.Random.seed, 
  [20:40:20.768]                 ...future.rng), version = "1.8"), class = "FutureResult")
  [20:40:20.768]     }, finally = {
  [20:40:20.768]         {
  [20:40:20.768]             {
  [20:40:20.768]                 base::options(mc.cores = ...future.mc.cores.old)
  [20:40:20.768]             }
  [20:40:20.768]             future::plan(list(function (expr, envir = parent.frame(), 
  [20:40:20.768]                 substitute = TRUE, lazy = FALSE, seed = NULL, 
  [20:40:20.768]                 globals = TRUE, workers = availableCores(constraints = "multicore"), 
  [20:40:20.768]                 earlySignal = FALSE, label = NULL, ...) 
  [20:40:20.768]             {
  [20:40:20.768]                 if (substitute) 
  [20:40:20.768]                   expr <- substitute(expr)
  [20:40:20.768]                 if (is.function(workers)) 
  [20:40:20.768]                   workers <- workers()
  [20:40:20.768]                 workers <- as.integer(workers)
  [20:40:20.768]                 stop_if_not(is.finite(workers), workers >= 1L)
  [20:40:20.768]                 if (workers == 1L || !supportsMulticore(warn = TRUE)) {
  [20:40:20.768]                   return(sequential(expr, envir = envir, substitute = FALSE, 
  [20:40:20.768]                     lazy = lazy, seed = seed, globals = globals, 
  [20:40:20.768]                     local = TRUE, label = label, ...))
  [20:40:20.768]                 }
  [20:40:20.768]                 oopts <- options(mc.cores = workers)
  [20:40:20.768]                 on.exit(options(oopts))
  [20:40:20.768]                 future <- MulticoreFuture(expr = expr, envir = envir, 
  [20:40:20.768]                   substitute = FALSE, lazy = lazy, seed = seed, 
  [20:40:20.768]                   globals = globals, workers = workers, earlySignal = earlySignal, 
  [20:40:20.768]                   label = label, ...)
  [20:40:20.768]                 if (!future$lazy) 
  [20:40:20.768]                   future <- run(future)
  [20:40:20.768]                 invisible(future)
  [20:40:20.768]             }), .cleanup = FALSE, .init = FALSE)
  [20:40:20.768]         }
  [20:40:20.768]         base::options(...future.oldOptions)
  [20:40:20.768]     })
  [20:40:20.768]     Sys.time
  [20:40:20.768]     if (base::is.na(TRUE)) {
  [20:40:20.768]     }
  [20:40:20.768]     else {
  [20:40:20.768]         base::sink(type = "output", split = FALSE)
  [20:40:20.768]         if (TRUE) {
  [20:40:20.768]             ...future.result$stdout <- base::rawToChar(base::rawConnectionValue(...future.stdout))
  [20:40:20.768]         }
  [20:40:20.768]         else {
  [20:40:20.768]             ...future.result["stdout"] <- base::list(NULL)
  [20:40:20.768]         }
  [20:40:20.768]         base::close(...future.stdout)
  [20:40:20.768]         ...future.stdout <- NULL
  [20:40:20.768]     }
  [20:40:20.768]     ...future.result$conditions <- ...future.conditions
  [20:40:20.768]     ...future.result
  [20:40:20.768] }
  [20:40:20.773] requestCore(): workers = 2
  [20:40:20.798] MulticoreFuture started
  [20:40:20.799] Chunk #2 of 2 ... DONE
  [20:40:20.800] Launching 2 futures (chunks) ... DONE
  [20:40:20.800] - resolving futures
  [20:40:20.800]   - gathering results & relaying conditions (except errors)
  [20:40:20.801] resolve() on list ...
  [20:40:20.801]  recursive: 0
  [20:40:20.801]  length: 2
  [20:40:20.802] 
  [20:40:20.805] Future #1
  [20:40:20.815] plan(): Setting new future strategy stack:
  [20:40:20.816] List of future strategies:
  [20:40:20.816] 1. sequential:
  [20:40:20.816]    - args: function (expr, envir = parent.frame(), substitute = TRUE, lazy = FALSE, seed = NULL, globals = TRUE, local = TRUE, earlySignal = FALSE, label = NULL, ...)
  [20:40:20.816]    - tweaked: FALSE
  [20:40:20.816]    - call: NULL
  [20:40:20.817] plan(): nbrOfWorkers() = 1
  [20:40:20.819] plan(): Setting new future strategy stack:
  [20:40:20.819] List of future strategies:
  [20:40:20.819] 1. multicore:
  [20:40:20.819]    - args: function (expr, envir = parent.frame(), substitute = TRUE, lazy = FALSE, seed = NULL, globals = TRUE, workers = availableCores(constraints = "multicore"), earlySignal = FALSE, label = NULL, ...)
  [20:40:20.819]    - tweaked: FALSE
  [20:40:20.819]    - call: plan(strategy)
  [20:40:20.821] plan(): nbrOfWorkers() = 2
  [20:40:20.825] signalConditionsASAP(MulticoreFuture, pos=1) ...
  [20:40:20.826] - nx: 2
  [20:40:20.826] - relay: TRUE
  [20:40:20.826] - stdout: TRUE
  [20:40:20.827] - signal: TRUE
  [20:40:20.827] - resignal: FALSE
  [20:40:20.827] - force: FALSE
  [20:40:20.827] - relayed: [n=2] FALSE, FALSE
  [20:40:20.828] - queued futures: [n=2] FALSE, FALSE
  [20:40:20.828]  - until=1
  [20:40:20.828]  - relaying element #1
  [20:40:20.829] - relayed: [n=2] TRUE, FALSE
  [20:40:20.829] - queued futures: [n=2] TRUE, FALSE
  [20:40:20.830] signalConditionsASAP(MulticoreFuture, pos=1) ... done
  [20:40:20.830]  length: 1 (resolved future 1)
  [20:40:20.830] Future #2
  [20:40:20.832] signalConditionsASAP(MulticoreFuture, pos=2) ...
  [20:40:20.832] - nx: 2
  [20:40:20.832] - relay: TRUE
  [20:40:20.833] - stdout: TRUE
  [20:40:20.833] - signal: TRUE
  [20:40:20.833] - resignal: FALSE
  [20:40:20.833] - force: FALSE
  [20:40:20.834] - relayed: [n=2] TRUE, FALSE
  [20:40:20.834] - queued futures: [n=2] TRUE, FALSE
  [20:40:20.834]  - until=2
  [20:40:20.835]  - relaying element #2
  [20:40:20.835] - relayed: [n=2] TRUE, TRUE
  [20:40:20.835] - queued futures: [n=2] TRUE, TRUE
  [20:40:20.836] signalConditionsASAP(MulticoreFuture, pos=2) ... done
  [20:40:20.836]  length: 0 (resolved future 2)
  [20:40:20.836] Relaying remaining futures
  [20:40:20.837] signalConditionsASAP(NULL, pos=0) ...
  [20:40:20.837] - nx: 2
  [20:40:20.837] - relay: TRUE
  [20:40:20.837] - stdout: TRUE
  [20:40:20.854] - signal: TRUE
  [20:40:20.854] - resignal: FALSE
  [20:40:20.854] - force: FALSE
  [20:40:20.855] - relayed: [n=2] TRUE, TRUE
  [20:40:20.855] - queued futures: [n=2] TRUE, TRUE
   - flush all
  [20:40:20.855] - relayed: [n=2] TRUE, TRUE
  [20:40:20.856] - queued futures: [n=2] TRUE, TRUE
  [20:40:20.856] signalConditionsASAP(NULL, pos=0) ... done
  [20:40:20.856] resolve() on list ... DONE
  [20:40:20.857] - collecting values of futures
  [20:40:20.857] - accumulating results
  [20:40:20.862] - processing errors (handler = 'stop')
  [20:40:20.863] - extracting results
  [20:40:20.863] doFuture() ... DONE
  [1] 0.1760327 0.1760327 0.1760327
  - plan('multicore') ... DONE
  - plan('multisession') ...
  [20:40:20.865] plan(): Setting new future strategy stack:
  [20:40:20.865] List of future strategies:
  [20:40:20.865] 1. multisession:
  [20:40:20.865]    - args: function (expr, envir = parent.frame(), substitute = TRUE, lazy = FALSE, seed = NULL, globals = TRUE, persistent = FALSE, workers = availableCores(), gc = FALSE, earlySignal = FALSE, label = NULL, ...)
  [20:40:20.865]    - tweaked: FALSE
  [20:40:20.865]    - call: plan(strategy)
  [20:40:20.866] plan(): plan_init() of 'multisession', 'cluster', 'multiprocess', 'future', 'function' ...
  [20:40:20.866] multisession:
  [20:40:20.866] - args: function (expr, envir = parent.frame(), substitute = TRUE, lazy = FALSE, seed = NULL, globals = TRUE, persistent = FALSE, workers = availableCores(), gc = FALSE, earlySignal = FALSE, label = NULL, ...)
  [20:40:20.866] - tweaked: FALSE
  [20:40:20.866] - call: plan(strategy)
  [local output] Workers: [n = 2] 'localhost', 'localhost'
  [local output] Base port: 35082
  [local output] Creating node 1 of 2 ...
  [local output] - setting up node
  Testing if worker's PID can be inferred: ''/home/hornik/tmp/R.check/r-devel-gcc/Work/build/bin/Rscript' -e 'try(suppressWarnings(cat(Sys.getpid(),file="/home/hornik/tmp/scratch/RtmpFluXT2/future.parent=4798.12be246188c7.pid")), silent = TRUE)' -e "file.exists('/home/hornik/tmp/scratch/RtmpFluXT2/future.parent=4798.12be246188c7.pid')"'
  - Possible to infer worker's PID: TRUE
  [local output] Starting worker #1 on 'localhost': '/home/hornik/tmp/R.check/r-devel-gcc/Work/build/bin/Rscript' --default-packages=datasets,utils,grDevices,graphics,stats,methods -e '#label=times.R:4798:gimli2:hornik' -e 'try(suppressWarnings(cat(Sys.getpid(),file="/home/hornik/tmp/scratch/RtmpFluXT2/future.parent=4798.12be246188c7.pid")), silent = TRUE)' -e 'parallel:::.slaveRSOCK()' MASTER=localhost PORT=35082 OUT=/dev/null TIMEOUT=120 XDR=TRUE
  [local output] - Exit code of system() call: 0
  [local output] Waiting for worker #1 on 'localhost' to connect back
  [local output] Detected a warning from socketConnection(): 'port 35082 cannot be opened'
  Warning in socketConnection("localhost", port = port, server = TRUE, blocking = TRUE,  :
    port 35082 cannot be opened
  Killing worker process (PID 6020) if still alive
  [20:40:23.133] Attempting to find a working pid_exists_*() function ...
  Call: tools::pskill(4798, signal = 0L)
  [1] TRUE
  Call: tools::pskill(4798, signal = 0L)
  [1] TRUE
  [20:40:23.134] - success
  [20:40:23.134] Attempting to find a working pid_exists_*() function ... done
  Worker (PID 6020) was successfully killed: TRUE
  Error in socketConnection("localhost", port = port, server = TRUE, blocking = TRUE,  : 
    Failed to launch and connect to R worker on local machine 'localhost' from local machine 'gimli2'.
   * The error produced by socketConnection() was: 'cannot open the connection'
   * In addition, socketConnection() produced 1 warning(s):
     - Warning #1: 'port 35082 cannot be opened' (which suggests that this port is either already occupied by another process or blocked by the firewall on your local machine)
   * The localhost socket connection that failed to connect to the R worker used port 35082 using a communication timeout of 120 seconds and a connection timeout of 120 seconds.
   * Worker launch call: '/home/hornik/tmp/R.check/r-devel-gcc/Work/build/bin/Rscript' --default-packages=datasets,utils,grDevices,graphics,stats,methods -e '#label=times.R:4798:gimli2:hornik' -e 'try(suppressWarnings(cat(Sys.getpid(),file="/home/hornik/tmp/scratch/RtmpFluXT2/future.parent=4798.12be246188c7.pid")), silent = TRUE)' -e 'parallel:::.slaveRSOCK()' MASTER=localhost PORT=35082 OUT=/dev/null TIMEOUT=120 XDR=TRUE.
   * Worker (PID 6020) was successfully killed: TRUE
   * Troubleshooting suggestions:
     - Suggestion #1: Set 'outfile=NULL' to see output from worker.
  Calls: plan ... tryCatchList -> tryCatchOne -> <Anonymous> -> <Anonymous>
  Execution halted