A Future API for Parallel and Distributed Processing using 'batchtools'
Overview
Implementation of the Future API doi:10.32614/RJ-2021-048 on top of the 'batchtools' package. This allows you to process futures, as defined by the 'future' package, in parallel out of the box, not only on your local machine or ad-hoc cluster of machines, but also via high-performance compute ('HPC') job schedulers such as 'LSF', 'OpenLava', 'Slurm', 'SGE', and 'TORQUE' / 'PBS', e.g. 'y <- lapply(files, FUN = process) |> futurize::futurize()'.
Significant Changes
- Update the license to LGPL (>= 3) and clarify that the majority of the source code, with the exception of two files, are dual licensed under Apache License (>= 2).
New Features
- Added
find_template_file()andrender_template()for locating and previewing a batchtools job-script template, e.g. to inspect exactly howresourcesexpand into scheduler directives without submitting a real job.
Bug Fixes
- For
batchtools_slurm, thesacctfallback to query job statuses when not showing up insqueuenever happened due to a thinko.
Show all changes in 0.30.0Hide the rest of the changes in 0.30.0
batchtools_multicore()ignored argument 'delete'.batchtools_bash()ignored 'resources' field 'runtime'.- Argument 'delete' for BatchtoolsFutureBackend() used the wrong R option as the default.
- The deletion of batchtools futures silently did not produce an error if it failed to remove the registry folder.
- Waiting for an available worker with a timeout greater than 60 seconds could take much longer than that.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-04-29
- ERROR13 OK, 1 ERROR2026-04-23
- OK14 OK2026-03-10
Documentation
- Help pages
- 24 (10 internal)includes a package overview page
- Examples that run
- 100%14 run in a plain check (8 of them under a condition)
- Exported functions with examples
- 63%
- Documented parameters
- 90%
- Return-value docs
- 94%
- Help pages citing references
- 21%
Also includes 1 demo script (run with demo())
Downloads
Repository
- PRs merged (all time)
- 50%
- Median days to close, 50 most recently updated closed issues
- 224
- Median days to close, 50 most recently updated closed PRs
- 44
Stars over time
Forks over time
Issues over time
PRs over time
Commits over time
12 development-tooling and community-health practices detected across 7 families in the upstream repository
Checks run against github.com/futureverse/future.batchtools on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-10-17
pkgdown site last built 2026-10-17, before release 0.30.0 (2026-10-18)
Show all practicesHide 3 practices
Dependencies
Installing future.batchtools adds 26 packages (14 with compiled code, 23 MB of source tarballs). Heaviest: stringi 11 MB, data.table 5.7 MB, fs 1.4 MB.
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 0.30.0Latest
- 0.22.02026-04-24 · diff ↗
- RR 4.6.0 released · 2026-04-24
- 0.21.0
- 0.20.02025-08-26 · diff ↗ ·
removed 15 exports
BatchtoolsBashFuture, BatchtoolsCustomFuture, BatchtoolsFuture, BatchtoolsInteractiveFuture, BatchtoolsLocalFuture, BatchtoolsLsfFuture, BatchtoolsMulticoreFuture, BatchtoolsMultiprocessFuture, BatchtoolsOpenLavaFuture, BatchtoolsSGEFuture, BatchtoolsSSHFuture, BatchtoolsSlurmFuture, BatchtoolsTemplateFuture, BatchtoolsTorqueFuture, BatchtoolsUniprocessFutureadded 16 exports
BatchtoolsBashFutureBackend, BatchtoolsCustomFutureBackend, BatchtoolsFutureBackend, BatchtoolsInteractiveFutureBackend, BatchtoolsLocalFutureBackend, BatchtoolsLsfFutureBackend, BatchtoolsMulticoreFutureBackend, BatchtoolsMultiprocessFutureBackend, BatchtoolsOpenLavaFutureBackend, BatchtoolsSGEFutureBackend, BatchtoolsSSHFutureBackend, BatchtoolsSlurmFutureBackend, BatchtoolsTemplateFutureBackend, BatchtoolsTorqueFutureBackend, BatchtoolsUniprocessFutureBackend, makeClusterFunctionsBash - 0.12.22025-06-06 · diff ↗
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- 0.12.12023-12-20 · diff ↗
- RR 4.3.0 released · 2023-04-21
- 0.12.02023-02-24 · diff ↗
- 0.11.02022-12-14 · diff ↗ ·
added 16 exports
BatchtoolsBashFuture, BatchtoolsCustomFuture, BatchtoolsInteractiveFuture, BatchtoolsLocalFuture, BatchtoolsLsfFuture, BatchtoolsMulticoreFuture, BatchtoolsMultiprocessFuture, BatchtoolsOpenLavaFuture, BatchtoolsSGEFuture, BatchtoolsSSHFuture, BatchtoolsSlurmFuture, BatchtoolsTemplateFuture, BatchtoolsTorqueFuture, BatchtoolsUniprocessFuture, batchtools_bash, batchtools_ssh - RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 0.10.0
- RR 4.0.0 released · 2020-04-24
Show 11 earlier eventsHide 11 earlier events
Package metadata
- First published
- 2017-06-03
- Total releases
- 17 / 9 yrs
- License
- LGPL (>= 3) OSI
- Copyright
- See inst/COPYRIGHTS in the package
- Minimum R
- ≥ 3.2.0
- Download size
- 92 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("future.batchtools")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.32614/rj-2021-048.
The repository also keeps a CITATION.cff.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.