# Precompiled vignettes with long run times
library(knitr)
library(usethis)
wd <- getwd() # assuming somewhere in the project ...
setwd(proj_path("vignettes"))
markerpat <- "\\.orig$"
tocompile <- list.files(pattern = markerpat)
lapply(tocompile, \(x) {
knit(x, sub(markerpat, "", x))
})
setwd(wd)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.