Learn R Programming

doFuture (version 1.0.1)

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 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.

Copy Link

Version

Install

install.packages('doFuture')

Monthly Downloads

31,049

Version

1.0.1

License

LGPL (>= 2.1)

Issues

Pull Requests

Stars

Forks

Last Published

December 20th, 2023

Functions in doFuture (1.0.1)

%dofuture%

Loop over a Foreach Expression using Futures
withDoRNG

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

Use the Foreach %dopar% Adapter with Futures
makeChunks

Create Chunks of Index Vectors
doFuture

doFuture: Foreach Parallel Adapter using Futures
doFuture.options

Options used by the doFuture adapter