I am on a Macbook Pro Retina Display from 2012 running El Capitan with 8 cores according to parallel::detectCores()
. My firewall is off. I am performing the following call from stan_lmer
loaded from the rstanarm
package.
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)
The exact error is:
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