Argument revtunnel control reverse tunneling for SSH. It only makes sense when SSH is used for launching workers. If another command is used, it revtunnel should be FALSE. For example, with the new "PJM", we want to use rshcmd = "pjrsh", but this forces us to also manually specify revtunnel = FALSE;
$ export R_PARALLELLY_MAKENODEPSOCK_RSHCMD="pjrsh"
$ R
...
cl <- parallelly::makeClusterPSOCK(workers)
Suggestion
Make revtunnel = NA the new default, and if NA, then look at the rshcmd argument to infer if ssh is used. The gist is that it can look at tolower(basename(rshcmd[1])) %in% "ssh", but also needs to be agile to PuTTY and likes.
Argument
revtunnel
control reverse tunneling for SSH. It only makes sense when SSH is used for launching workers. If another command is used, itrevtunnel
should be FALSE. For example, with the new "PJM", we want to usershcmd = "pjrsh"
, but this forces us to also manually specifyrevtunnel = FALSE
;Ideally, it would be sufficient to do:
which can also be done as:
or
Suggestion
Make
revtunnel = NA
the new default, and if NA, then look at thershcmd
argument to infer if ssh is used. The gist is that it can look attolower(basename(rshcmd[1])) %in% "ssh"
, but also needs to be agile to PuTTY and likes.