Ahmed El-Gabbas
Ahmed El-Gabbas

Reputation: 526

Can not makeCluster on windows 10

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?

Upvotes: 2

Views: 684

Answers (0)

Related Questions