Package: doFuture 1.4.0-9006

Henrik Bengtsson

doFuture: Use Foreach to Parallelize via the Future Framework

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 three ways to use this package. The recommended approach is to use 'y <- foreach(...) %do% { ... } |> futurize()' via the 'futurize' package (<doi:10.48550/arXiv.2601.17578>). The second alternative, which was formerly recommended, is to use 'y <- foreach(...) %dofuture% { ... }', which does not require using 'registerDoFuture()' and has many advantages over '%dopar%'. The third alternative is the traditional 'foreach' approach by registering the 'foreach' adapter 'registerDoFuture()' and so that 'y <- foreach(...) %dopar% { ... }' parallelizes with the 'future' framework.

Authors:Henrik Bengtsson [aut, cre, cph]

doFuture_1.4.0-9006.tar.gz
doFuture_1.4.0-9006.zip(r-4.7-any)doFuture_1.4.0-9006.zip(r-4.6-any)doFuture_1.4.0-9006.zip(r-4.5-any)
doFuture_1.4.0-9006.tgz(r-4.6-any)doFuture_1.4.0-9006.tgz(r-4.5-any)
doFuture_1.4.0-9006.tar.gz(r-4.7-any)doFuture_1.4.0-9006.tar.gz(r-4.6-any)
doFuture_1.4.0-9006.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
doFuture/json (API)

# Install 'doFuture' in R:
install.packages('doFuture', repos = c('https://futureverse-devel.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/futureverse/dofuture/issues

Pkgdown/docs site:https://dofuture.futureverse.org

On CRAN:

Conda:

batchjobsbatchtoolsbiocparalleldistributed-computingforeachhpchpc-clustersparallelplyr

11.43 score 82 stars 111 packages 16k downloads 1 mentions 3 exports 8 dependencies

Last updated from:5bd5ac910a (on develop). Checks:7 NOTE, 2 OK. Indexed: no.

TargetResultTimeFilesSyslog
linux-develNOTE281
source / vignettesOK152
linux-releaseNOTE298
macos-releaseNOTE337
macos-oldrelNOTE188
windows-develNOTE196
windows-releaseNOTE221
windows-oldrelNOTE225
wasm-releaseOK76

Exports:%dofuture%registerDoFuturewithDoRNG

Dependencies:codetoolsforeachfuturefuture.applyglobalsiteratorslistenvparallelly

doFuture: An Overview on using Foreach to Parallelize via the Future Framework
doFuture: An Overview on using Foreach to Parallelize via the Future Framework | TL;DR | Introduction

Last update: 2026-10-05
Started: 2023-03-21

Foreach Iteration using Futures via %dofuture%
Global variables and packages | Random Number Generation (RNG) | Load balancing (“chunking”)

Last update: 2026-01-19
Started: 2023-03-21

Foreach Iteration using Futures via %dopar%
Introduction | Futures bring foreach to the HPC cluster | Futures for plyr | Futures and BiocParallel | doFuture takes care of exports and packages automatically | doFuture replaces existing doNnn packages

Last update: 2026-01-19
Started: 2023-03-21