根据parallel::detectCores()
. 我的防火墙已关闭。我正在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