R Under development (unstable) (2025-12-11 r89152 ucrt) -- "Unsuffered Consequences" Copyright (C) 2025 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. > #! /usr/bin/env Rscript > ## This runs testme test script inst/testme/test-as.cluster.R > ## Don't edit - it was autogenerated by inst/testme/deploy.R > parallelly:::testme("as.cluster") Test 'as.cluster' ... > library(parallelly) > stopCluster <- parallel::stopCluster > useXDR <- isTRUE(parallelly:::getOption2("parallelly.makeNodePSOCK.useXDR")) > message("*** cluster operations ...") *** cluster operations ... > local({ + cl0 <- makeClusterPSOCK(1) + on.exit(stopCluster(cl0)) + cl <- cl0 + print(cl) + message("*** cluster operations - as. ..." ... [TRUNCATED] [06:47:01.613] [local output] makeClusterPSOCK() ... [06:47:01.676] | [local output] Workers: [n = 1] 'localhost' [06:47:01.686] | [local output] Base port: 36051 [06:47:01.686] | [local output] Getting setup options for 1 cluster nodes ... [06:47:01.687] | [local output] Node #1 of 1 ... [06:47:01.688] | [local output] localMachine=TRUE => revtunnel=FALSE [06:47:01.690] | Testing if worker's PID can be inferred: '"D:/RCompile/recent/R/bin/x64/Rscript" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/2025_12_12_06_35_17_6718/RtmpGEADcX/worker.rank=1.parallelly.parent=28772.706497240a9.pid\")),silent=TRUE)" -e "file.exists(\"D:/temp/2025_12_12_06_35_17_6718/RtmpGEADcX/worker.rank=1.parallelly.parent=28772.706497240a9.pid\")"' [06:47:02.142] | - Possible to infer worker's PID: TRUE [06:47:02.143] | [local output] Rscript port: 36051 [06:47:02.144] | [local output] Getting setup options for 1 cluster nodes ... done [06:47:02.145] | [local output] Parallel setup requested for some PSOCK nodes [06:47:02.146] | [local output] Setting up PSOCK nodes in parallel [06:47:02.146] | List of 36 [06:47:02.146] | $ worker : chr "localhost" [06:47:02.146] | ..- attr(*, "localhost")= logi TRUE [06:47:02.146] | $ master : chr "localhost" [06:47:02.146] | $ port : int 36051 [06:47:02.146] | $ connectTimeout : num 120 [06:47:02.146] | $ timeout : num 120 [06:47:02.146] | $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [06:47:02.146] | $ homogeneous : logi TRUE [06:47:02.146] | $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=test-as.cluster.R:28772:CRANWIN3"| __truncated__ [06:47:02.146] | $ rscript_envs : NULL [06:47:02.146] | $ rscript_libs : NULL [06:47:02.146] | $ rscript_startup : NULL [06:47:02.146] | $ rscript_sh : chr [1:2] "cmd" "cmd" [06:47:02.146] | $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [06:47:02.146] | $ methods : logi TRUE [06:47:02.146] | $ socketOptions : chr "no-delay" [06:47:02.146] | $ useXDR : logi FALSE [06:47:02.146] | $ outfile : chr "/dev/null" [06:47:02.146] | $ renice : int NA [06:47:02.146] | $ rshcmd : NULL [06:47:02.146] | $ user : chr(0) [06:47:02.146] | $ revtunnel : logi FALSE [06:47:02.146] | $ rshlogfile : NULL [06:47:02.146] | $ rshopts : chr(0) [06:47:02.146] | $ rank : int 1 [06:47:02.146] | $ manual : logi FALSE [06:47:02.146] | $ dryrun : logi FALSE [06:47:02.146] | $ quiet : logi FALSE [06:47:02.146] | $ setup_strategy : chr "parallel" [06:47:02.146] | $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [06:47:02.146] | $ pidfile : chr "D:/temp/2025_12_12_06_35_17_6718/RtmpGEADcX/worker.rank=1.parallelly.parent=28772.706497240a9.pid" [06:47:02.146] | $ rshcmd_label : NULL [06:47:02.146] | $ rsh_call : NULL [06:47:02.146] | $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [06:47:02.146] | $ localMachine : logi TRUE [06:47:02.146] | $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [06:47:02.146] | master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [06:47:02.146] | 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [06:47:02.146] | 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [06:47:02.146] | rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [06:47:02.146] | "cmd", "sh", "none"), default_packages = c("datasets", "utils", [06:47:02.146] | "grDevices", "graphics", "stats", if (methods) "methods"), methods = TRUE, [06:47:02.146] | socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [06:47:02.146] | "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [06:47:02.146] | FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [06:47:02.146] | NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [06:47:02.146] | NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [06:47:02.146] | setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [06:47:02.146] | "parallel"), calls = getOption2("parallelly.makeNodePSOCK.calls", [06:47:02.146] | FALSE), action = c("launch", "options"), verbose = FALSE) [06:47:02.146] | $ arguments :List of 29 [06:47:02.146] | ..$ worker : chr "localhost" [06:47:02.146] | ..$ master : NULL [06:47:02.146] | ..$ port : int 36051 [06:47:02.146] | ..$ connectTimeout : num 120 [06:47:02.146] | ..$ timeout : num 120 [06:47:02.146] | ..$ rscript : NULL [06:47:02.146] | ..$ homogeneous : NULL [06:47:02.146] | ..$ rscript_args : NULL [06:47:02.146] | ..$ rscript_envs : NULL [06:47:02.146] | ..$ rscript_libs : NULL [06:47:02.146] | ..$ rscript_startup : NULL [06:47:02.146] | ..$ rscript_sh : chr "auto" [06:47:02.146] | ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [06:47:02.146] | ..$ methods : logi TRUE [06:47:02.146] | ..$ socketOptions : chr "no-delay" [06:47:02.146] | ..$ useXDR : logi FALSE [06:47:02.146] | ..$ outfile : chr "/dev/null" [06:47:02.146] | ..$ renice : int NA [06:47:02.146] | ..$ rshcmd : NULL [06:47:02.146] | ..$ user : NULL [06:47:02.146] | ..$ revtunnel : logi NA [06:47:02.146] | ..$ rshlogfile : NULL [06:47:02.146] | ..$ rshopts : NULL [06:47:02.146] | ..$ rank : int 1 [06:47:02.146] | ..$ manual : logi FALSE [06:47:02.146] | ..$ dryrun : logi FALSE [06:47:02.146] | ..$ quiet : logi FALSE [06:47:02.146] | ..$ setup_strategy : chr "parallel" [06:47:02.146] | ..$ calls : logi FALSE [06:47:02.146] | - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [06:47:02.194] | [local output] System call to launch all workers: [06:47:02.195] | [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=test-as.cluster.R:28772:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/2025_12_12_06_35_17_6718/RtmpGEADcX/worker.rank=1.parallelly.parent=28772.706497240a9.pid\")),silent=TRUE)" -e "options(socketOptions=\"no-delay\")" -e "workRSOCK<-tryCatch(parallel:::.workRSOCK,error=function(e)parallel:::.slaveRSOCK);workRSOCK()" MASTER=localhost PORT=36051 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [06:47:02.195] | [local output] Starting PSOCK main server [06:47:02.214] | [local output] Workers launched [06:47:02.214] | [local output] Waiting for workers to connect back ... [06:47:02.215] | : [local output] 0 workers out of 1 ready [06:47:02.449] | : [local output] 0 workers out of 1 ready [06:47:02.450] | : [local output] 1 workers out of 1 ready [06:47:02.450] | [local output] Waiting for workers to connect back ... done [06:47:02.450] | [local output] Launching of 1 workers completed [06:47:02.451] | [local output] Number of nodes in cluster: 1 [06:47:02.451] | [local output] Collecting session information from 1 workers [06:47:02.453] | : [local output] Worker #1 of 1 [06:47:02.454] | [local output] Collecting session information from 1 workers [06:47:02.454] [local output] makeClusterPSOCK() ... done Socket cluster with 1 node on host 'localhost' (R Under development (unstable) (2025-12-11 r89152 ucrt), platform x86_64-w64-mingw32) *** cluster operations - as.cluster() ... Socket cluster with 1 node on host 'localhost' (R Under development (unstable) (2025-12-11 r89152 ucrt), platform x86_64-w64-mingw32) RichSOCKnode of a socket cluster on local host 'localhost' with pid 10444 (R Under development (unstable) (2025-12-11 r89152 ucrt), x86_64-w64-mingw32) using socket connection #4 ('<-CRANwin3.fb05.statistik.uni-dortmund.de:36051') RichSOCKnode of a socket cluster on local host 'localhost' with pid 10444 (R Under development (unstable) (2025-12-11 r89152 ucrt), x86_64-w64-mingw32) using socket connection #4 ('<-CRANwin3.fb05.statistik.uni-dortmund.de:36051') Socket cluster with 1 node on host 'localhost' (R Under development (unstable) (2025-12-11 r89152 ucrt), platform x86_64-w64-mingw32) Warning in c.cluster(init, x[[i]]) : The combined cluster contains 1 duplicated nodes Socket cluster with 2 nodes on host 'localhost' (R Under development (unstable) (2025-12-11 r89152 ucrt), platform x86_64-w64-mingw32) *** cluster operations - as.cluster() ... DONE *** cluster operations - c(...) ... [06:47:02.471] [local output] makeClusterPSOCK() ... [06:47:02.472] | [local output] Workers: [n = 1] 'localhost' [06:47:02.477] | [local output] Base port: 39064 [06:47:02.478] | [local output] Getting setup options for 1 cluster nodes ... [06:47:02.478] | [local output] Node #1 of 1 ... [06:47:02.479] | [local output] localMachine=TRUE => revtunnel=FALSE [06:47:02.482] | [local output] Rscript port: 39064 [06:47:02.483] | [local output] Getting setup options for 1 cluster nodes ... done [06:47:02.483] | [local output] Parallel setup requested for some PSOCK nodes [06:47:02.484] | [local output] Setting up PSOCK nodes in parallel [06:47:02.484] | List of 36 [06:47:02.484] | $ worker : chr "localhost" [06:47:02.484] | ..- attr(*, "localhost")= logi TRUE [06:47:02.484] | $ master : chr "localhost" [06:47:02.484] | $ port : int 39064 [06:47:02.484] | $ connectTimeout : num 120 [06:47:02.484] | $ timeout : num 120 [06:47:02.484] | $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [06:47:02.484] | $ homogeneous : logi TRUE [06:47:02.484] | $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=test-as.cluster.R:28772:CRANWIN3"| __truncated__ [06:47:02.484] | $ rscript_envs : NULL [06:47:02.484] | $ rscript_libs : NULL [06:47:02.484] | $ rscript_startup : NULL [06:47:02.484] | $ rscript_sh : chr [1:2] "cmd" "cmd" [06:47:02.484] | $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [06:47:02.484] | $ methods : logi TRUE [06:47:02.484] | $ socketOptions : chr "no-delay" [06:47:02.484] | $ useXDR : logi FALSE [06:47:02.484] | $ outfile : chr "/dev/null" [06:47:02.484] | $ renice : int NA [06:47:02.484] | $ rshcmd : NULL [06:47:02.484] | $ user : chr(0) [06:47:02.484] | $ revtunnel : logi FALSE [06:47:02.484] | $ rshlogfile : NULL [06:47:02.484] | $ rshopts : chr(0) [06:47:02.484] | $ rank : int 1 [06:47:02.484] | $ manual : logi FALSE [06:47:02.484] | $ dryrun : logi FALSE [06:47:02.484] | $ quiet : logi FALSE [06:47:02.484] | $ setup_strategy : chr "parallel" [06:47:02.484] | $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [06:47:02.484] | $ pidfile : chr "D:/temp/2025_12_12_06_35_17_6718/RtmpGEADcX/worker.rank=1.parallelly.parent=28772.70641fb636cb.pid" [06:47:02.484] | $ rshcmd_label : NULL [06:47:02.484] | $ rsh_call : NULL [06:47:02.484] | $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [06:47:02.484] | $ localMachine : logi TRUE [06:47:02.484] | $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [06:47:02.484] | master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [06:47:02.484] | 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [06:47:02.484] | 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [06:47:02.484] | rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [06:47:02.484] | "cmd", "sh", "none"), default_packages = c("datasets", "utils", [06:47:02.484] | "grDevices", "graphics", "stats", if (methods) "methods"), methods = TRUE, [06:47:02.484] | socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [06:47:02.484] | "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [06:47:02.484] | FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [06:47:02.484] | NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [06:47:02.484] | NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [06:47:02.484] | setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [06:47:02.484] | "parallel"), calls = getOption2("parallelly.makeNodePSOCK.calls", [06:47:02.484] | FALSE), action = c("launch", "options"), verbose = FALSE) [06:47:02.484] | $ arguments :List of 29 [06:47:02.484] | ..$ worker : chr "localhost" [06:47:02.484] | ..$ master : NULL [06:47:02.484] | ..$ port : int 39064 [06:47:02.484] | ..$ connectTimeout : num 120 [06:47:02.484] | ..$ timeout : num 120 [06:47:02.484] | ..$ rscript : NULL [06:47:02.484] | ..$ homogeneous : NULL [06:47:02.484] | ..$ rscript_args : NULL [06:47:02.484] | ..$ rscript_envs : NULL [06:47:02.484] | ..$ rscript_libs : NULL [06:47:02.484] | ..$ rscript_startup : NULL [06:47:02.484] | ..$ rscript_sh : chr "auto" [06:47:02.484] | ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [06:47:02.484] | ..$ methods : logi TRUE [06:47:02.484] | ..$ socketOptions : chr "no-delay" [06:47:02.484] | ..$ useXDR : logi FALSE [06:47:02.484] | ..$ outfile : chr "/dev/null" [06:47:02.484] | ..$ renice : int NA [06:47:02.484] | ..$ rshcmd : NULL [06:47:02.484] | ..$ user : NULL [06:47:02.484] | ..$ revtunnel : logi NA [06:47:02.484] | ..$ rshlogfile : NULL [06:47:02.484] | ..$ rshopts : NULL [06:47:02.484] | ..$ rank : int 1 [06:47:02.484] | ..$ manual : logi FALSE [06:47:02.484] | ..$ dryrun : logi FALSE [06:47:02.484] | ..$ quiet : logi FALSE [06:47:02.484] | ..$ setup_strategy : chr "parallel" [06:47:02.484] | ..$ calls : logi FALSE [06:47:02.484] | - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [06:47:02.535] | [local output] System call to launch all workers: [06:47:02.535] | [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=test-as.cluster.R:28772:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/2025_12_12_06_35_17_6718/RtmpGEADcX/worker.rank=1.parallelly.parent=28772.70641fb636cb.pid\")),silent=TRUE)" -e "options(socketOptions=\"no-delay\")" -e "workRSOCK<-tryCatch(parallel:::.workRSOCK,error=function(e)parallel:::.slaveRSOCK);workRSOCK()" MASTER=localhost PORT=39064 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [06:47:02.536] | [local output] Starting PSOCK main server [06:47:02.542] | [local output] Workers launched [06:47:02.542] | [local output] Waiting for workers to connect back ... [06:47:02.543] | : [local output] 0 workers out of 1 ready [06:47:02.769] | : [local output] 0 workers out of 1 ready [06:47:02.770] | : [local output] 1 workers out of 1 ready [06:47:02.770] | [local output] Waiting for workers to connect back ... done [06:47:02.770] | [local output] Launching of 1 workers completed [06:47:02.770] | [local output] Number of nodes in cluster: 1 [06:47:02.771] | [local output] Collecting session information from 1 workers [06:47:02.772] | : [local output] Worker #1 of 1 [06:47:02.772] | [local output] Collecting session information from 1 workers [06:47:02.773] [local output] makeClusterPSOCK() ... done Socket cluster with 1 node on host 'localhost' (R Under development (unstable) (2025-12-11 r89152 ucrt), platform x86_64-w64-mingw32) Socket cluster with 2 nodes on host 'localhost' (R Under development (unstable) (2025-12-11 r89152 ucrt), platform x86_64-w64-mingw32) *** cluster operations - c(...) ... DONE > message("*** cluster operations - makeClusterPSOCK(remotes) ...") *** cluster operations - makeClusterPSOCK(remotes) ... > remotes <- Sys.getenv("R_PARALLELLY_TESTS_REMOTES", + "") > remotes <- gsub(" ", "", unlist(strsplit(remotes, + split = ","))) > remotes <- remotes[nzchar(remotes)] > if (length(remotes) > 0) { + message("Remotes: ", paste(sQuote(remotes), collapse = ", ")) + local({ + cl <- makeClusterPSOCK(remote .... [TRUNCATED] > message("*** cluster operations - makeClusterPSOCK(remotes) ... DONE") *** cluster operations - makeClusterPSOCK(remotes) ... DONE > message("*** cluster operations ... DONE") *** cluster operations ... DONE > message("*** cluster operations - as.cluster() ...") *** cluster operations - as.cluster() ... > res <- tryCatch({ + as.cluster(1) + }, error = function(ex) ex) > stopifnot(inherits(res, "error")) > message("*** cluster operations - as.cluster() ... DONE") *** cluster operations - as.cluster() ... DONE > message("*** cluster operations - c(...) with duplicated nodes ...") *** cluster operations - c(...) with duplicated nodes ... > cl_dup1 <- makeClusterPSOCK(1) [06:47:02.791] [local output] makeClusterPSOCK() ... [06:47:02.795] | [local output] Workers: [n = 1] 'localhost' [06:47:02.799] | [local output] Base port: 36987 [06:47:02.800] | [local output] Getting setup options for 1 cluster nodes ... [06:47:02.800] | [local output] Node #1 of 1 ... [06:47:02.801] | [local output] localMachine=TRUE => revtunnel=FALSE [06:47:02.803] | [local output] Rscript port: 36987 [06:47:02.804] | [local output] Getting setup options for 1 cluster nodes ... done [06:47:02.804] | [local output] Parallel setup requested for some PSOCK nodes [06:47:02.805] | [local output] Setting up PSOCK nodes in parallel [06:47:02.805] | List of 36 [06:47:02.805] | $ worker : chr "localhost" [06:47:02.805] | ..- attr(*, "localhost")= logi TRUE [06:47:02.805] | $ master : chr "localhost" [06:47:02.805] | $ port : int 36987 [06:47:02.805] | $ connectTimeout : num 120 [06:47:02.805] | $ timeout : num 120 [06:47:02.805] | $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [06:47:02.805] | $ homogeneous : logi TRUE [06:47:02.805] | $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=test-as.cluster.R:28772:CRANWIN3"| __truncated__ [06:47:02.805] | $ rscript_envs : NULL [06:47:02.805] | $ rscript_libs : NULL [06:47:02.805] | $ rscript_startup : NULL [06:47:02.805] | $ rscript_sh : chr [1:2] "cmd" "cmd" [06:47:02.805] | $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [06:47:02.805] | $ methods : logi TRUE [06:47:02.805] | $ socketOptions : chr "no-delay" [06:47:02.805] | $ useXDR : logi FALSE [06:47:02.805] | $ outfile : chr "/dev/null" [06:47:02.805] | $ renice : int NA [06:47:02.805] | $ rshcmd : NULL [06:47:02.805] | $ user : chr(0) [06:47:02.805] | $ revtunnel : logi FALSE [06:47:02.805] | $ rshlogfile : NULL [06:47:02.805] | $ rshopts : chr(0) [06:47:02.805] | $ rank : int 1 [06:47:02.805] | $ manual : logi FALSE [06:47:02.805] | $ dryrun : logi FALSE [06:47:02.805] | $ quiet : logi FALSE [06:47:02.805] | $ setup_strategy : chr "parallel" [06:47:02.805] | $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [06:47:02.805] | $ pidfile : chr "D:/temp/2025_12_12_06_35_17_6718/RtmpGEADcX/worker.rank=1.parallelly.parent=28772.7064506c54d2.pid" [06:47:02.805] | $ rshcmd_label : NULL [06:47:02.805] | $ rsh_call : NULL [06:47:02.805] | $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [06:47:02.805] | $ localMachine : logi TRUE [06:47:02.805] | $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [06:47:02.805] | master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [06:47:02.805] | 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [06:47:02.805] | 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [06:47:02.805] | rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [06:47:02.805] | "cmd", "sh", "none"), default_packages = c("datasets", "utils", [06:47:02.805] | "grDevices", "graphics", "stats", if (methods) "methods"), methods = TRUE, [06:47:02.805] | socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [06:47:02.805] | "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [06:47:02.805] | FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [06:47:02.805] | NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [06:47:02.805] | NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [06:47:02.805] | setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [06:47:02.805] | "parallel"), calls = getOption2("parallelly.makeNodePSOCK.calls", [06:47:02.805] | FALSE), action = c("launch", "options"), verbose = FALSE) [06:47:02.805] | $ arguments :List of 29 [06:47:02.805] | ..$ worker : chr "localhost" [06:47:02.805] | ..$ master : NULL [06:47:02.805] | ..$ port : int 36987 [06:47:02.805] | ..$ connectTimeout : num 120 [06:47:02.805] | ..$ timeout : num 120 [06:47:02.805] | ..$ rscript : NULL [06:47:02.805] | ..$ homogeneous : NULL [06:47:02.805] | ..$ rscript_args : NULL [06:47:02.805] | ..$ rscript_envs : NULL [06:47:02.805] | ..$ rscript_libs : NULL [06:47:02.805] | ..$ rscript_startup : NULL [06:47:02.805] | ..$ rscript_sh : chr "auto" [06:47:02.805] | ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [06:47:02.805] | ..$ methods : logi TRUE [06:47:02.805] | ..$ socketOptions : chr "no-delay" [06:47:02.805] | ..$ useXDR : logi FALSE [06:47:02.805] | ..$ outfile : chr "/dev/null" [06:47:02.805] | ..$ renice : int NA [06:47:02.805] | ..$ rshcmd : NULL [06:47:02.805] | ..$ user : NULL [06:47:02.805] | ..$ revtunnel : logi NA [06:47:02.805] | ..$ rshlogfile : NULL [06:47:02.805] | ..$ rshopts : NULL [06:47:02.805] | ..$ rank : int 1 [06:47:02.805] | ..$ manual : logi FALSE [06:47:02.805] | ..$ dryrun : logi FALSE [06:47:02.805] | ..$ quiet : logi FALSE [06:47:02.805] | ..$ setup_strategy : chr "parallel" [06:47:02.805] | ..$ calls : logi FALSE [06:47:02.805] | - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [06:47:02.842] | [local output] System call to launch all workers: [06:47:02.843] | [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=test-as.cluster.R:28772:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/2025_12_12_06_35_17_6718/RtmpGEADcX/worker.rank=1.parallelly.parent=28772.7064506c54d2.pid\")),silent=TRUE)" -e "options(socketOptions=\"no-delay\")" -e "workRSOCK<-tryCatch(parallel:::.workRSOCK,error=function(e)parallel:::.slaveRSOCK);workRSOCK()" MASTER=localhost PORT=36987 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [06:47:02.843] | [local output] Starting PSOCK main server [06:47:02.849] | [local output] Workers launched [06:47:02.849] | [local output] Waiting for workers to connect back ... [06:47:02.849] | : [local output] 0 workers out of 1 ready [06:47:03.098] | : [local output] 0 workers out of 1 ready [06:47:03.099] | : [local output] 1 workers out of 1 ready [06:47:03.099] | [local output] Waiting for workers to connect back ... done [06:47:03.100] | [local output] Launching of 1 workers completed [06:47:03.100] | [local output] Number of nodes in cluster: 1 [06:47:03.100] | [local output] Collecting session information from 1 workers [06:47:03.102] | : [local output] Worker #1 of 1 [06:47:03.102] | [local output] Collecting session information from 1 workers [06:47:03.102] [local output] makeClusterPSOCK() ... done > on.exit(stopCluster(cl_dup1), add = TRUE) > cl_combined <- c(cl_dup1, cl_dup1) Warning in c.cluster(cl_dup1, cl_dup1) : The combined cluster contains 1 duplicated nodes > stopifnot(inherits(cl_combined, "cluster"), length(cl_combined) == + 2) > message("*** cluster operations - c(...) with duplicated nodes ... DONE") *** cluster operations - c(...) with duplicated nodes ... DONE > message("*** cluster operations - as.cluster(SOCKnode) ...") *** cluster operations - as.cluster(SOCKnode) ... > cl_base <- parallel::makeCluster(1, type = "PSOCK") > node_base <- cl_base[[1]] > res_base <- as.cluster(node_base) > stopifnot(inherits(res_base, "cluster"), inherits(res_base[[1]], + "SOCKnode")) > parallel::stopCluster(cl_base) > message("*** cluster operations - as.cluster(SOCKnode) ... DONE") *** cluster operations - as.cluster(SOCKnode) ... DONE Failed to undo environment variables: - Expected environment variables: [n=215] '!ExitCode', 'ALLUSERSPROFILE', 'APPDATA', 'BIBINPUTS', 'BINDIR', 'BSTINPUTS', 'COMMONPROGRAMFILES', 'COMPUTERNAME', 'COMSPEC', 'CURL_CA_BUNDLE', 'CV_Instance001', 'CYGWIN', 'CommonProgramFiles(x86)', 'CommonProgramW6432', 'DriverData', 'HOME', 'HOMEDRIVE', 'HOMEPATH', 'JAGS_ROOT', 'JAVA_HOME', 'LANGUAGE', 'LC_COLLATE', 'LC_MONETARY', 'LC_TIME', 'LOCALAPPDATA', 'LOGONSERVER', 'LS_HOME', 'LS_LICENSE_PATH', 'MAKE', 'MAKEFLAGS', 'MAKELEVEL', 'MFLAGS', 'MSMPI_BENCHMARKS', 'MSMPI_BIN', 'MSYS2_ENV_CONV_EXCL', 'NUMBER_OF_PROCESSORS', 'OCL', 'OMP_THREAD_LIMIT', 'OS', 'PATH', 'PATHEXT', 'PROCESSOR_ARCHITECTURE', 'PROCESSOR_IDENTIFIER', 'PROCESSOR_LEVEL', 'PROCESSOR_REVISION', 'PROGRAMFILES', 'PROMPT', 'PSModulePath', 'PUBLIC', 'PWD', 'ProgramData', 'ProgramFiles(x86)', 'ProgramW6432', 'RTOOLS44_HOME', 'RTOOLS45_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_RTOOLS45_PATH', 'R_SCRIPT_LEGACY', 'R_SHARE_DIR', 'R_TESTME_NAME', 'R_TESTME_PACKAGE', 'R_TESTME_PATH', 'R_TESTS', 'R_UNZIPCMD', 'R_USER', 'R_VERSION', 'R_ZIPCMD', 'SED', 'SHLVL', 'SYSTEMDRIVE', 'SYSTEMROOT', 'TAR', 'TAR_OPTIONS', 'TEMP', 'TERM', 'TETRAD_DIR', '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_ASPELL_RECHECK_MAYBE_', '_R_CHECK_CRAN_INCOMING_ASPELL_RECHECK_START_', '_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_LOG_USE_INFO_', '_R_CHECK_MATRIX_DATA_', '_R_CHECK_MBCS_CONVERSION_FAILURE_', '_R_CHECK_NATIVE_ROUTINE_REGISTRATION_', '_R_CHECK_NEWS_IN_PLAIN_TEXT_', '_R_CHECK_NO_RECOMMENDED_', '_R_CHECK_NO_STOP_ON_TEST_ERROR_', '_R_CHECK_ORPHANED_', '_R_CHECK_OVERWRITE_REGISTERED_S3_METHODS_', '_R_CHECK_PACKAGES_USED_IGNORE_UNUSED_IMPORTS_', '_R_CHECK_PACKAGES_USED_IN_TESTS_USE_SUBDIRS_', '_R_CHECK_PACKAGE_DATASETS_SUPPRESS_NOTES_', '_R_CHECK_PACKAGE_NAME_', '_R_CHECK_PKG_SIZES_', '_R_CHECK_PKG_SIZES_THRESHOLD_', '_R_CHECK_PRAGMAS_', '_R_CHECK_RD_EXAMPLES_T_AND_F_', '_R_CHECK_RD_LINE_WIDTHS_', '_R_CHECK_RD_MATH_RENDERING_', '_R_CHECK_RD_NOTE_LOST_BRACES_', '_R_CHECK_RD_VALIDATE_RD2HTML_', '_R_CHECK_REPLACING_IMPORTS_', '_R_CHECK_R_DEPENDS_', '_R_CHECK_S3_METHODS_SHOW_POSSIBLE_ISSUES_', '_R_CHECK_SCREEN_DEVICE_', '_R_CHECK_SERIALIZATION_', '_R_CHECK_SHLIB_OPENMP_FLAGS_', '_R_CHECK_SRC_MINUS_W_IMPLICIT_', '_R_CHECK_SUBDIRS_NOCASE_', '_R_CHECK_SUGGESTS_ONLY_', '_R_CHECK_SYSTEM_CLOCK_', '_R_CHECK_TESTS_NLINES_', '_R_CHECK_TEST_TIMING_', '_R_CHECK_TIMINGS_', '_R_CHECK_TOPLEVEL_FILES_', '_R_CHECK_UNDOC_USE_ALL_NAMES_', '_R_CHECK_UNSAFE_CALLS_', '_R_CHECK_URLS_SHOW_301_STATUS_', '_R_CHECK_VC_DIRS_', '_R_CHECK_VIGNETTES_NLINES_', '_R_CHECK_VIGNETTES_SKIP_RUN_MAYBE_', '_R_CHECK_VIGNETTE_TIMING_', '_R_CHECK_VIGNETTE_TITLES_', '_R_CHECK_WINDOWS_DEVICE_', '_R_CHECK_XREFS_NOTE_MISSING_PACKAGE_ANCHORS_', '_R_CHECK_XREFS_USE_ALIASES_FROM_CRAN_', '_R_CLASS_MATRIX_ARRAY_', '_R_DEPRECATED_IS_R_', '_R_S3_METHOD_LOOKUP_BASEENV_AFTER_GLOBALENV_', '_R_SHLIB_BUILD_OBJECTS_SYMBOL_TABLES_', '_R_USE_STRICT_R_HEADERS_', '__R_CHECK_DOC_FILES_NOTE_IF_ALL_INTERNAL__', 'maj.version', 'nextArg--timingsnextArg--install', 'tempdirname' - Environment variables still there: [n=0] - Environment variables missing: [n=1] 'MAKEFLAGS' Differences environment variable by environment variable: Test time: user.self=0.5s, sys.self=0.01s, elapsed=2s, user.child=NAs, sys.child=NAs Test 'tempdirname' ... success > > proc.time() user system elapsed 0.82 0.07 2.34