withr::with_dir(
rprojroot::find_package_root_file("vignettes"), {
src4 <- knitr::knit_expand(
file = "_variables-template.Rmd",
version = 4
)
writeLines(src4, "bs4-variables/index.Rmd")
src5 <- knitr::knit_expand(
file = "_variables-template.Rmd",
version = 5
)
invisible(writeLines(src5, "bs5-variables/index.Rmd"))
}
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.