View source: R/sourcoise_clear.R
sourcoise_clear | R Documentation |
removes every json and qs2 files found by sourcoise_status()
unless a specific tibble (filtered from sourcoise_status()
) is passed as an argument.
sourcoise_clear(
what = sourcoise_status(root = root, prune = FALSE),
root = NULL
)
what |
(–) a tibble such as the one obtained by |
root |
to force root, not recommended (expert use) |
list of cleared files, plus a side-effect as specified cache files are deleted (no undo possible)
Other sourcoise:
sourcoise()
,
sourcoise_refresh()
,
sourcoise_reset()
,
sourcoise_status()
dir <- tempdir()
fs::file_copy(
fs::path_package("sourcoise", "ipch", "prix_insee.R"),
dir,
overwrite = TRUE)
# Force execution (root is set explicitly here, it is normally deduced from project)
data <- sourcoise("prix_insee.R", root = dir, force_exec = TRUE)
# we then clear all caches
sourcoise_clear(root = dir)
sourcoise_status(root = dir)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.