根据parallel::detectCores()
,我使用2012年的Macbook Pro Retina显示器运行El Capitan,其中包含8个内核。我的防火墙已关闭。我正在从stan_lmer
包中加载的rstanarm
执行以下调用。
hierarchical.model.1 <- stan_lmer(y ~ x1 + (1 | x2) + (1 | x3) +
x4 + x5 + x6 + x7 + x8,
data = df,
cores = NCORES, # NCORES = parallel::detectCores()
seed = SEED)
确切的错误是:
starting worker pid=12968 on localhost:11058 at 23:51:49.107
Error in socketConnection(master, port = port, blocking = TRUE, open = "a+b", :
cannot open the connection
Calls: <Anonymous> ... doTryCatch -> recvData -> makeSOCKmaster -> socketConnection
In addition: Warning message:
In socketConnection(master, port = port, blocking = TRUE, open = "a+b", :
localhost:11058 cannot be opened
Execution halted
C-c C-c