Skip to content

Commit b837da1

Browse files
committed
make for manually clearing the caches
1 parent 6ae998c commit b837da1

File tree

2 files changed

+16
-0
lines changed

2 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()'
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 [this
4042
script](https://gist.github.com/gadenbuie/d22e149e65591b91419e41ea5b2e0621)

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

0 commit comments

Comments
 (0)