removes every json and qs2 files found by sourcoise_status()
unless a specific tibble (filtered from sourcoise_status()
) is passed as an argument.
Usage
sourcoise_clear(
what = sourcoise_status(root = root, prune = FALSE),
root = NULL
)
Arguments
- what
(–) a tibble such as the one obtained by
sourcoise_status()
, possibly filtered- root
to force root, not recommended (expert use)
Value
list of cleared files, plus a side-effect as specified cache files are deleted (no undo possible)
See also
Other sourcoise:
sourcoise()
,
sourcoise_refresh()
,
sourcoise_reset()
,
sourcoise_status()
Examples
dir <- tempdir()
set_sourcoise_root(dir)
#> [1] "/tmp/Rtmpv54Aer"
fs::file_copy(
fs::path_package("sourcoise", "ipch", "prix_insee.R"),
dir,
overwrite = TRUE)
# Force execution
data <- sourcoise("prix_insee.R", force_exec = TRUE)
# we then clear all caches
sourcoise_clear()
#> [1] "prix_insee.r"
sourcoise_status()
#> # A tibble: 0 × 0