R Under development (unstable) (2024-12-02 r87417 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > source("incl/start.R") > stopCluster <- parallel::stopCluster > > message("*** cluster operations ...") *** cluster operations ... > > local({ + cl0 <- makeClusterPSOCK(1L) + on.exit(stopCluster(cl0)) + cl <- cl0 + print(cl) + + message("*** cluster operations - as.cluster() ...") + cl1 <- as.cluster(cl) + print(cl1) + stopifnot(inherits(cl1, "cluster"), identical(cl1, cl)) + + node <- cl[[1]] + print(node) + cl2 <- as.cluster(node) + stopifnot(inherits(cl2, "cluster"), length(cl2) == 1L, + identical(cl2[[1]], node)) + + node <- cl[[1]] + print(node) + stopifnot(inherits(node, if (useXDR) "SOCKnode" else "SOCK0node")) + nodes <- list(node, node) + cl3 <- as.cluster(node) + print(cl3) + stopifnot(inherits(cl3, "cluster"), length(cl3) == 1L, + identical(cl3[[1]], node)) + + cl4 <- as.cluster(nodes) + print(cl4) + stopifnot(inherits(cl4, "cluster"), length(cl4) == 2L, + identical(cl4[[1]], node), identical(cl4[[2]], node)) + + message("*** cluster operations - as.cluster() ... DONE") + + message("*** cluster operations - c(...) ...") + cl2 <- makeClusterPSOCK("localhost") + on.exit(stopCluster(cl2), add = TRUE) + print(cl2) + + cl <- c(cl1, cl2) + print(cl) + + stopifnot(inherits(cl, "cluster"), length(cl) == 2L) + stopifnot(identical(cl[1], cl1), + identical(cl[2], cl2[1])) + message("*** cluster operations - c(...) ... DONE") + }) [05:01:28.783] [local output] makeClusterPSOCK() ... [05:01:28.848] [local output] Workers: [n = 1] 'localhost' [05:01:28.859] [local output] Base port: 28919 [05:01:28.860] [local output] Getting setup options for 1 cluster nodes ... [05:01:28.860] [local output] - Node #1 of 1 ... [05:01:28.861] [local output] localMachine=TRUE => revtunnel=FALSE [05:01:28.863] Testing if worker's PID can be inferred: '"D:/RCompile/recent/R/bin/x64/Rscript" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/2024_12_03_04_25_01_4301/RtmpuM44U9/worker.rank=1.parallelly.parent=200872.310a8770f6706.pid\")), silent = TRUE)" -e "file.exists(\"D:/temp/2024_12_03_04_25_01_4301/RtmpuM44U9/worker.rank=1.parallelly.parent=200872.310a8770f6706.pid\")"' [05:01:29.420] - Possible to infer worker's PID: TRUE [05:01:29.421] [local output] Rscript port: 28919 [05:01:29.422] [local output] Getting setup options for 1 cluster nodes ... done [05:01:29.422] [local output] - Parallel setup requested for some PSOCK nodes [05:01:29.424] [local output] Setting up PSOCK nodes in parallel [05:01:29.424] List of 36 [05:01:29.424] $ worker : chr "localhost" [05:01:29.424] ..- attr(*, "localhost")= logi TRUE [05:01:29.424] $ master : chr "localhost" [05:01:29.424] $ port : int 28919 [05:01:29.424] $ connectTimeout : num 120 [05:01:29.424] $ timeout : num 120 [05:01:29.424] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [05:01:29.424] $ homogeneous : logi TRUE [05:01:29.424] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=as.cluster.R:200872:CRANWIN3:CRA"| __truncated__ [05:01:29.424] $ rscript_envs : NULL [05:01:29.424] $ rscript_libs : NULL [05:01:29.424] $ rscript_startup : NULL [05:01:29.424] $ rscript_sh : chr [1:2] "cmd" "cmd" [05:01:29.424] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [05:01:29.424] $ methods : logi TRUE [05:01:29.424] $ socketOptions : chr "no-delay" [05:01:29.424] $ useXDR : logi FALSE [05:01:29.424] $ outfile : chr "/dev/null" [05:01:29.424] $ renice : int NA [05:01:29.424] $ rshcmd : NULL [05:01:29.424] $ user : chr(0) [05:01:29.424] $ revtunnel : logi FALSE [05:01:29.424] $ rshlogfile : NULL [05:01:29.424] $ rshopts : chr(0) [05:01:29.424] $ rank : int 1 [05:01:29.424] $ manual : logi FALSE [05:01:29.424] $ dryrun : logi FALSE [05:01:29.424] $ quiet : logi FALSE [05:01:29.424] $ setup_strategy : chr "parallel" [05:01:29.424] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [05:01:29.424] $ pidfile : chr "D:/temp/2024_12_03_04_25_01_4301/RtmpuM44U9/worker.rank=1.parallelly.parent=200872.310a8770f6706.pid" [05:01:29.424] $ rshcmd_label : NULL [05:01:29.424] $ rsh_call : NULL [05:01:29.424] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [05:01:29.424] $ localMachine : logi TRUE [05:01:29.424] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [05:01:29.424] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [05:01:29.424] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [05:01:29.424] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [05:01:29.424] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [05:01:29.424] "cmd", "sh", "none"), default_packages = c("datasets", "utils", [05:01:29.424] "grDevices", "graphics", "stats", if (methods) "methods"), methods = TRUE, [05:01:29.424] socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [05:01:29.424] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [05:01:29.424] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [05:01:29.424] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [05:01:29.424] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [05:01:29.424] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [05:01:29.424] "parallel"), action = c("launch", "options"), verbose = FALSE) [05:01:29.424] $ arguments :List of 28 [05:01:29.424] ..$ worker : chr "localhost" [05:01:29.424] ..$ master : NULL [05:01:29.424] ..$ port : int 28919 [05:01:29.424] ..$ connectTimeout : num 120 [05:01:29.424] ..$ timeout : num 120 [05:01:29.424] ..$ rscript : NULL [05:01:29.424] ..$ homogeneous : NULL [05:01:29.424] ..$ rscript_args : NULL [05:01:29.424] ..$ rscript_envs : NULL [05:01:29.424] ..$ rscript_libs : NULL [05:01:29.424] ..$ rscript_startup : NULL [05:01:29.424] ..$ rscript_sh : chr "auto" [05:01:29.424] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [05:01:29.424] ..$ methods : logi TRUE [05:01:29.424] ..$ socketOptions : chr "no-delay" [05:01:29.424] ..$ useXDR : logi FALSE [05:01:29.424] ..$ outfile : chr "/dev/null" [05:01:29.424] ..$ renice : int NA [05:01:29.424] ..$ rshcmd : NULL [05:01:29.424] ..$ user : NULL [05:01:29.424] ..$ revtunnel : logi NA [05:01:29.424] ..$ rshlogfile : NULL [05:01:29.424] ..$ rshopts : NULL [05:01:29.424] ..$ rank : int 1 [05:01:29.424] ..$ manual : logi FALSE [05:01:29.424] ..$ dryrun : logi FALSE [05:01:29.424] ..$ quiet : logi FALSE [05:01:29.424] ..$ setup_strategy : chr "parallel" [05:01:29.424] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [05:01:29.463] [local output] System call to launch all workers: [05:01:29.464] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=as.cluster.R:200872:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/2024_12_03_04_25_01_4301/RtmpuM44U9/worker.rank=1.parallelly.parent=200872.310a8770f6706.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=28919 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [05:01:29.464] [local output] Starting PSOCK main server [05:01:29.471] [local output] Workers launched [05:01:29.471] [local output] Waiting for workers to connect back [05:01:29.472] - [local output] 0 workers out of 1 ready [05:01:29.724] - [local output] 0 workers out of 1 ready [05:01:29.724] - [local output] 1 workers out of 1 ready [05:01:29.725] [local output] Launching of 1 workers completed [05:01:29.725] [local output] Number of nodes in cluster: 1 [05:01:29.725] [local output] Collecting session information from 1 workers [05:01:29.727] [local output] - Worker #1 of 1 [05:01:29.727] [local output] makeClusterPSOCK() ... done Socket cluster with 1 nodes where 1 node is on host 'localhost' (R Under development (unstable) (2024-12-02 r87417 ucrt), platform x86_64-w64-mingw32) *** cluster operations - as.cluster() ... Socket cluster with 1 nodes where 1 node is on host 'localhost' (R Under development (unstable) (2024-12-02 r87417 ucrt), platform x86_64-w64-mingw32) RichSOCKnode of a socket cluster on local host 'localhost' with pid 45556 (R Under development (unstable) (2024-12-02 r87417 ucrt), x86_64-w64-mingw32) using socket connection #4 ('<-CRANwin3.fb05.statistik.uni-dortmund.de:28919') RichSOCKnode of a socket cluster on local host 'localhost' with pid 45556 (R Under development (unstable) (2024-12-02 r87417 ucrt), x86_64-w64-mingw32) using socket connection #4 ('<-CRANwin3.fb05.statistik.uni-dortmund.de:28919') Socket cluster with 1 nodes where 1 node is on host 'localhost' (R Under development (unstable) (2024-12-02 r87417 ucrt), platform x86_64-w64-mingw32) Warning: The combined cluster contains 1 duplicated nodes Socket cluster with 2 nodes where 2 nodes are on host 'localhost' (R Under development (unstable) (2024-12-02 r87417 ucrt), platform x86_64-w64-mingw32) *** cluster operations - as.cluster() ... DONE *** cluster operations - c(...) ... [05:01:29.744] [local output] makeClusterPSOCK() ... [05:01:29.744] [local output] Workers: [n = 1] 'localhost' [05:01:29.749] [local output] Base port: 37417 [05:01:29.749] [local output] Getting setup options for 1 cluster nodes ... [05:01:29.750] [local output] - Node #1 of 1 ... [05:01:29.751] [local output] localMachine=TRUE => revtunnel=FALSE [05:01:29.754] [local output] Rscript port: 37417 [05:01:29.754] [local output] Getting setup options for 1 cluster nodes ... done [05:01:29.755] [local output] - Parallel setup requested for some PSOCK nodes [05:01:29.756] [local output] Setting up PSOCK nodes in parallel [05:01:29.756] List of 36 [05:01:29.756] $ worker : chr "localhost" [05:01:29.756] ..- attr(*, "localhost")= logi TRUE [05:01:29.756] $ master : chr "localhost" [05:01:29.756] $ port : int 37417 [05:01:29.756] $ connectTimeout : num 120 [05:01:29.756] $ timeout : num 120 [05:01:29.756] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [05:01:29.756] $ homogeneous : logi TRUE [05:01:29.756] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=as.cluster.R:200872:CRANWIN3:CRA"| __truncated__ [05:01:29.756] $ rscript_envs : NULL [05:01:29.756] $ rscript_libs : NULL [05:01:29.756] $ rscript_startup : NULL [05:01:29.756] $ rscript_sh : chr [1:2] "cmd" "cmd" [05:01:29.756] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [05:01:29.756] $ methods : logi TRUE [05:01:29.756] $ socketOptions : chr "no-delay" [05:01:29.756] $ useXDR : logi FALSE [05:01:29.756] $ outfile : chr "/dev/null" [05:01:29.756] $ renice : int NA [05:01:29.756] $ rshcmd : NULL [05:01:29.756] $ user : chr(0) [05:01:29.756] $ revtunnel : logi FALSE [05:01:29.756] $ rshlogfile : NULL [05:01:29.756] $ rshopts : chr(0) [05:01:29.756] $ rank : int 1 [05:01:29.756] $ manual : logi FALSE [05:01:29.756] $ dryrun : logi FALSE [05:01:29.756] $ quiet : logi FALSE [05:01:29.756] $ setup_strategy : chr "parallel" [05:01:29.756] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [05:01:29.756] $ pidfile : chr "D:/temp/2024_12_03_04_25_01_4301/RtmpuM44U9/worker.rank=1.parallelly.parent=200872.310a82ed823c0.pid" [05:01:29.756] $ rshcmd_label : NULL [05:01:29.756] $ rsh_call : NULL [05:01:29.756] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [05:01:29.756] $ localMachine : logi TRUE [05:01:29.756] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [05:01:29.756] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [05:01:29.756] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [05:01:29.756] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [05:01:29.756] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [05:01:29.756] "cmd", "sh", "none"), default_packages = c("datasets", "utils", [05:01:29.756] "grDevices", "graphics", "stats", if (methods) "methods"), methods = TRUE, [05:01:29.756] socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [05:01:29.756] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [05:01:29.756] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [05:01:29.756] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [05:01:29.756] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [05:01:29.756] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [05:01:29.756] "parallel"), action = c("launch", "options"), verbose = FALSE) [05:01:29.756] $ arguments :List of 28 [05:01:29.756] ..$ worker : chr "localhost" [05:01:29.756] ..$ master : NULL [05:01:29.756] ..$ port : int 37417 [05:01:29.756] ..$ connectTimeout : num 120 [05:01:29.756] ..$ timeout : num 120 [05:01:29.756] ..$ rscript : NULL [05:01:29.756] ..$ homogeneous : NULL [05:01:29.756] ..$ rscript_args : NULL [05:01:29.756] ..$ rscript_envs : NULL [05:01:29.756] ..$ rscript_libs : NULL [05:01:29.756] ..$ rscript_startup : NULL [05:01:29.756] ..$ rscript_sh : chr "auto" [05:01:29.756] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [05:01:29.756] ..$ methods : logi TRUE [05:01:29.756] ..$ socketOptions : chr "no-delay" [05:01:29.756] ..$ useXDR : logi FALSE [05:01:29.756] ..$ outfile : chr "/dev/null" [05:01:29.756] ..$ renice : int NA [05:01:29.756] ..$ rshcmd : NULL [05:01:29.756] ..$ user : NULL [05:01:29.756] ..$ revtunnel : logi NA [05:01:29.756] ..$ rshlogfile : NULL [05:01:29.756] ..$ rshopts : NULL [05:01:29.756] ..$ rank : int 1 [05:01:29.756] ..$ manual : logi FALSE [05:01:29.756] ..$ dryrun : logi FALSE [05:01:29.756] ..$ quiet : logi FALSE [05:01:29.756] ..$ setup_strategy : chr "parallel" [05:01:29.756] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [05:01:29.797] [local output] System call to launch all workers: [05:01:29.797] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=as.cluster.R:200872:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/2024_12_03_04_25_01_4301/RtmpuM44U9/worker.rank=1.parallelly.parent=200872.310a82ed823c0.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=37417 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [05:01:29.797] [local output] Starting PSOCK main server [05:01:29.803] [local output] Workers launched [05:01:29.803] [local output] Waiting for workers to connect back [05:01:29.803] - [local output] 0 workers out of 1 ready [05:01:30.095] - [local output] 0 workers out of 1 ready [05:01:30.095] - [local output] 1 workers out of 1 ready [05:01:30.096] [local output] Launching of 1 workers completed [05:01:30.096] [local output] Number of nodes in cluster: 1 [05:01:30.096] [local output] Collecting session information from 1 workers [05:01:30.098] [local output] - Worker #1 of 1 [05:01:30.098] [local output] makeClusterPSOCK() ... done Socket cluster with 1 nodes where 1 node is on host 'localhost' (R Under development (unstable) (2024-12-02 r87417 ucrt), platform x86_64-w64-mingw32) Socket cluster with 2 nodes where 2 nodes are on host 'localhost' (R Under development (unstable) (2024-12-02 r87417 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(remotes, verbose = TRUE) + on.exit(stopCluster(cl)) + print(cl) + }) + } > > message("*** cluster operations - makeClusterPSOCK(remotes) ... DONE") *** cluster operations - makeClusterPSOCK(remotes) ... DONE > > message("*** cluster operations ... DONE") *** cluster operations ... DONE > > source("incl/end.R") > > proc.time() user system elapsed 0.43 0.12 1.67