R Under development (unstable) (2024-02-28 r85999 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") + }) [07:11:44.958] [local output] makeClusterPSOCK() ... [07:11:44.991] [local output] Workers: [n = 1] 'localhost' [07:11:44.998] [local output] Base port: 32445 [07:11:44.998] [local output] Getting setup options for 1 cluster nodes ... [07:11:44.998] [local output] - Node 1 of 1 ... [07:11:44.999] [local output] localMachine=TRUE => revtunnel=FALSE [07:11:45.000] Testing if worker's PID can be inferred: '"D:/RCompile/recent/R/bin/x64/Rscript" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/Rtmp4OtH1R/worker.rank=1.parallelly.parent=32540.7f1c30ff30e4.pid\")), silent = TRUE)" -e "file.exists(\"D:/temp/Rtmp4OtH1R/worker.rank=1.parallelly.parent=32540.7f1c30ff30e4.pid\")"' [07:11:45.222] - Possible to infer worker's PID: TRUE [07:11:45.223] [local output] Rscript port: 32445 [07:11:45.224] [local output] Getting setup options for 1 cluster nodes ... done [07:11:45.224] [local output] - Parallel setup requested for some PSOCK nodes [07:11:45.225] [local output] Setting up PSOCK nodes in parallel [07:11:45.225] List of 36 [07:11:45.225] $ worker : chr "localhost" [07:11:45.225] ..- attr(*, "localhost")= logi TRUE [07:11:45.225] $ master : chr "localhost" [07:11:45.225] $ port : int 32445 [07:11:45.225] $ connectTimeout : num 120 [07:11:45.225] $ timeout : num 120 [07:11:45.225] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [07:11:45.225] $ homogeneous : logi TRUE [07:11:45.225] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=as.cluster.R:32540:CRANWIN3:CRAN"| __truncated__ [07:11:45.225] $ rscript_envs : NULL [07:11:45.225] $ rscript_libs : NULL [07:11:45.225] $ rscript_startup : NULL [07:11:45.225] $ rscript_sh : chr "cmd" [07:11:45.225] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [07:11:45.225] $ methods : logi TRUE [07:11:45.225] $ socketOptions : chr "no-delay" [07:11:45.225] $ useXDR : logi FALSE [07:11:45.225] $ outfile : chr "/dev/null" [07:11:45.225] $ renice : int NA [07:11:45.225] $ rshcmd : NULL [07:11:45.225] $ user : chr(0) [07:11:45.225] $ revtunnel : logi FALSE [07:11:45.225] $ rshlogfile : NULL [07:11:45.225] $ rshopts : chr(0) [07:11:45.225] $ rank : int 1 [07:11:45.225] $ manual : logi FALSE [07:11:45.225] $ dryrun : logi FALSE [07:11:45.225] $ quiet : logi FALSE [07:11:45.225] $ setup_strategy : chr "parallel" [07:11:45.225] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [07:11:45.225] $ pidfile : chr "D:/temp/Rtmp4OtH1R/worker.rank=1.parallelly.parent=32540.7f1c30ff30e4.pid" [07:11:45.225] $ rshcmd_label : NULL [07:11:45.225] $ rsh_call : NULL [07:11:45.225] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [07:11:45.225] $ localMachine : logi TRUE [07:11:45.225] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [07:11:45.225] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [07:11:45.225] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [07:11:45.225] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [07:11:45.225] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [07:11:45.225] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [07:11:45.225] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [07:11:45.225] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [07:11:45.225] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [07:11:45.225] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [07:11:45.225] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [07:11:45.225] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [07:11:45.225] "parallel"), action = c("launch", "options"), verbose = FALSE) [07:11:45.225] $ arguments :List of 28 [07:11:45.225] ..$ worker : chr "localhost" [07:11:45.225] ..$ master : NULL [07:11:45.225] ..$ port : int 32445 [07:11:45.225] ..$ connectTimeout : num 120 [07:11:45.225] ..$ timeout : num 120 [07:11:45.225] ..$ rscript : NULL [07:11:45.225] ..$ homogeneous : NULL [07:11:45.225] ..$ rscript_args : NULL [07:11:45.225] ..$ rscript_envs : NULL [07:11:45.225] ..$ rscript_libs : NULL [07:11:45.225] ..$ rscript_startup : NULL [07:11:45.225] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [07:11:45.225] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [07:11:45.225] ..$ methods : logi TRUE [07:11:45.225] ..$ socketOptions : chr "no-delay" [07:11:45.225] ..$ useXDR : logi FALSE [07:11:45.225] ..$ outfile : chr "/dev/null" [07:11:45.225] ..$ renice : int NA [07:11:45.225] ..$ rshcmd : NULL [07:11:45.225] ..$ user : NULL [07:11:45.225] ..$ revtunnel : logi NA [07:11:45.225] ..$ rshlogfile : NULL [07:11:45.225] ..$ rshopts : NULL [07:11:45.225] ..$ rank : int 1 [07:11:45.225] ..$ manual : logi FALSE [07:11:45.225] ..$ dryrun : logi FALSE [07:11:45.225] ..$ quiet : logi FALSE [07:11:45.225] ..$ setup_strategy : chr "parallel" [07:11:45.225] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [07:11:45.250] [local output] System call to launch all workers: [07:11:45.250] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=as.cluster.R:32540:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/Rtmp4OtH1R/worker.rank=1.parallelly.parent=32540.7f1c30ff30e4.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=32445 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [07:11:45.251] [local output] Starting PSOCK main server [07:11:45.255] [local output] Workers launched [07:11:45.255] [local output] Waiting for workers to connect back [07:11:45.255] - [local output] 0 workers out of 1 ready [07:11:45.433] - [local output] 0 workers out of 1 ready [07:11:45.433] - [local output] 1 workers out of 1 ready [07:11:45.433] [local output] Launching of workers completed [07:11:45.434] [local output] Collecting session information from workers [07:11:45.435] [local output] - Worker #1 of 1 [07:11:45.435] [local output] makeClusterPSOCK() ... done Socket cluster with 1 nodes where 1 node is on host 'localhost' (R Under development (unstable) (2024-02-28 r85999 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-02-28 r85999 ucrt), platform x86_64-w64-mingw32) RichSOCKnode of a socket cluster on local host 'localhost' with pid 8568 (R Under development (unstable) (2024-02-28 r85999 ucrt), x86_64-w64-mingw32) using socket connection #4 ('<-CRANwin3.fb05.statistik.uni-dortmund.de:32445') RichSOCKnode of a socket cluster on local host 'localhost' with pid 8568 (R Under development (unstable) (2024-02-28 r85999 ucrt), x86_64-w64-mingw32) using socket connection #4 ('<-CRANwin3.fb05.statistik.uni-dortmund.de:32445') Socket cluster with 1 nodes where 1 node is on host 'localhost' (R Under development (unstable) (2024-02-28 r85999 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-02-28 r85999 ucrt), platform x86_64-w64-mingw32) *** cluster operations - as.cluster() ... DONE *** cluster operations - c(...) ... [07:11:45.445] [local output] makeClusterPSOCK() ... [07:11:45.446] [local output] Workers: [n = 1] 'localhost' [07:11:45.448] [local output] Base port: 34666 [07:11:45.448] [local output] Getting setup options for 1 cluster nodes ... [07:11:45.449] [local output] - Node 1 of 1 ... [07:11:45.449] [local output] localMachine=TRUE => revtunnel=FALSE [07:11:45.451] [local output] Rscript port: 34666 [07:11:45.451] [local output] Getting setup options for 1 cluster nodes ... done [07:11:45.451] [local output] - Parallel setup requested for some PSOCK nodes [07:11:45.454] [local output] Setting up PSOCK nodes in parallel [07:11:45.454] List of 36 [07:11:45.454] $ worker : chr "localhost" [07:11:45.454] ..- attr(*, "localhost")= logi TRUE [07:11:45.454] $ master : chr "localhost" [07:11:45.454] $ port : int 34666 [07:11:45.454] $ connectTimeout : num 120 [07:11:45.454] $ timeout : num 120 [07:11:45.454] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [07:11:45.454] $ homogeneous : logi TRUE [07:11:45.454] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=as.cluster.R:32540:CRANWIN3:CRAN"| __truncated__ [07:11:45.454] $ rscript_envs : NULL [07:11:45.454] $ rscript_libs : NULL [07:11:45.454] $ rscript_startup : NULL [07:11:45.454] $ rscript_sh : chr "cmd" [07:11:45.454] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [07:11:45.454] $ methods : logi TRUE [07:11:45.454] $ socketOptions : chr "no-delay" [07:11:45.454] $ useXDR : logi FALSE [07:11:45.454] $ outfile : chr "/dev/null" [07:11:45.454] $ renice : int NA [07:11:45.454] $ rshcmd : NULL [07:11:45.454] $ user : chr(0) [07:11:45.454] $ revtunnel : logi FALSE [07:11:45.454] $ rshlogfile : NULL [07:11:45.454] $ rshopts : chr(0) [07:11:45.454] $ rank : int 1 [07:11:45.454] $ manual : logi FALSE [07:11:45.454] $ dryrun : logi FALSE [07:11:45.454] $ quiet : logi FALSE [07:11:45.454] $ setup_strategy : chr "parallel" [07:11:45.454] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [07:11:45.454] $ pidfile : chr "D:/temp/Rtmp4OtH1R/worker.rank=1.parallelly.parent=32540.7f1c5de14644.pid" [07:11:45.454] $ rshcmd_label : NULL [07:11:45.454] $ rsh_call : NULL [07:11:45.454] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [07:11:45.454] $ localMachine : logi TRUE [07:11:45.454] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [07:11:45.454] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [07:11:45.454] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [07:11:45.454] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [07:11:45.454] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [07:11:45.454] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [07:11:45.454] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [07:11:45.454] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [07:11:45.454] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [07:11:45.454] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [07:11:45.454] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [07:11:45.454] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [07:11:45.454] "parallel"), action = c("launch", "options"), verbose = FALSE) [07:11:45.454] $ arguments :List of 28 [07:11:45.454] ..$ worker : chr "localhost" [07:11:45.454] ..$ master : NULL [07:11:45.454] ..$ port : int 34666 [07:11:45.454] ..$ connectTimeout : num 120 [07:11:45.454] ..$ timeout : num 120 [07:11:45.454] ..$ rscript : NULL [07:11:45.454] ..$ homogeneous : NULL [07:11:45.454] ..$ rscript_args : NULL [07:11:45.454] ..$ rscript_envs : NULL [07:11:45.454] ..$ rscript_libs : NULL [07:11:45.454] ..$ rscript_startup : NULL [07:11:45.454] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [07:11:45.454] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [07:11:45.454] ..$ methods : logi TRUE [07:11:45.454] ..$ socketOptions : chr "no-delay" [07:11:45.454] ..$ useXDR : logi FALSE [07:11:45.454] ..$ outfile : chr "/dev/null" [07:11:45.454] ..$ renice : int NA [07:11:45.454] ..$ rshcmd : NULL [07:11:45.454] ..$ user : NULL [07:11:45.454] ..$ revtunnel : logi NA [07:11:45.454] ..$ rshlogfile : NULL [07:11:45.454] ..$ rshopts : NULL [07:11:45.454] ..$ rank : int 1 [07:11:45.454] ..$ manual : logi FALSE [07:11:45.454] ..$ dryrun : logi FALSE [07:11:45.454] ..$ quiet : logi FALSE [07:11:45.454] ..$ setup_strategy : chr "parallel" [07:11:45.454] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [07:11:45.475] [local output] System call to launch all workers: [07:11:45.475] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=as.cluster.R:32540:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/Rtmp4OtH1R/worker.rank=1.parallelly.parent=32540.7f1c5de14644.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=34666 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [07:11:45.476] [local output] Starting PSOCK main server [07:11:45.479] [local output] Workers launched [07:11:45.480] [local output] Waiting for workers to connect back [07:11:45.480] - [local output] 0 workers out of 1 ready [07:11:45.652] - [local output] 0 workers out of 1 ready [07:11:45.653] - [local output] 1 workers out of 1 ready [07:11:45.653] [local output] Launching of workers completed [07:11:45.653] [local output] Collecting session information from workers [07:11:45.654] [local output] - Worker #1 of 1 [07:11:45.654] [local output] makeClusterPSOCK() ... done Socket cluster with 1 nodes where 1 node is on host 'localhost' (R Under development (unstable) (2024-02-28 r85999 ucrt), platform x86_64-w64-mingw32) Socket cluster with 2 nodes where 2 nodes are on host 'localhost' (R Under development (unstable) (2024-02-28 r85999 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.28 0.06 0.90