Can not makeCluster on windows 10

608 Views Asked by At

I can not use parallel::makeCluster or snow::makeCluster on a windows 10 computer. I frequently receive this error, each time with a different port number:

Error in socketConnection("localhost", port = port, server = TRUE, blocking = TRUE,  : 
  cannot open the connection
In addition: Warning message:
In socketConnection("localhost", port = port, server = TRUE, blocking = TRUE,  :  port 45416 cannot be opened

I use this R code, which worked fine on another computer, but I do not know the reason why the same code did not work for me:

require(parallel)
CL <- makeCluster(rep("localhost", 12))

I tried some suggested solutions without success, including disabling firewall. Is there a way to avoid blocked ports (or unblock them) on windows computers to use R on parallel?

0

There are 0 best solutions below