diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 176280fa..1dee6b8b 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -35,6 +35,8 @@ R -e 'devtools::document()' R -e 'pkgdown::build_site(lazy = TRUE, examples = FALSE, devel = TRUE, preview = FALSE)' ``` +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). + If you work without R Studio and want to iterate on documentation, you might 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. diff --git a/Makefile b/Makefile new file mode 100644 index 00000000..9f5790ac --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +## +# epipredict docs build +# + +# knitr doesn't actually clean it's own cache properly; this just deletes any of +# the article knitr caches in vignettes or the base +clean_knitr: + rm -r *_cache; rm -r vignettes/*_cache +clean_site: + Rscript -e "pkgdown::clean_cache(); pkgdown::clean_site()" +# this combines +clean: clean_knitr clean_site + +# end diff --git a/man/figures/README-show-single-forecast-1.png b/man/figures/README-show-single-forecast-1.png index 4017b2a1..13e66fd4 100644 Binary files a/man/figures/README-show-single-forecast-1.png and b/man/figures/README-show-single-forecast-1.png differ