0

我有 R-package 'parallel' 的常见问题,如此处所示。命令

cl <- future::makeClusterPSOCK(1, outfile = NULL, verbose = TRUE) 

每当我登录到 wifi 连接时,它就会挂在机器上。但是,当我从手机登录到移动热点时,它工作正常。

我已经阅读了所有寻求解决方案的帖子,但到目前为止,最好的办法是重新安装我的操作系统,我真的希望避免这种情况......

有任何想法吗?

我使用 R 版本 3.5.1,平台:x86_64-apple-darwin15.6.0(64 位)。

更新 1: 当连接关闭或我在 wifi 网络上时,上面命令的输出类似于:

Workers: [n = 1] ‘localhost’
Base port: 11349
Creating node 1 of 1 ...
- setting up node
Starting worker #1 on ‘localhost’: '/Library/Frameworks/R.framework/Resources/bin/Rscript' --default-packages=datasets,utils,grDevices,graphics,stats,methods -e 'parallel:::.slaveRSOCK()' MASTER=localhost PORT=11349 OUT= TIMEOUT=2592000 XDR=TRUE
Waiting for worker #1 on ‘localhost’ to connect back
starting worker pid=4841 on localhost:11349 at 08:37:36.219

在移动热点上,它看起来非常相似,但很成功:

Workers: [n = 1] ‘localhost’
Base port: 11501
Creating node 1 of 1 ...
- setting up node
Starting worker #1 on ‘localhost’: '/Library/Frameworks/R.framework/Resources/bin/Rscript' --default-packages=datasets,utils,grDevices,graphics,stats,methods -e 'parallel:::.slaveRSOCK()' MASTER=localhost PORT=11501 OUT= TIMEOUT=2592000 XDR=TRUE
Waiting for worker #1 on ‘localhost’ to connect back
starting worker pid=4892 on localhost:11501 at 08:39:47.070
Connection with worker #1 on ‘localhost’ established
- assigning connection UUID
- collecting session information
Creating node 1 of 1 ... done
4

0 回答 0