Skip to content

Commit

Permalink
precompile: loop over orig files (#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
sbfnk authored Mar 6, 2024
1 parent c5f2437 commit 45f0ed5
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions vignettes/precompile.R
Original file line number Diff line number Diff line change
@@ -1,15 +1,7 @@
# Vignettes that have long run times

library("knitr")
knit(
"estimate_infections_options.Rmd.orig",
"estimate_infections_options.Rmd"
)
knit(
"estimate_infections_workflow.Rmd.orig",
"estimate_infections_workflow.Rmd"
)
knit(
"epinow.Rmd.orig",
"epinow.Rmd"
)
orig_files <- list.files(pattern = "Rmd.orig$")
for (f in orig_files) {
knit(f, sub(".orig$", "", f))
}

0 comments on commit 45f0ed5

Please sign in to comment.