mebrooks / selfisher

selfisher - modeling the SELectivity of FISHERies gear in R
9 stars 4 forks source link

bootSel on Windows #20

Closed mebrooks closed 4 years ago

mebrooks commented 4 years ago

Make it work with parallel="snow". Try copying new version of bootmer.

mebrooks commented 4 years ago

The current version works with the code below. Update documentation.

ncpus = 4
cl = makeCluster(rep("localhost", ncpus), outfile = 'log.txt')
clusterExport(cl, "newdata")
bs = bootSel(mod_both, nsim=100, parallel = "snow", cl=cl, 
           FUN=function(mod){predict(mod, newdata=newdata, type="response")})
stopCluster(cl)