在Windows 10上无法makeCluster

时间:2019-03-25 22:17:41

标签: r parallel-processing snow snowfall rparallel

我无法在Windows 10计算机上使用parallel::makeClustersnow::makeCluster。我经常收到此错误,每次使用不同的端口号:

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

我使用了此R代码,该代码在另一台计算机上也可以正常工作,但是我不知道为什么相同的代码对我不起作用的原因:

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

我尝试了一些建议的解决方案,但均未成功,包括禁用防火墙。 有没有办法避免Windows计算机上的阻塞端口(或取消阻塞端口)并行使用R?

0 个答案:

没有答案