doParabar-package {doParabar} | R Documentation |
Foreach Parallel Adaptor For parabar
Backends
Description
Provides a 'foreach' parallel adapter for 'parabar' backends. This package offers a minimal implementation of the '
Details
The doParabar
package acts as a foreach::foreach
parallel
adaptor for parabar::parabar
backends. It provides a minimal
implementation for the foreach::%dopar%
operator, enabling seamless
integration of the parabar::parabar
package with the foreach::foreach
package.
Package Loading
By default, and for various reasons, the doParabar
package
does not automatically load other packages. Instead, I recommended to load
the foreach::foreach
and parabar::parabar
packages explicitly in your
scripts (i.e., or add them to your Imports
in the DESCRIPTION
file when
developing an R
package). Package startup messages can be suppressed via
base::suppressPackageStartupMessages()
.
Automatic Exporting
Note that doParabar
does not automatically export variables to
the backend. Instead, I strongly recommend being explicit about what you want
to export to the backend and use the .export
and .noexport
arguments.
Similarly, the .packages
argument can be used to indicate which packages
should be loaded on the backend. Please check the Details section of the
documentation for doPar()
for all supported arguments.
Resources
For more information about
parabar::parabar
, please consult de documentation and examples at parabar.mihaiconstantin.com.For specific information about using
parabar::parabar
in conjunction withforeach::foreach
please check the online vignette at parabar.mihaiconstantin.com/articles/foreach.
Author(s)
Maintainer: Mihai Constantin mihai@mihaiconstantin.com (ORCID)
See Also
Useful links:
Report bugs at https://github.com/mihaiconstantin/doParabar/issues