sourcoise: Source a Script and Cache

Provides a function that behave nearly as base::source() but implements a caching mechanism on disk, project based. It allows to quasi source() R scripts that gather data but can fail or consume to much time to respond even if nothing new is expected. It comes with tools to check and execute on demand or when cache is invalid the script.

Version: 0.5.0
Depends: R (≥ 4.1.0)
Imports: fs, qs2, cli, purrr, digest, dplyr, lubridate, tibble, jsonlite, lobstr, stringr, glue, rprojroot, rlang, scales, logger
Suggests: knitr, insee, memoise, quarto, bench
Published: 2025-03-15
DOI: 10.32614/CRAN.package.sourcoise
Author: Xavier Timbeau [aut, cre, cph]
Maintainer: Xavier Timbeau <xavier.timbeau at sciencespo.fr>
BugReports: https://github.com/xtimbeau/sourcoise/issues
License: MIT + file LICENSE
URL: https://xtimbeau.github.io/sourcoise/, https://github.com/xtimbeau/sourcoise
NeedsCompilation: no
SystemRequirements: Quarto command line tools (https://github.com/quarto-dev/quarto-cli).
Materials: README NEWS
CRAN checks: sourcoise results

Documentation:

Reference manual: sourcoise.pdf
Vignettes: advanced (source)
compared (source)
sourcoise (source)

Downloads:

Package source: sourcoise_0.5.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-devel (arm64): not available, r-release (arm64): not available, r-oldrel (arm64): not available, r-devel (x86_64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=sourcoise to link to this page.