R Under development (unstable) (2024-12-17 r87446 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") + }) [18:32:17.294] [local output] makeClusterPSOCK() ... [18:32:17.350] [local output] Workers: [n = 1] 'localhost' [18:32:17.360] [local output] Base port: 22011 [18:32:17.360] [local output] Getting setup options for 1 cluster nodes ... [18:32:17.361] [local output] - Node #1 of 1 ... [18:32:17.362] [local output] localMachine=TRUE => revtunnel=FALSE [18:32:17.364] 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_18_18_30_17_11197/RtmpaMIIU8/worker.rank=1.parallelly.parent=96460.178cc252b54ad.pid\")), silent = TRUE)" -e "file.exists(\"D:/temp/2024_12_18_18_30_17_11197/RtmpaMIIU8/worker.rank=1.parallelly.parent=96460.178cc252b54ad.pid\")"' [18:32:17.811] - Possible to infer worker's PID: TRUE [18:32:17.813] [local output] Rscript port: 22011 [18:32:17.814] [local output] Getting setup options for 1 cluster nodes ... done [18:32:17.814] [local output] - Parallel setup requested for some PSOCK nodes [18:32:17.816] [local output] Setting up PSOCK nodes in parallel [18:32:17.816] List of 36 [18:32:17.816] $ worker : chr "localhost" [18:32:17.816] ..- attr(*, "localhost")= logi TRUE [18:32:17.816] $ master : chr "localhost" [18:32:17.816] $ port : int 22011 [18:32:17.816] $ connectTimeout : num 120 [18:32:17.816] $ timeout : num 120 [18:32:17.816] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [18:32:17.816] $ homogeneous : logi TRUE [18:32:17.816] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=as.cluster.R:96460:CRANWIN3:CRAN"| __truncated__ [18:32:17.816] $ rscript_envs : NULL [18:32:17.816] $ rscript_libs : NULL [18:32:17.816] $ rscript_startup : NULL [18:32:17.816] $ rscript_sh : chr [1:2] "cmd" "cmd" [18:32:17.816] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [18:32:17.816] $ methods : logi TRUE [18:32:17.816] $ socketOptions : chr "no-delay" [18:32:17.816] $ useXDR : logi FALSE [18:32:17.816] $ outfile : chr "/dev/null" [18:32:17.816] $ renice : int NA [18:32:17.816] $ rshcmd : NULL [18:32:17.816] $ user : chr(0) [18:32:17.816] $ revtunnel : logi FALSE [18:32:17.816] $ rshlogfile : NULL [18:32:17.816] $ rshopts : chr(0) [18:32:17.816] $ rank : int 1 [18:32:17.816] $ manual : logi FALSE [18:32:17.816] $ dryrun : logi FALSE [18:32:17.816] $ quiet : logi FALSE [18:32:17.816] $ setup_strategy : chr "parallel" [18:32:17.816] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [18:32:17.816] $ pidfile : chr "D:/temp/2024_12_18_18_30_17_11197/RtmpaMIIU8/worker.rank=1.parallelly.parent=96460.178cc252b54ad.pid" [18:32:17.816] $ rshcmd_label : NULL [18:32:17.816] $ rsh_call : NULL [18:32:17.816] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [18:32:17.816] $ localMachine : logi TRUE [18:32:17.816] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [18:32:17.816] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [18:32:17.816] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [18:32:17.816] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [18:32:17.816] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [18:32:17.816] "cmd", "sh", "none"), default_packages = c("datasets", "utils", [18:32:17.816] "grDevices", "graphics", "stats", if (methods) "methods"), methods = TRUE, [18:32:17.816] socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [18:32:17.816] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [18:32:17.816] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [18:32:17.816] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [18:32:17.816] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [18:32:17.816] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [18:32:17.816] "parallel"), action = c("launch", "options"), verbose = FALSE) [18:32:17.816] $ arguments :List of 28 [18:32:17.816] ..$ worker : chr "localhost" [18:32:17.816] ..$ master : NULL [18:32:17.816] ..$ port : int 22011 [18:32:17.816] ..$ connectTimeout : num 120 [18:32:17.816] ..$ timeout : num 120 [18:32:17.816] ..$ rscript : NULL [18:32:17.816] ..$ homogeneous : NULL [18:32:17.816] ..$ rscript_args : NULL [18:32:17.816] ..$ rscript_envs : NULL [18:32:17.816] ..$ rscript_libs : NULL [18:32:17.816] ..$ rscript_startup : NULL [18:32:17.816] ..$ rscript_sh : chr "auto" [18:32:17.816] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [18:32:17.816] ..$ methods : logi TRUE [18:32:17.816] ..$ socketOptions : chr "no-delay" [18:32:17.816] ..$ useXDR : logi FALSE [18:32:17.816] ..$ outfile : chr "/dev/null" [18:32:17.816] ..$ renice : int NA [18:32:17.816] ..$ rshcmd : NULL [18:32:17.816] ..$ user : NULL [18:32:17.816] ..$ revtunnel : logi NA [18:32:17.816] ..$ rshlogfile : NULL [18:32:17.816] ..$ rshopts : NULL [18:32:17.816] ..$ rank : int 1 [18:32:17.816] ..$ manual : logi FALSE [18:32:17.816] ..$ dryrun : logi FALSE [18:32:17.816] ..$ quiet : logi FALSE [18:32:17.816] ..$ setup_strategy : chr "parallel" [18:32:17.816] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [18:32:17.858] [local output] System call to launch all workers: [18:32:17.858] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=as.cluster.R:96460:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/2024_12_18_18_30_17_11197/RtmpaMIIU8/worker.rank=1.parallelly.parent=96460.178cc252b54ad.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=22011 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [18:32:17.858] [local output] Starting PSOCK main server [18:32:17.865] [local output] Workers launched [18:32:17.865] [local output] Waiting for workers to connect back [18:32:17.866] - [local output] 0 workers out of 1 ready [18:32:18.123] - [local output] 0 workers out of 1 ready [18:32:18.123] - [local output] 1 workers out of 1 ready [18:32:18.124] [local output] Launching of 1 workers completed [18:32:18.124] [local output] Number of nodes in cluster: 1 [18:32:18.124] [local output] Collecting session information from 1 workers [18:32:18.126] [local output] - Worker #1 of 1 [18:32:18.126] [local output] makeClusterPSOCK() ... done Socket cluster with 1 nodes where 1 node is on host 'localhost' (R Under development (unstable) (2024-12-17 r87446 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-17 r87446 ucrt), platform x86_64-w64-mingw32) RichSOCKnode of a socket cluster on local host 'localhost' with pid 193640 (R Under development (unstable) (2024-12-17 r87446 ucrt), x86_64-w64-mingw32) using socket connection #4 ('<-CRANwin3.fb05.statistik.uni-dortmund.de:22011') RichSOCKnode of a socket cluster on local host 'localhost' with pid 193640 (R Under development (unstable) (2024-12-17 r87446 ucrt), x86_64-w64-mingw32) using socket connection #4 ('<-CRANwin3.fb05.statistik.uni-dortmund.de:22011') Socket cluster with 1 nodes where 1 node is on host 'localhost' (R Under development (unstable) (2024-12-17 r87446 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-17 r87446 ucrt), platform x86_64-w64-mingw32) *** cluster operations - as.cluster() ... DONE *** cluster operations - c(...) ... [18:32:18.144] [local output] makeClusterPSOCK() ... [18:32:18.145] [local output] Workers: [n = 1] 'localhost' [18:32:18.150] [local output] Base port: 35796 [18:32:18.150] [local output] Getting setup options for 1 cluster nodes ... [18:32:18.150] [local output] - Node #1 of 1 ... [18:32:18.151] [local output] localMachine=TRUE => revtunnel=FALSE [18:32:18.154] [local output] Rscript port: 35796 [18:32:18.154] [local output] Getting setup options for 1 cluster nodes ... done [18:32:18.155] [local output] - Parallel setup requested for some PSOCK nodes [18:32:18.156] [local output] Setting up PSOCK nodes in parallel [18:32:18.156] List of 36 [18:32:18.156] $ worker : chr "localhost" [18:32:18.156] ..- attr(*, "localhost")= logi TRUE [18:32:18.156] $ master : chr "localhost" [18:32:18.156] $ port : int 35796 [18:32:18.156] $ connectTimeout : num 120 [18:32:18.156] $ timeout : num 120 [18:32:18.156] $ rscript : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\"" [18:32:18.156] $ homogeneous : logi TRUE [18:32:18.156] $ rscript_args : chr "--default-packages=datasets,utils,grDevices,graphics,stats,methods -e \"#label=as.cluster.R:96460:CRANWIN3:CRAN"| __truncated__ [18:32:18.156] $ rscript_envs : NULL [18:32:18.156] $ rscript_libs : NULL [18:32:18.156] $ rscript_startup : NULL [18:32:18.156] $ rscript_sh : chr [1:2] "cmd" "cmd" [18:32:18.156] $ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [18:32:18.156] $ methods : logi TRUE [18:32:18.156] $ socketOptions : chr "no-delay" [18:32:18.156] $ useXDR : logi FALSE [18:32:18.156] $ outfile : chr "/dev/null" [18:32:18.156] $ renice : int NA [18:32:18.156] $ rshcmd : NULL [18:32:18.156] $ user : chr(0) [18:32:18.156] $ revtunnel : logi FALSE [18:32:18.156] $ rshlogfile : NULL [18:32:18.156] $ rshopts : chr(0) [18:32:18.156] $ rank : int 1 [18:32:18.156] $ manual : logi FALSE [18:32:18.156] $ dryrun : logi FALSE [18:32:18.156] $ quiet : logi FALSE [18:32:18.156] $ setup_strategy : chr "parallel" [18:32:18.156] $ local_cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [18:32:18.156] $ pidfile : chr "D:/temp/2024_12_18_18_30_17_11197/RtmpaMIIU8/worker.rank=1.parallelly.parent=96460.178cc1fa05914.pid" [18:32:18.156] $ rshcmd_label : NULL [18:32:18.156] $ rsh_call : NULL [18:32:18.156] $ cmd : chr "\"D:/RCompile/recent/R/bin/x64/Rscript\" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "| __truncated__ [18:32:18.156] $ localMachine : logi TRUE [18:32:18.156] $ make_fcn :function (worker = getOption2("parallelly.localhost.hostname", "localhost"), [18:32:18.156] master = NULL, port, connectTimeout = getOption2("parallelly.makeNodePSOCK.connectTimeout", [18:32:18.156] 2 * 60), timeout = getOption2("parallelly.makeNodePSOCK.timeout", [18:32:18.156] 30 * 24 * 60 * 60), rscript = NULL, homogeneous = NULL, rscript_args = NULL, [18:32:18.156] rscript_envs = NULL, rscript_libs = NULL, rscript_startup = NULL, rscript_sh = c("auto", [18:32:18.156] "cmd", "sh", "none"), default_packages = c("datasets", "utils", [18:32:18.156] "grDevices", "graphics", "stats", if (methods) "methods"), methods = TRUE, [18:32:18.156] socketOptions = getOption2("parallelly.makeNodePSOCK.socketOptions", [18:32:18.156] "no-delay"), useXDR = getOption2("parallelly.makeNodePSOCK.useXDR", [18:32:18.156] FALSE), outfile = "/dev/null", renice = NA_integer_, rshcmd = getOption2("parallelly.makeNodePSOCK.rshcmd", [18:32:18.156] NULL), user = NULL, revtunnel = NA, rshlogfile = NULL, rshopts = getOption2("parallelly.makeNodePSOCK.rshopts", [18:32:18.156] NULL), rank = 1L, manual = FALSE, dryrun = FALSE, quiet = FALSE, [18:32:18.156] setup_strategy = getOption2("parallelly.makeNodePSOCK.setup_strategy", [18:32:18.156] "parallel"), action = c("launch", "options"), verbose = FALSE) [18:32:18.156] $ arguments :List of 28 [18:32:18.156] ..$ worker : chr "localhost" [18:32:18.156] ..$ master : NULL [18:32:18.156] ..$ port : int 35796 [18:32:18.156] ..$ connectTimeout : num 120 [18:32:18.156] ..$ timeout : num 120 [18:32:18.156] ..$ rscript : NULL [18:32:18.156] ..$ homogeneous : NULL [18:32:18.156] ..$ rscript_args : NULL [18:32:18.156] ..$ rscript_envs : NULL [18:32:18.156] ..$ rscript_libs : NULL [18:32:18.156] ..$ rscript_startup : NULL [18:32:18.156] ..$ rscript_sh : chr "auto" [18:32:18.156] ..$ default_packages: chr [1:6] "datasets" "utils" "grDevices" "graphics" ... [18:32:18.156] ..$ methods : logi TRUE [18:32:18.156] ..$ socketOptions : chr "no-delay" [18:32:18.156] ..$ useXDR : logi FALSE [18:32:18.156] ..$ outfile : chr "/dev/null" [18:32:18.156] ..$ renice : int NA [18:32:18.156] ..$ rshcmd : NULL [18:32:18.156] ..$ user : NULL [18:32:18.156] ..$ revtunnel : logi NA [18:32:18.156] ..$ rshlogfile : NULL [18:32:18.156] ..$ rshopts : NULL [18:32:18.156] ..$ rank : int 1 [18:32:18.156] ..$ manual : logi FALSE [18:32:18.156] ..$ dryrun : logi FALSE [18:32:18.156] ..$ quiet : logi FALSE [18:32:18.156] ..$ setup_strategy : chr "parallel" [18:32:18.156] - attr(*, "class")= chr [1:2] "makeNodePSOCKOptions" "makeNodeOptions" [18:32:18.193] [local output] System call to launch all workers: [18:32:18.193] [local output] "D:/RCompile/recent/R/bin/x64/Rscript" --default-packages=datasets,utils,grDevices,graphics,stats,methods -e "#label=as.cluster.R:96460:CRANWIN3:CRAN" -e "try(suppressWarnings(cat(Sys.getpid(),file=\"D:/temp/2024_12_18_18_30_17_11197/RtmpaMIIU8/worker.rank=1.parallelly.parent=96460.178cc1fa05914.pid\")), silent = TRUE)" -e "options(socketOptions = \"no-delay\")" -e "workRSOCK <- tryCatch(parallel:::.workRSOCK, error=function(e) parallel:::.slaveRSOCK); workRSOCK()" MASTER=localhost PORT=35796 OUT=/dev/null TIMEOUT=120 XDR=FALSE SETUPTIMEOUT=120 SETUPSTRATEGY=parallel [18:32:18.193] [local output] Starting PSOCK main server [18:32:18.199] [local output] Workers launched [18:32:18.200] [local output] Waiting for workers to connect back [18:32:18.200] - [local output] 0 workers out of 1 ready [18:32:18.466] - [local output] 0 workers out of 1 ready [18:32:18.466] - [local output] 1 workers out of 1 ready [18:32:18.467] [local output] Launching of 1 workers completed [18:32:18.467] [local output] Number of nodes in cluster: 1 [18:32:18.467] [local output] Collecting session information from 1 workers [18:32:18.469] [local output] - Worker #1 of 1 [18:32:18.469] [local output] makeClusterPSOCK() ... done Socket cluster with 1 nodes where 1 node is on host 'localhost' (R Under development (unstable) (2024-12-17 r87446 ucrt), platform x86_64-w64-mingw32) Socket cluster with 2 nodes where 2 nodes are on host 'localhost' (R Under development (unstable) (2024-12-17 r87446 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.53