reproducible: Enhance Reproducibility of R Code
A collection of high-level, machine- and OS-independent tools
for making reproducible and reusable content in R.
The two workhorse functions are Cache() and prepInputs(). Cache()
allows for nested caching, is robust to environments and objects with
environments (like functions), and has deals with some classes of
file-backed R objects e.g., from terra and raster packages.
Both functions have been developed to
be foundational components of data retrieval
and processing in continuous workflow situations. In both functions,
efforts are made to make the first and subsequent calls of functions have
the same result, but faster at subsequent times by way of checksums
and digesting. Several features are still under development, including
cloud storage of cached objects, allowing for sharing between users. Several
advanced options are available, see ?reproducibleOptions().
||R (≥ 4.1)
||data.table (≥ 1.10.4), digest, filelock, fpCompare, fs, lobstr, methods, stats, utils
||covr, crayon, DBI, fastdigest, future, geodata, glue, googledrive, httr, knitr, parallel, qs, raster (≥ 3.5-15), RCurl (≥ 1.95-4.8), rlang, rmarkdown, RSQLite, sf, sp (≥
1.4-2), terra (≥ 1.7-20), testthat, withr
||Eliot J B McIntire
Alex M Chubaty
Ian Eddy [ctb],
His Majesty the King in Right of Canada, as represented by the Minister
of Natural Resources Canada [cph]
||Eliot J B McIntire <eliot.mcintire at canada.ca>
||'unrar' (Linux/macOS) or '7-Zip' (Windows) to work
with '.rar' files.
||reproducible citation info
Please use the canonical form
to link to this page.