doi:10.32614/RJ-2021-048>. The 'foreach' package provides a powerful API for iterating over an R expression in parallel. The 'doFuture' package brings the best of the two together. There are two alternative ways to use this package. The recommended approach is to use 'y <- foreach(...) %dofuture% { ... }', which does not require using 'registerDoFuture()' and has many advantages over '%dopar%'. The alternative is the traditional 'foreach' approach by registering the 'foreach' adapter 'registerDoFuture()' and so that 'y <- foreach(...) %dopar% { ... }' runs in parallelizes with the 'future' framework.">

doFuture: Use Foreach to Parallelize via the Future Framework (original) (raw)

The 'future' package provides a unifying parallelization framework for R that supports many parallel and distributed backends <doi:10.32614/RJ-2021-048>. The 'foreach' package provides a powerful API for iterating over an R expression in parallel. The 'doFuture' package brings the best of the two together. There are two alternative ways to use this package. The recommended approach is to use 'y <- foreach(...) %dofuture% { ... }', which does not require using 'registerDoFuture()' and has many advantages over '%dopar%'. The alternative is the traditional 'foreach' approach by registering the 'foreach' adapter 'registerDoFuture()' and so that 'y <- foreach(...) %dopar% { ... }' runs in parallelizes with the 'future' framework.

Version: 1.1.1
Depends: foreach (≥ 1.5.0), future (≥ 1.49.0)
Imports: future.apply, globals, iterators, parallel, utils
Suggests: doRNG (≥ 1.8.2), markdown, R.rsp
Published: 2025-06-06
DOI: 10.32614/CRAN.package.doFuture
Author: Henrik Bengtsson ORCID iD [aut, cre, cph]
Maintainer: Henrik Bengtsson
BugReports: https://github.com/futureverse/doFuture/issues
License: LGPL-2.1 | LGPL-3 [expanded from: LGPL (≥ 2.1)]
URL: https://doFuture.futureverse.org,https://github.com/futureverse/doFuture
NeedsCompilation: no
Language: en-US
Citation: doFuture citation info
Materials: NEWS
In views: HighPerformanceComputing
CRAN checks: doFuture results

Documentation:

Downloads:

Reverse dependencies:

Reverse depends: distantia
Reverse imports: antaresEditObject, baskexact, basksim, binaryRL, dbmss, envi, EQRN, fastml, flexFitR, funGp, futureverse, fxTWAPLS, GeDS, GeoModels, hwep, jackknifeR, kergp, latentcor, LWFBrook90R, multilevelcoda, nebula, parseRPDR, pliman, polykde, rechaRge, remiod, rpm, segtest, SharkDemography, simtrial, skpr, sparrpowR, sphunif, sRACIPE, survstan, TAD, tglkmeans, tune, updog, vmeasur, WARDEN, WeightedCluster
Reverse suggests: arf, BayesianMCPMod, bhmbasket, bsitar, ISAnalytics, kernelshap, ldsr, mikropml, momentuHMM, MOODE, mslp, oncomsm, progressr, projpred, robust2sls, SCdeconR, semPower, ssdtools

Linking:

Please use the canonical formhttps://CRAN.R-project.org/package=doFutureto link to this page.