I'm unable to create a cluster on a remote machine in R studio, works fine in R terminal
Running Ubuntu Linux, R version 3.6.2
this works in terminal
'''r
library(parallel)
cl <- makePSOCKcluster(c("localhost","localhost"),user="mark")
cl
socket cluster with 2 nodes on host ‘localhost’
stopCluster(cl)
cl <- makePSOCKcluster(c("localhost","laptop"),user="mark")
mark@laptop's password:
cl
socket cluster with 2 nodes on hosts ‘localhost’, ‘laptop’
'''
same code in R studio hangs:
'''r
library(parallel)
cl <- makePSOCKcluster(c("localhost","localhost"),user="mark")
cl
socket cluster with 2 nodes on host ‘localhost’
stopCluster(cl)
cl <- makePSOCKcluster(c("localhost","laptop"),user="mark")
'''
any ideas? (also, is there a way to specify the password in code, I'm hoping to use maybe 100 nodes)
Mark