Learn R Programming

doFuture (version 1.3.0)

Use Foreach to Parallelize via the Future Framework

Description

The 'future' package provides a unifying parallelization framework for R that supports many parallel and distributed backends . 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 (). 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.

Copy Link

Version

Install

install.packages('doFuture')

Monthly Downloads

19,044

Version

1.3.0

License

Apache License (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Henrik Bengtsson

Last Published

August 3rd, 2026

Functions in doFuture (1.3.0)

registerDoFuture

Use the Foreach %dopar% Adapter with Futures
with.DoPar

Evaluate an Expression using a Temporarily Registered Foreach %dopar% Adapter
doFuture

doFuture: Foreach Parallel Adapter using Futures
%dofuture%

Loop over a Foreach Expression using Futures
withDoRNG

Evaluates a foreach %dopar% expression with the doRNG adapter
makeChunks

Create Chunks of Index Vectors
doFuture.options

Options used by the doFuture adapter