A Universal Foreach Parallel Adaptor using the Future API of the 'future' Package

Provides a '%dopar%' adaptor such that any type of futures can be used as backends for the 'foreach' framework.


Package: doFuture

Version: 0.3.0 [2016-10-27] o Now argument '.export' of foreach() is acknowledged such that if a character vector of variables names to be exported is specified, then those variables and nothing else are exported to future. If NULL, then automatic lookup of global variables is used. o BUG FIX: Nested future strategies were not respected by nested %dopar% calls, because doFuture forgot to remind foreach that doFuture should be used also deeper down. Thank you Alex Vorobiev for reporting on this.

Version: 0.2.1 [2016-09-07] o BUG FIX: Internal R expression created to attach packages was not fully correct (but it still worked).

Version: 0.2.0 [2016-06-25] o ROBUSTNESS: Added package redundancy tests that runs all examples of the 'foreach' and the 'plyr' packages using doFuture and all known types of futures. These tests are not package tests and need to be run manually. The test scripts are available in package directory path <- system.file("tests2", package="doFuture") and can be run as source(file.path(path, "plyr", "examples.R")). o ROBUSTNESS: Added package tests validating foreach() on regular as well as future.BatchJobs futures. Same for plyr and BiocParallel apply functions.

Version: 0.1.3 [2016-05-07] o Added package help page, i.e. help("doFuture"). o REPRODUCIBILITY: Added package tests asserting random number generator (RNG) reproducibility using the doRNG package.

Version: 0.1.2 [2016-05-05] o Now foreach::getDoParWorkers() gives useful information with registerDoFuture() in most cases. In cases where the number of workers cannot be inferred easily from future::plan() it will default to returning a large number (=99).

Version: 0.1.1 [2016-05-05] o Now foreach::getDoParName() and foreach::getDoParVersion() gives useful information with registerDoFuture().

Version: 0.1.0 [2016-05-04] o Created.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.


0.5.1 by Henrik Bengtsson, 8 days ago


Report a bug at https://github.com/HenrikBengtsson/doFuture/issues

Browse source code at https://github.com/cran/doFuture

Authors: Henrik Bengtsson [aut, cre, cph]

Documentation:   PDF Manual  

Task views: High-Performance and Parallel Computing with R

LGPL (>= 2.1) license

Depends on future, foreach, iterators, parallel, utils

Suggests doRNG, markdown, R.rsp

Imported by sperrorest.

See at CRAN