R Under development (unstable) (2024-07-26 r86926 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") + }) [12:31:16.060] [local output] makeClusterPSOCK() ... [12:31:16.108] [local output] Workers: [n = 1] 'localhost' [12:31:16.117] [local output] Base port: 32461 [12:31:16.117] [local output] Getting setup options for 1 cluster nodes ... [12:31:16.117] [local output] - Node #1 of 1 ... [12:31:16.118] [local output] localMachine=TRUE => revtunnel=FALSE [12:31:16.120] Testing if worker's PID can be inferred: '"D:/RCompile/recent/R/bin/x64/Rscript" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpGciyjb/worker.rank=1.parallelly.parent=90988.1636c22164588.pid\")), silent = TRUE)" -e "file.exists(\"D:/temp/RtmpGciyjb/worker.rank=1.parallelly.parent=90988.1636c22164588.pid\")"' [12:31:16.677] - Possible to infer worker's PID: TRUE [12:31:16.678] [local output] Rscript port: 32461 [12:31:16.679] [local output] Getting setup options for 1 cluster nodes ... done [12:31:16.680] [local output] - Parallel setup requested for some PSOCK nodes [12:31:16.681] [local output] Setting up PSOCK nodes in parallel [12:31:16.681] List of 36 [12:31:16.681] $ worker : chr "localhost" [12:31:16.681] ..- attr(*, "localhost")= logi TRUE [12:31:16.681] $ master : chr "localhost" [12:31:16.681] $ port : int 32461 [12:31:16.681] $ connectTimeout : num 120 [12:31:16.681] $ timeout : num 120 [12:31:16.681] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [12:31:16.681] $ homogeneous : logi TRUE [12:31:16.681] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=as.cluster.R:90988:CRANWIN3:CRAN"| __truncated__ [12:31:16.681] $ rscript_envs : NULL [12:31:16.681] $ rscript_libs : NULL [12:31:16.681] $ rscript_startup : NULL [12:31:16.681] $ rscript_sh : chr [1:2] "cmd" "cmd" [12:31:16.681] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [12:31:16.681] $ methods : logi TRUE [12:31:16.681] $ socketOptions : chr "no-delay" [12:31:16.681] $ useXDR : logi FALSE [12:31:16.681] $ outfile : chr "/dev/null" [12:31:16.681] $ renice : int NA [12:31:16.681] $ rshcmd : NULL [12:31:16.681] $ user : chr(0) [12:31:16.681] $ revtunnel : logi FALSE [12:31:16.681] $ rshlogfile : NULL [12:31:16.681] $ rshopts : chr(0) [12:31:16.681] $ rank : int 1 [12:31:16.681] $ manual : logi FALSE [12:31:16.681] $ dryrun : logi FALSE [12:31:16.681] $ quiet : logi FALSE [12:31:16.681] $ setup_strategy : chr "parallel" [12:31:16.681] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [12:31:16.681] $ pidfile : chr "D:/temp/RtmpGciyjb/worker.rank=1.parallelly.parent=90988.1636c22164588.pid" [12:31:16.681] $ rshcmd_label : NULL [12:31:16.681] $ rsh_call : NULL [12:31:16.681] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [12:31:16.681] $ localMachine : logi TRUE [12:31:16.681] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [12:31:16.681] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [12:31:16.681] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [12:31:16.681] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [12:31:16.681] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [12:31:16.681] "cmd", "sh", "none"), default_packages = c("datasets", "utils", [12:31:16.681] "grDevices", "graphics", "stats", if (methods) "methods"), methods = TRUE, [12:31:16.681] socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [12:31:16.681] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [12:31:16.681] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [12:31:16.681] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [12:31:16.681] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [12:31:16.681] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [12:31:16.681] "parallel"), action = c("launch", "options"), verbose = FALSE) [12:31:16.681] $ arguments :List of 28 [12:31:16.681] ..$ worker : chr "localhost" [12:31:16.681] ..$ master : NULL [12:31:16.681] ..$ port : int 32461 [12:31:16.681] ..$ connectTimeout : num 120 [12:31:16.681] ..$ timeout : num 120 [12:31:16.681] ..$ rscript : NULL [12:31:16.681] ..$ homogeneous : NULL [12:31:16.681] ..$ rscript_args : NULL [12:31:16.681] ..$ rscript_envs : NULL [12:31:16.681] ..$ rscript_libs : NULL [12:31:16.681] ..$ rscript_startup : NULL [12:31:16.681] ..$ rscript_sh : chr "auto" [12:31:16.681] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [12:31:16.681] ..$ methods : logi TRUE [12:31:16.681] ..$ socketOptions : chr "no-delay" [12:31:16.681] ..$ useXDR : logi FALSE [12:31:16.681] ..$ outfile : chr "/dev/null" [12:31:16.681] ..$ renice : int NA [12:31:16.681] ..$ rshcmd : NULL [12:31:16.681] ..$ user : NULL [12:31:16.681] ..$ revtunnel : logi NA [12:31:16.681] ..$ rshlogfile : NULL [12:31:16.681] ..$ rshopts : NULL [12:31:16.681] ..$ rank : int 1 [12:31:16.681] ..$ manual : logi FALSE [12:31:16.681] ..$ dryrun : logi FALSE [12:31:16.681] ..$ quiet : logi FALSE [12:31:16.681] ..$ setup_strategy : chr "parallel" [12:31:16.681] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [12:31:16.721] [local output] System call to launch all workers: [12:31:16.722] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=as.cluster.R:90988:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpGciyjb/worker.rank=1.parallelly.parent=90988.1636c22164588.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=32461 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [12:31:16.722] [local output] Starting PSOCK main server [12:31:16.728] [local output] Workers launched [12:31:16.729] [local output] Waiting for workers to connect back [12:31:16.729] - [local output] 0 workers out of 1 ready [12:31:17.002] - [local output] 0 workers out of 1 ready [12:31:17.003] - [local output] 1 workers out of 1 ready [12:31:17.003] [local output] Launching of 1 workers completed [12:31:17.004] [local output] Number of nodes in cluster: 1 [12:31:17.004] [local output] Collecting session information from 1 workers [12:31:17.006] [local output] - Worker #1 of 1 [12:31:17.006] [local output] makeClusterPSOCK() ... done Socket cluster with 1 nodes where 1 node is on host 'localhost' (R Under development (unstable) (2024-07-26 r86926 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-07-26 r86926 ucrt), platform x86_64-w64-mingw32) RichSOCKnode of a socket cluster on local host 'localhost' with pid 191632 (R Under development (unstable) (2024-07-26 r86926 ucrt), x86_64-w64-mingw32) using socket connection #4 ('<-CRANwin3.fb05.statistik.uni-dortmund.de:32461') RichSOCKnode of a socket cluster on local host 'localhost' with pid 191632 (R Under development (unstable) (2024-07-26 r86926 ucrt), x86_64-w64-mingw32) using socket connection #4 ('<-CRANwin3.fb05.statistik.uni-dortmund.de:32461') Socket cluster with 1 nodes where 1 node is on host 'localhost' (R Under development (unstable) (2024-07-26 r86926 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-07-26 r86926 ucrt), platform x86_64-w64-mingw32) *** cluster operations - as.cluster() ... DONE *** cluster operations - c(...) ... [12:31:17.019] [local output] makeClusterPSOCK() ... [12:31:17.020] [local output] Workers: [n = 1] 'localhost' [12:31:17.023] [local output] Base port: 34513 [12:31:17.025] [local output] Getting setup options for 1 cluster nodes ... [12:31:17.026] [local output] - Node #1 of 1 ... [12:31:17.026] [local output] localMachine=TRUE => revtunnel=FALSE [12:31:17.028] [local output] Rscript port: 34513 [12:31:17.028] [local output] Getting setup options for 1 cluster nodes ... done [12:31:17.028] [local output] - Parallel setup requested for some PSOCK nodes [12:31:17.029] [local output] Setting up PSOCK nodes in parallel [12:31:17.029] List of 36 [12:31:17.029] $ worker : chr "localhost" [12:31:17.029] ..- attr(*, "localhost")= logi TRUE [12:31:17.029] $ master : chr "localhost" [12:31:17.029] $ port : int 34513 [12:31:17.029] $ connectTimeout : num 120 [12:31:17.029] $ timeout : num 120 [12:31:17.029] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [12:31:17.029] $ homogeneous : logi TRUE [12:31:17.029] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=as.cluster.R:90988:CRANWIN3:CRAN"| __truncated__ [12:31:17.029] $ rscript_envs : NULL [12:31:17.029] $ rscript_libs : NULL [12:31:17.029] $ rscript_startup : NULL [12:31:17.029] $ rscript_sh : chr [1:2] "cmd" "cmd" [12:31:17.029] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [12:31:17.029] $ methods : logi TRUE [12:31:17.029] $ socketOptions : chr "no-delay" [12:31:17.029] $ useXDR : logi FALSE [12:31:17.029] $ outfile : chr "/dev/null" [12:31:17.029] $ renice : int NA [12:31:17.029] $ rshcmd : NULL [12:31:17.029] $ user : chr(0) [12:31:17.029] $ revtunnel : logi FALSE [12:31:17.029] $ rshlogfile : NULL [12:31:17.029] $ rshopts : chr(0) [12:31:17.029] $ rank : int 1 [12:31:17.029] $ manual : logi FALSE [12:31:17.029] $ dryrun : logi FALSE [12:31:17.029] $ quiet : logi FALSE [12:31:17.029] $ setup_strategy : chr "parallel" [12:31:17.029] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [12:31:17.029] $ pidfile : chr "D:/temp/RtmpGciyjb/worker.rank=1.parallelly.parent=90988.1636c683456ff.pid" [12:31:17.029] $ rshcmd_label : NULL [12:31:17.029] $ rsh_call : NULL [12:31:17.029] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [12:31:17.029] $ localMachine : logi TRUE [12:31:17.029] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [12:31:17.029] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [12:31:17.029] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [12:31:17.029] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [12:31:17.029] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [12:31:17.029] "cmd", "sh", "none"), default_packages = c("datasets", "utils", [12:31:17.029] "grDevices", "graphics", "stats", if (methods) "methods"), methods = TRUE, [12:31:17.029] socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [12:31:17.029] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [12:31:17.029] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [12:31:17.029] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [12:31:17.029] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [12:31:17.029] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [12:31:17.029] "parallel"), action = c("launch", "options"), verbose = FALSE) [12:31:17.029] $ arguments :List of 28 [12:31:17.029] ..$ worker : chr "localhost" [12:31:17.029] ..$ master : NULL [12:31:17.029] ..$ port : int 34513 [12:31:17.029] ..$ connectTimeout : num 120 [12:31:17.029] ..$ timeout : num 120 [12:31:17.029] ..$ rscript : NULL [12:31:17.029] ..$ homogeneous : NULL [12:31:17.029] ..$ rscript_args : NULL [12:31:17.029] ..$ rscript_envs : NULL [12:31:17.029] ..$ rscript_libs : NULL [12:31:17.029] ..$ rscript_startup : NULL [12:31:17.029] ..$ rscript_sh : chr "auto" [12:31:17.029] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [12:31:17.029] ..$ methods : logi TRUE [12:31:17.029] ..$ socketOptions : chr "no-delay" [12:31:17.029] ..$ useXDR : logi FALSE [12:31:17.029] ..$ outfile : chr "/dev/null" [12:31:17.029] ..$ renice : int NA [12:31:17.029] ..$ rshcmd : NULL [12:31:17.029] ..$ user : NULL [12:31:17.029] ..$ revtunnel : logi NA [12:31:17.029] ..$ rshlogfile : NULL [12:31:17.029] ..$ rshopts : NULL [12:31:17.029] ..$ rank : int 1 [12:31:17.029] ..$ manual : logi FALSE [12:31:17.029] ..$ dryrun : logi FALSE [12:31:17.029] ..$ quiet : logi FALSE [12:31:17.029] ..$ setup_strategy : chr "parallel" [12:31:17.029] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [12:31:17.061] [local output] System call to launch all workers: [12:31:17.061] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=as.cluster.R:90988:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpGciyjb/worker.rank=1.parallelly.parent=90988.1636c683456ff.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=34513 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [12:31:17.061] [local output] Starting PSOCK main server [12:31:17.067] [local output] Workers launched [12:31:17.067] [local output] Waiting for workers to connect back [12:31:17.068] - [local output] 0 workers out of 1 ready [12:31:17.344] - [local output] 0 workers out of 1 ready [12:31:17.345] - [local output] 1 workers out of 1 ready [12:31:17.345] [local output] Launching of 1 workers completed [12:31:17.345] [local output] Number of nodes in cluster: 1 [12:31:17.346] [local output] Collecting session information from 1 workers [12:31:17.347] [local output] - Worker #1 of 1 [12:31:17.347] [local output] makeClusterPSOCK() ... done Socket cluster with 1 nodes where 1 node is on host 'localhost' (R Under development (unstable) (2024-07-26 r86926 ucrt), platform x86_64-w64-mingw32) Socket cluster with 2 nodes where 2 nodes are on host 'localhost' (R Under development (unstable) (2024-07-26 r86926 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.45 0.07 1.61