
future - Unified Parallel and Distributed Processing in R for Everyone
The purpose of this package is to provide a lightweight and unified Future API for sequential and parallel processing of R expression via futures. The simplest way to evaluate an expression in parallel is to use `x %<-% { expression }` with `plan(multisession)`. This package implements sequential, multicore, multisession, and cluster futures. With these, R expressions can be evaluated on the local machine, in parallel a set of local machines, or distributed on a mix of local and remote machines. Extensions to this package implement additional backends for processing futures via compute cluster schedulers, etc. Because of its unified API, there is no need to modify any code in order switch from sequential on the local machine to, say, distributed processing on a remote compute cluster. Another strength of this package is that global variables and functions are automatically identified and exported as needed, making it straightforward to tweak existing code to make use of futures.
Last updated
asynchronousdistributed-computingfutureshpchpc-clustersparallel-computingparallel-processingparallelizationprogrammingpromises
16.45 score 1.0k stars 1.7k dependents 357k downloadslistenv - Environments Behaving (Almost) as Lists
List environments are environments that have list-like properties. For instance, the elements of a list environment are ordered and can be accessed and iterated over using index subsetting, e.g. 'x <- listenv(a = 1, b = 2); for (i in seq_along(x)) x[[i]] <- x[[i]] ^ 2; y <- as.list(x)'.
Last updated
14.16 score 31 stars 1.7k dependents 620 scripts 292k downloadsfuture.apply - Apply Function to Elements in Parallel using Futures
Implementations of apply(), by(), eapply(), lapply(), Map(), .mapply(), mapply(), replicate(), sapply(), tapply(), and vapply() that can be resolved using any future-supported backend, e.g. parallel on the local machine or distributed on a compute cluster. These future_*apply() functions come with the same pros and cons as the corresponding base-R *apply() functions but with the additional feature of being able to be processed via the future framework <doi:10.32614/RJ-2021-048>.
Last updated
asynchronousdistributed-computingfuturehpchpc-clustersparallelparallel-computingparallel-processingparallelizationprogramming
14.01 score 219 stars 1.4k dependents 252k downloadsglobals - Identify Global Objects in R Expressions
Identifies global ("unknown" or "free") objects in R expressions by code inspection using various strategies (ordered, liberal, conservative, or deep-first search). The objective of this package is to make it as simple as possible to identify global objects for the purpose of exporting them in parallel, distributed compute environments.
Last updated
code-inspection
13.02 score 29 stars 1.7k dependents 433 scripts 358k downloadsdoFuture - 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.
Last updated
batchjobsbatchtoolsbiocparalleldistributed-computingforeachhpchpc-clustersparallelplyr
11.43 score 82 stars 111 dependents 16k downloadsfuture.callr - Parallel Future Backend using 'callr'
Implementation of the Future API <doi:10.32614/RJ-2021-048> on top of the 'callr' package. The backend is fully compliant with the Future API, as validated by the 'future.tests' conformance test suite, meaning that code using futures gives identical results and behaves the same regardless of which future backend is used. Each future is resolved in a fresh background R session on the local machine, and, contrary to backends relying on the 'parallel' package and socket connections, it can run more than 125 parallel R processes. A common use is to parallelize existing map-reduce calls via the 'futurize' package <doi:10.48550/arXiv.2601.17578>, e.g. 'plan(future.callr::callr)' followed by 'lapply(xs, fcn) |> futurize()' or 'purrr::map(xs, fcn) |> futurize()'.
Last updated
asynchronousfuturesparallel-computingparallel-processingparallelizationprogrammingpromises
8.92 score 62 stars 2 dependents 407 scripts 3.9k downloadsfuture.batchtools - Parallel Future Backend for HPC Schedulers using 'batchtools'
Implementation of the Future API <doi:10.32614/RJ-2021-048> on top of the 'batchtools' package. The backend is fully compliant with the Future API, as validated by the 'future.tests' conformance test suite, meaning that code using futures gives identical results and behaves the same regardless of which future backend is used. Futures are resolved on the local machine, on an ad-hoc cluster of machines, or via job schedulers on high-performance compute ('HPC') clusters, such as 'Slurm', 'SGE', 'LSF', 'OpenLava', and 'TORQUE' / 'PBS'. A common use is to parallelize existing map-reduce calls via the 'futurize' package <doi:10.48550/arXiv.2601.17578>, e.g. 'plan(future.batchtools::batchtools_slurm)' followed by 'lapply(xs, fcn) |> futurize()' or 'purrr::map(xs, fcn) |> futurize()'.
Last updated
distributed-computinghpcjob-schedulerparallelpbssgeslurmtorque
8.59 score 88 stars 413 scripts 3.1k downloadsfuture.tests - Test Suite for 'Future API' Backends
Backends implementing the 'Future' API <doi:10.32614/RJ-2021-048>, as defined by the 'future' package, should use the tests provided by this package to validate that they meet the minimal requirements of the 'Future' API. The tests can be performed easily from within R or from outside of R from the command line making it straightforward to include them in package tests and in Continuous Integration (CI) pipelines.
Last updated
futuretesting
6.93 score 10 stars 1.8k downloadsfuture.p2p - Parallel Future Backend for Peer-to-Peer Clusters using 'pico.sh'
Implementation of the Future API <doi:10.32614/RJ-2021-048> that resolves futures on a peer-to-peer ('P2P') cluster, where you and your friends share your spare compute resources with each other. The backend is fully compliant with the Future API, as validated by the 'future.tests' conformance test suite, meaning that code using futures gives identical results and behaves the same regardless of which future backend is used. A common use is to parallelize existing map-reduce calls via the 'futurize' package <doi:10.48550/arXiv.2601.17578>, e.g. 'plan(future.p2p::cluster)' followed by 'lapply(xs, fcn) |> futurize()' or 'purrr::map(xs, fcn) |> futurize()'.
Last updated
distributed-computingfuturefutureversep2pparallelparallel-computing
5.76 score 16 starsBiocParallel.FutureParam - Use Futures with BiocParallel
A 'BiocParallelParam' class for using futures with the BiocParallel framework, e.g. BiocParallel::register(FutureParam()).
Last updated
bioconductorparallel-programming
3.85 score 7 starsfuture.mapreduce - Utility Functions for Future Map-Reduce API Packages
Utility functions for other packages implementing map-reduce APIs on top of the future framework - specifically 'future.apply', 'furrr', and 'doFuture'. This package and its functions are intended for those packages only and should not be used elsewhere.
Last updated
futuresmap-reduce
3.08 score 12 starsfuture.tools - Tools for Working with Futures
Tools for Working with Futures.
Last updated
parallel-computingparallel-programming
2.48 score 1 stars
