mclapply
, mcmapply
and pvec
These are simple serial versions of mclapply
, mcmapply
,
mcMap
and pvec
for Windows where forking is not available.
mclapply(X, FUN, ..., mc.preschedule = TRUE, mc.set.seed = TRUE,
mc.silent = FALSE, mc.cores = 1L,
mc.cleanup = TRUE, mc.allow.recursive = TRUE)mcmapply(FUN, ..., MoreArgs = NULL, SIMPLIFY = TRUE, USE.NAMES = TRUE,
mc.preschedule = TRUE, mc.set.seed = TRUE,
mc.silent = FALSE, mc.cores = 1L, mc.cleanup = TRUE)
mcMap(f, ...)
pvec(v, FUN, ..., mc.set.seed = TRUE, mc.silent = FALSE,
mc.cores = 1L, mc.cleanup = TRUE)
a vector (atomic or list) or an expressions vector. Other
objects (including classed objects) will be coerced by
as.list
.
vector to operate on.
the function to be applied to each element of X
or
v
, or in parallel to ...
.
the function to be applied in parallel to …
.
For mclapply
and pvec
, optional arguments to
FUN
. For mcmapply
and mcMap
, vector or list
inputs: see mapply
.
see mapply
.
Ignored on Windows.
The number of cores to use, i.e.at most how many child processes will be run simultaneously. Must be exactly 1 on Windows (which uses the master process).
For mclapply
, a list of the same length as X
and named
by X
.
For mcmapply
, a list, vector or array: see
mapply
.
For mcMap
, a list.
For pvec
, a vector of the same length as v
.
mclapply
calls lapply
and pvec
makes a
single call FUN(v, ...)
. On Unix-alikes mc.cores > 1
is allowed and uses parallel operations.