| DoparParam-class {BiocParallel} | R Documentation |
This class is used to dispatch parallel operations to the dopar backend registered with the foreach package.
DoparParam(catch.errors = TRUE)
catch.errors |
|
Flag to determine in
apply-like functions (see e.g. bplapply) whether
to quit with an error as soon as one application fails or
encapsulation of function calls in try
blocks which triggers a resume mechanism (see
bpresume). Defaults to TRUE.
Return a proxy object that dispatches parallel evaluation to the registered foreach parallel backend.
There are no options to the constructor. All configuration should be done through the normal interface to the foreach parallel backends.
The following generics are implemented and perform as documented on
the corresponding help page (e.g., ?bpisup):
bpworkers, bpstart, bpstop,
bpisup, bpbackend,
bpbackend<-, bpvec.
Martin Morgan mailto:mtmorgan@fhcrc.org
getClass("BiocParallelParam") for additional parameter classes.
register for registering parameter classes for use in parallel
evaluation.
foreach-package for the parallel backend infrastructure
used by this param class.
# First register a parallel backend with foreach library(doParallel) cl <- makeCluster(2) registerDoParallel(cl) p <- DoparParam() bplapply(1:10, sqrt, BPPARAM=p) bpvec(1:10, sqrt, BPPARAM=p) stopCluster(cl) ## Not run: register(DoparParam(), default=TRUE) ## End(Not run)