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 an 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 be "futurized" are 'BiocParallel', 'plyr', 'crossmap' packages. There is also support for growing set of domain-specific packages, including 'boot', 'glmnet', 'mgcv', 'lme4', and 'tm'.
| Version: | 0.1.0 |
| Depends: | R (≥ 4.1.0), future (> 1.58.0) |
| Suggests: | future.apply, foreach, doFuture, purrr, furrr, crossmap, plyr, BiocParallel, glmnet, boot, lme4, mgcv, tm, tools, commonmark, base64enc |
| Published: | 2026-01-22 |
| DOI: | 10.32614/CRAN.package.futurize (may not be active yet) |
| Author: | Henrik Bengtsson [aut, cre, cph] |
| Maintainer: | Henrik Bengtsson <henrikb at braju.com> |
| License: | GPL (≥ 3) |
| URL: | https://www.futureverse.org, https://github.com/futureverse/ |
| NeedsCompilation: | no |
| Language: | en-US |
| Materials: | README, NEWS |
| CRAN checks: | futurize results |
| Package source: | futurize_0.1.0.tar.gz |
| Windows binaries: | r-devel: not available, r-release: not available, r-oldrel: not available |
| macOS binaries: | r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available |
Please use the canonical form https://CRAN.R-project.org/package=futurize to link to this page.