Unified parallel and distributed processing in R
open sourceApache-2.0free
future is the core package of the Futureverse, a simple, uniform way to evaluate R expressions asynchronously on whatever resources are available. A future is a value that may be available later: code written with futures can run sequentially in the current session, and switching the backend with plan(), for example to multisession, runs it in parallel on the current machine or on a compute cluster without changing the code. Most people use it through higher-level packages such as futurize, which parallelizes lapply, purrr and foreach calls.
Problems it solves
- speed up a slow R loop by running it in parallel
- run R code on a compute cluster without rewriting it
- parallelize lapply or purrr map calls in R
Features
- Futures for evaluating R expressions asynchronously
- Backends chosen with plan(): sequential, multisession on the local machine, or a cluster
- The same code runs sequentially or in parallel without changes
- Check whether a future is resolved without blocking
Alternatives
The same job
These do what future (R) does.
- futurize Parallelize R map-reduce calls by piping them into futurize()
- furrr Run purrr's mapping functions in parallel with futures in R
- future.apply Parallel versions of R's apply functions, built on future
- RcppParallel Parallel programming tools for Rcpp code in R packages
