Parallel, optionally verbose lapply. See ?parallel::mclapply for more info.
Parallel, optionally verbose lapply. See ?parallel::mclapply for more info.
plapply( ..., progress = FALSE, n.cores = parallel::detectCores(), mc.preschedule = FALSE, fail.on.error = FALSE )
... |
Additional arguments passed to mclapply(), lapply(), or pbmcapply::pbmclapply() |
progress |
Show progress bar via pbmcapply::pbmclapply() (default=FALSE). |
n.cores |
Number of cores to use (default=parallel::detectCores()). When n.cores=1, regular lapply() is used. Note: doesn't work when progress=TRUE |
mc.preschedule |
if set to |
fail.on.error |
boolean Whether to fail and report and error (using stop()) as long as any of the individual tasks has failed (default =FALSE) |
list, as returned by lapply
square = function(x){ x**2 } plapply(1:10, square, n.cores=1, progress=TRUE)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.