knitr caches each chunk's results and does not notice when a file in
data/ changes. Run this after changing the data, and the next render
runs every chunk again. It deletes cache/, _freeze/ and .quarto/,
which are regenerable and in .gitignore.
Arguments
- path
The project, or any folder inside it. Left out, the one
set_paper()named; with none named, this stops before writing: it writes into the project, and easypaper never takes the working directory for it.
Examples
dir <- file.path(tempdir(), "my_paper")
create_paper(dir, git = FALSE)
#> Project created: /tmp/Rtmp92gqjt/my_paper
#> 1. open my_paper.Rproj
#> 2. library(easypaper)
#> 3. set_paper(".") # the project to work on, once a session
#> 4. render_html() # see ?render for every command
clean_cache(dir)
#> Cache cleared.
unlink(dir, recursive = TRUE)
