R Under development (unstable) (2024-02-13 r85898 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") + }) [22:51:46.624] [local output] makeClusterPSOCK() ... [22:51:46.656] [local output] Workers: [n = 1] 'localhost' [22:51:46.663] [local output] Base port: 24609 [22:51:46.663] [local output] Getting setup options for 1 cluster nodes ... [22:51:46.663] [local output] - Node 1 of 1 ... [22:51:46.664] [local output] localMachine=TRUE => revtunnel=FALSE [22:51:46.665] Testing if worker's PID can be inferred: '"D:/RCompile/recent/R/bin/x64/Rscript" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpGsLpGX/worker.rank=1.parallelly.parent=122616.1def86f9f4774.pid\")), silent = TRUE)" -e "file.exists(\"D:/temp/RtmpGsLpGX/worker.rank=1.parallelly.parent=122616.1def86f9f4774.pid\")"' [22:51:47.112] - Possible to infer worker's PID: TRUE [22:51:47.113] [local output] Rscript port: 24609 [22:51:47.113] [local output] Getting setup options for 1 cluster nodes ... done [22:51:47.114] [local output] - Parallel setup requested for some PSOCK nodes [22:51:47.114] [local output] Setting up PSOCK nodes in parallel [22:51:47.115] List of 36 [22:51:47.115] $ worker : chr "localhost" [22:51:47.115] ..- attr(*, "localhost")= logi TRUE [22:51:47.115] $ master : chr "localhost" [22:51:47.115] $ port : int 24609 [22:51:47.115] $ connectTimeout : num 120 [22:51:47.115] $ timeout : num 120 [22:51:47.115] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [22:51:47.115] $ homogeneous : logi TRUE [22:51:47.115] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=as.cluster.R:122616:CRANWIN3:CRA"| __truncated__ [22:51:47.115] $ rscript_envs : NULL [22:51:47.115] $ rscript_libs : NULL [22:51:47.115] $ rscript_startup : NULL [22:51:47.115] $ rscript_sh : chr "cmd" [22:51:47.115] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [22:51:47.115] $ methods : logi TRUE [22:51:47.115] $ socketOptions : chr "no-delay" [22:51:47.115] $ useXDR : logi FALSE [22:51:47.115] $ outfile : chr "/dev/null" [22:51:47.115] $ renice : int NA [22:51:47.115] $ rshcmd : NULL [22:51:47.115] $ user : chr(0) [22:51:47.115] $ revtunnel : logi FALSE [22:51:47.115] $ rshlogfile : NULL [22:51:47.115] $ rshopts : chr(0) [22:51:47.115] $ rank : int 1 [22:51:47.115] $ manual : logi FALSE [22:51:47.115] $ dryrun : logi FALSE [22:51:47.115] $ quiet : logi FALSE [22:51:47.115] $ setup_strategy : chr "parallel" [22:51:47.115] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [22:51:47.115] $ pidfile : chr "D:/temp/RtmpGsLpGX/worker.rank=1.parallelly.parent=122616.1def86f9f4774.pid" [22:51:47.115] $ rshcmd_label : NULL [22:51:47.115] $ rsh_call : NULL [22:51:47.115] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [22:51:47.115] $ localMachine : logi TRUE [22:51:47.115] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [22:51:47.115] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [22:51:47.115] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [22:51:47.115] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [22:51:47.115] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [22:51:47.115] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [22:51:47.115] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [22:51:47.115] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [22:51:47.115] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [22:51:47.115] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [22:51:47.115] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [22:51:47.115] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [22:51:47.115] "parallel"), action = c("launch", "options"), verbose = FALSE) [22:51:47.115] $ arguments :List of 28 [22:51:47.115] ..$ worker : chr "localhost" [22:51:47.115] ..$ master : NULL [22:51:47.115] ..$ port : int 24609 [22:51:47.115] ..$ connectTimeout : num 120 [22:51:47.115] ..$ timeout : num 120 [22:51:47.115] ..$ rscript : NULL [22:51:47.115] ..$ homogeneous : NULL [22:51:47.115] ..$ rscript_args : NULL [22:51:47.115] ..$ rscript_envs : NULL [22:51:47.115] ..$ rscript_libs : NULL [22:51:47.115] ..$ rscript_startup : NULL [22:51:47.115] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [22:51:47.115] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [22:51:47.115] ..$ methods : logi TRUE [22:51:47.115] ..$ socketOptions : chr "no-delay" [22:51:47.115] ..$ useXDR : logi FALSE [22:51:47.115] ..$ outfile : chr "/dev/null" [22:51:47.115] ..$ renice : int NA [22:51:47.115] ..$ rshcmd : NULL [22:51:47.115] ..$ user : NULL [22:51:47.115] ..$ revtunnel : logi NA [22:51:47.115] ..$ rshlogfile : NULL [22:51:47.115] ..$ rshopts : NULL [22:51:47.115] ..$ rank : int 1 [22:51:47.115] ..$ manual : logi FALSE [22:51:47.115] ..$ dryrun : logi FALSE [22:51:47.115] ..$ quiet : logi FALSE [22:51:47.115] ..$ setup_strategy : chr "parallel" [22:51:47.115] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [22:51:47.138] [local output] System call to launch all workers: [22:51:47.139] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=as.cluster.R:122616:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpGsLpGX/worker.rank=1.parallelly.parent=122616.1def86f9f4774.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=24609 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [22:51:47.139] [local output] Starting PSOCK main server [22:51:47.144] [local output] Workers launched [22:51:47.144] [local output] Waiting for workers to connect back [22:51:47.144] - [local output] 0 workers out of 1 ready [22:51:47.318] - [local output] 0 workers out of 1 ready [22:51:47.319] - [local output] 1 workers out of 1 ready [22:51:47.319] [local output] Launching of workers completed [22:51:47.319] [local output] Collecting session information from workers [22:51:47.320] [local output] - Worker #1 of 1 [22:51:47.320] [local output] makeClusterPSOCK() ... done Socket cluster with 1 nodes where 1 node is on host 'localhost' (R Under development (unstable) (2024-02-13 r85898 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-13 r85898 ucrt), platform x86_64-w64-mingw32) RichSOCKnode of a socket cluster on local host 'localhost' with pid 169136 (R Under development (unstable) (2024-02-13 r85898 ucrt), x86_64-w64-mingw32) using socket connection #4 ('<-CRANwin3.fb05.statistik.uni-dortmund.de:24609') RichSOCKnode of a socket cluster on local host 'localhost' with pid 169136 (R Under development (unstable) (2024-02-13 r85898 ucrt), x86_64-w64-mingw32) using socket connection #4 ('<-CRANwin3.fb05.statistik.uni-dortmund.de:24609') Socket cluster with 1 nodes where 1 node is on host 'localhost' (R Under development (unstable) (2024-02-13 r85898 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-13 r85898 ucrt), platform x86_64-w64-mingw32) *** cluster operations - as.cluster() ... DONE *** cluster operations - c(...) ... [22:51:47.330] [local output] makeClusterPSOCK() ... [22:51:47.331] [local output] Workers: [n = 1] 'localhost' [22:51:47.333] [local output] Base port: 30042 [22:51:47.333] [local output] Getting setup options for 1 cluster nodes ... [22:51:47.334] [local output] - Node 1 of 1 ... [22:51:47.334] [local output] localMachine=TRUE => revtunnel=FALSE [22:51:47.335] [local output] Rscript port: 30042 [22:51:47.336] [local output] Getting setup options for 1 cluster nodes ... done [22:51:47.336] [local output] - Parallel setup requested for some PSOCK nodes [22:51:47.338] [local output] Setting up PSOCK nodes in parallel [22:51:47.339] List of 36 [22:51:47.339] $ worker : chr "localhost" [22:51:47.339] ..- attr(*, "localhost")= logi TRUE [22:51:47.339] $ master : chr "localhost" [22:51:47.339] $ port : int 30042 [22:51:47.339] $ connectTimeout : num 120 [22:51:47.339] $ timeout : num 120 [22:51:47.339] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [22:51:47.339] $ homogeneous : logi TRUE [22:51:47.339] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=as.cluster.R:122616:CRANWIN3:CRA"| __truncated__ [22:51:47.339] $ rscript_envs : NULL [22:51:47.339] $ rscript_libs : NULL [22:51:47.339] $ rscript_startup : NULL [22:51:47.339] $ rscript_sh : chr "cmd" [22:51:47.339] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [22:51:47.339] $ methods : logi TRUE [22:51:47.339] $ socketOptions : chr "no-delay" [22:51:47.339] $ useXDR : logi FALSE [22:51:47.339] $ outfile : chr "/dev/null" [22:51:47.339] $ renice : int NA [22:51:47.339] $ rshcmd : NULL [22:51:47.339] $ user : chr(0) [22:51:47.339] $ revtunnel : logi FALSE [22:51:47.339] $ rshlogfile : NULL [22:51:47.339] $ rshopts : chr(0) [22:51:47.339] $ rank : int 1 [22:51:47.339] $ manual : logi FALSE [22:51:47.339] $ dryrun : logi FALSE [22:51:47.339] $ quiet : logi FALSE [22:51:47.339] $ setup_strategy : chr "parallel" [22:51:47.339] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [22:51:47.339] $ pidfile : chr "D:/temp/RtmpGsLpGX/worker.rank=1.parallelly.parent=122616.1def85efa68e0.pid" [22:51:47.339] $ rshcmd_label : NULL [22:51:47.339] $ rsh_call : NULL [22:51:47.339] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [22:51:47.339] $ localMachine : logi TRUE [22:51:47.339] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [22:51:47.339] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [22:51:47.339] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [22:51:47.339] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [22:51:47.339] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [22:51:47.339] "cmd", "sh"), default_packages = c("datasets", "utils", "grDevices", [22:51:47.339] "graphics", "stats", if (methods) "methods"), methods = TRUE, socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [22:51:47.339] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [22:51:47.339] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [22:51:47.339] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [22:51:47.339] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [22:51:47.339] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [22:51:47.339] "parallel"), action = c("launch", "options"), verbose = FALSE) [22:51:47.339] $ arguments :List of 28 [22:51:47.339] ..$ worker : chr "localhost" [22:51:47.339] ..$ master : NULL [22:51:47.339] ..$ port : int 30042 [22:51:47.339] ..$ connectTimeout : num 120 [22:51:47.339] ..$ timeout : num 120 [22:51:47.339] ..$ rscript : NULL [22:51:47.339] ..$ homogeneous : NULL [22:51:47.339] ..$ rscript_args : NULL [22:51:47.339] ..$ rscript_envs : NULL [22:51:47.339] ..$ rscript_libs : NULL [22:51:47.339] ..$ rscript_startup : NULL [22:51:47.339] ..$ rscript_sh : chr [1:3] "auto" "cmd" "sh" [22:51:47.339] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [22:51:47.339] ..$ methods : logi TRUE [22:51:47.339] ..$ socketOptions : chr "no-delay" [22:51:47.339] ..$ useXDR : logi FALSE [22:51:47.339] ..$ outfile : chr "/dev/null" [22:51:47.339] ..$ renice : int NA [22:51:47.339] ..$ rshcmd : NULL [22:51:47.339] ..$ user : NULL [22:51:47.339] ..$ revtunnel : logi NA [22:51:47.339] ..$ rshlogfile : NULL [22:51:47.339] ..$ rshopts : NULL [22:51:47.339] ..$ rank : int 1 [22:51:47.339] ..$ manual : logi FALSE [22:51:47.339] ..$ dryrun : logi FALSE [22:51:47.339] ..$ quiet : logi FALSE [22:51:47.339] ..$ setup_strategy : chr "parallel" [22:51:47.339] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [22:51:47.359] [local output] System call to launch all workers: [22:51:47.359] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=as.cluster.R:122616:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/RtmpGsLpGX/worker.rank=1.parallelly.parent=122616.1def85efa68e0.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=30042 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [22:51:47.360] [local output] Starting PSOCK main server [22:51:47.365] [local output] Workers launched [22:51:47.366] [local output] Waiting for workers to connect back [22:51:47.366] - [local output] 0 workers out of 1 ready [22:51:47.531] - [local output] 0 workers out of 1 ready [22:51:47.531] - [local output] 1 workers out of 1 ready [22:51:47.532] [local output] Launching of workers completed [22:51:47.532] [local output] Collecting session information from workers [22:51:47.532] [local output] - Worker #1 of 1 [22:51:47.533] [local output] makeClusterPSOCK() ... done Socket cluster with 1 nodes where 1 node is on host 'localhost' (R Under development (unstable) (2024-02-13 r85898 ucrt), platform x86_64-w64-mingw32) Socket cluster with 2 nodes where 2 nodes are on host 'localhost' (R Under development (unstable) (2024-02-13 r85898 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.25 0.09 1.12