I am using mclapply() to do parallel computing of a brms model on an AWS instance. When the number of parallel computations is greater than the number of cores, I get this error for some computations - Error in sink(type = “output”) : invalid connection
res.null <- mclapply(1:100, function(x) sim(N=500, cores=1), mc.cores = 70)
The sim() in the above code snippet has a call to brms() as -
fit.brms <- brm(y ~ trt*day + day.0 + (1|id),
data = subset(df.l), family=cumulative("logit"), chains=1, cores=cores)
- Operating System: Ubuntu 16.04.6
- brms Version: 2.12.0