Learn R Programming

pagoda2 (version 1.0.12)

papply: Parallel, optionally verbose lapply. See ?parallel::mclapply for more info.

Description

Parallel, optionally verbose lapply. See ?parallel::mclapply for more info.

Usage

papply(..., n.cores = parallel::detectCores(), mc.preschedule = FALSE)

Value

list, as returned by lapply

Arguments

...

Additional arguments passed to mclapply(), lapply(), or BiocParallel::bplapply()

n.cores

Number of cores to use (default=parallel::detectCores())

mc.preschedule

See ?parallel::mclapply (default=FALSE). If TRUE then the computation is first divided to (at most) as many jobs are there are cores and then the jobs are started, each job possibly covering more than one value. If FALSE, then one job is forked for each value of X. The former is better for short computations or large number of values in X, the latter is better for jobs that have high variance of completion time and not too many values of X compared to mc.cores.