From 4b3bdf72c5c0b2256ac86736d303d820e06b5093 Mon Sep 17 00:00:00 2001 From: Mike O'Brien Date: Wed, 10 Jan 2024 12:26:16 -0500 Subject: [PATCH] track vignette precompiler --- vignettes/.gitignore | 1 + vignettes/precompile.R | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 vignettes/precompile.R diff --git a/vignettes/.gitignore b/vignettes/.gitignore index 097b241..aff8f7d 100644 --- a/vignettes/.gitignore +++ b/vignettes/.gitignore @@ -1,2 +1,3 @@ *.html *.R +!precompile.R diff --git a/vignettes/precompile.R b/vignettes/precompile.R new file mode 100644 index 0000000..d95bad7 --- /dev/null +++ b/vignettes/precompile.R @@ -0,0 +1,8 @@ +# Precompiled vignettes that depend on API key +# borrowed from https://github.com/ropensci/eia/blob/master/vignettes/precompile.R +# and this blog post https://ropensci.org/blog/2019/12/08/precompute-vignettes/ + +library(knitr) +knit("vignettes/introduction.Rmd.orig", "vignettes/introduction.Rmd") +knit("vignettes/matos-otndo.Rmd.orig", "vignettes/matos-otndo.Rmd") +knit("vignettes/multiple-projects.Rmd.orig", "vignettes/multiple-projects.Rmd")