futurize
Parallelize Common Functions via One Magic Function
The futurize() function transpiles calls to sequential map-reduce functions such as base::lapply(), purrr::map(), 'foreach::foreach() %do% { ... }' into concurrent alternatives, providing you with a simple, straightforward path to scalable parallel computing via the 'future' ecosystem <doi:10.32614/RJ-2021-048>. By combining this function with R's native pipe operator, you have a convenient way for speeding up iterative computations with minimal refactoring, e.g. 'lapply(xs, fcn) |> futurize()', 'purrr::map(xs, fcn) |> futurize()', and 'foreach::foreach(x = xs) %do% { fcn(x) } |> futurize()'. Other map-reduce packages that can be "futurized" are 'BiocParallel', 'plyr', 'crossmap', 'pbapply' packages. There is also support for a growing set of domain-specific packages on CRAN (e.g. 'boot', 'caret', 'fgsea', 'fwb', 'gamlss', 'glmmTMB', 'glmnet', 'kernelshap', 'lme4', 'metafor', 'mgcv', 'partykit', 'riskRegression', 'seriation', 'shapr', 'SimDesign', 'strucchange', 'tm', 'TSP', and 'vegan') and on Bioconductor (e.g. 'DESeq2', 'GenomicAlignments', 'GSVA', 'Rsamtools', 'scater', 'scuttle', 'SingleCellExperiment', and 'sva').
Versions across snapshots
| Version | Repository | File | Size |
|---|---|---|---|
0.3.0 |
rolling source/ R- | futurize_0.3.0.tar.gz |
694.1 KiB |
0.3.0 |
rolling linux/jammy R-4.5 | futurize_0.3.0.tar.gz |
622.1 KiB |
0.3.0 |
latest source/ R- | futurize_0.3.0.tar.gz |
694.1 KiB |
0.3.0 |
latest linux/jammy R-4.5 | futurize_0.3.0.tar.gz |
622.1 KiB |
0.3.0 |
2026-04-23 source/ R- | futurize_0.3.0.tar.gz |
694.1 KiB |
0.3.0 |
2026-04-09 windows/windows R-4.5 | futurize_0.3.0.zip |
993.5 KiB |
Dependencies (latest)
Depends
- future (>= 1.69.0)
Imports
Suggests
- methods
- future.apply (>= 1.20.2)
- foreach
- doFuture (>= 1.2.1)
- purrr
- furrr
- crossmap
- plyr
- pbapply
- BiocParallel
- boot
- caret
- randomForest
- DESeq2
- fgsea
- GenomicAlignments
- Rsamtools
- fwb
- gamlss
- glmmTMB
- glmnet
- GSVA
- kernelshap
- lme4
- metafor
- mgcv
- partykit
- riskRegression
- scater
- scuttle
- SingleCellExperiment
- sva
- seriation
- SimDesign
- shapr
- strucchange
- tm
- vegan
- tools
- commonmark
- base64enc