Skip to content

Commit

Permalink
Stop using outfile in parLapply parallelism
Browse files Browse the repository at this point in the history
We give up console output for parLapply parallelism,
but it was a hack anyway (futureverse/future#171).
The output could not be captured by capture.output()
  • Loading branch information
wlandau-lilly committed Oct 25, 2017
1 parent 251d8da commit c30df97
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions R/parLapply.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ run_parLapply <- function(config) { # nolint
run_lapply(config = config)
return(invisible())
}
outfile <- ifelse(config$verbose, "",
"/dev/null") # nolint
config$cluster <- makePSOCKcluster(config$jobs, outfile = outfile)
config$cluster <- makePSOCKcluster(config$jobs)
clusterExport(cl = config$cluster, varlist = "config",
envir = environment())
if (identical(config$envir, globalenv()))
Expand Down

0 comments on commit c30df97

Please sign in to comment.