I want to create my own variant of makePSOCKcluster
and newPSOCKnode
using ssh connection via plink. So, I rewrite code
if (machine != "localhost") {
rshcmd <- getClusterOption("rshcmd", options)
user <- getClusterOption("user", options)
cmd <- shQuote(cmd)
cmd <- paste(rshcmd, "-l", user, machine, cmd)
}
if (.Platform$OS.type == "windows") {
system(cmd, wait = FALSE, input = "")
}
else system(cmd, wait = FALSE)
by my variant, which gives me cmd
like this:
plink -ssh Rebelion@ClusterNode1 -pw myPasswd123 "Rscript --default-packages=datasets,utils,grDevices,stats,graphics,methods -e parallel!:::.slaveRSOCK MASTER=CLUSTERNODE1 PORT=11038 TIMEOUT=2592000 XDR=TRUE".
ClusterNode1 here is a current machine (I logged as Rebelion, it's an administrator login).
But system(cmd, wait=FALSE, input="")
gives me this:
Fatal error: creation of tmpfile failed -- set TMPDIR suitably?
I don't know why I get this error and what should I do. I set TMPDIR
, TMP
and TEMP
variables as %USERPROFILE%/AppData/Local/Temp
, I set privilegies on maximum for all kind of users except guests.
Could anyone helps me to solve this problem? Thnxs.