Skip to content

Commit dc6e1bf

Browse files
committed
make for manually clearing the caches
1 parent 34b018a commit dc6e1bf

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

DEVELOPMENT.md

+2
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,8 @@ R -e 'devtools::document()'
3535
R -e 'pkgdown::build_site(lazy = TRUE, examples = FALSE, devel = TRUE, preview = FALSE)'
3636
```
3737

38+
Note that sometimes the caches from either `pkgdown` or `knitr` can cause difficulties. To clear those, run `make`, with either `clean_knitr`, `clean_site`, or `clean` (which does both).
39+
3840
If you work without R Studio and want to iterate on documentation, you might
3941
find `Rscript inst/pkgdown-watch.R` helpful to keep a live updating version of the website. Note that you need to have `c("pkgdown", "servr", "devtools", "here", "cli", "fs")` installed.
4042

Makefile

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
##
2+
# epipredict docs build
3+
#
4+
5+
# knitr doesn't actually clean it's own cache properly; this just deletes any of
6+
# the article knitr caches in vignettes or the base
7+
clean_knitr:
8+
rm -r *_cache; rm -r vignettes/*_cache
9+
clean_site:
10+
Rscript -e "pkgdown::clean_cache(); pkgdown::clean_site()"
11+
# this combines
12+
clean: clean_knitr clean_site
13+
14+
# end
-1.45 KB
Loading

0 commit comments

Comments
 (0)