diff --git a/R/accept_reject.r b/R/accept_reject.r index f32937c..3e4419d 100644 --- a/R/accept_reject.r +++ b/R/accept_reject.r @@ -246,6 +246,7 @@ accept_reject <- mc.cores = n_cores ))) } else if (parallel && .Platform$OS.type == "windows") { + n_cores <- parallel::detectCores() cl <- parallel::makeCluster(n_cores) capture.output( r <- unlist(parallel::parLapply(