Skip to content

Commit

Permalink
Patch for SIMparse due to bug in Rstudo with parallel function in R 4…
Browse files Browse the repository at this point in the history
….0.0
  • Loading branch information
mnneely committed May 8, 2020
1 parent d9006d0 commit ff9511c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/SIMparse.R
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ SIMparse <- function(file,include,exclude,combine=F,silent=F, parallel){

if (parallel) {
cl <- parallel::makeCluster(no_cores, setup_timeout = 0.5)
#May 8, 2020 remove the second argument if bug fixed in Rstudio
#May 8, 2020 remove the second argument when bug fixed in Rstudio
doParallel::registerDoParallel(cl)
simlist <- foreach::foreach(n = 1:nfiles, .verbose = F) %dopar% {processfile(n)}
parallel::stopCluster(cl)
Expand Down

0 comments on commit ff9511c

Please sign in to comment.