Skip to content

Commit

Permalink
make for manually clearing the caches
Browse files Browse the repository at this point in the history
  • Loading branch information
dsweber2 committed Jan 23, 2025
1 parent 34b018a commit dc6e1bf
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DEVELOPMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
14 changes: 14 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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
Binary file modified man/figures/README-show-single-forecast-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dc6e1bf

Please sign in to comment.