knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(doublecrochet)
Let's just render the template...
# should be done in console - adjust file path as needed... rmarkdown::render("vignettes/cool_xaringan_stuff.Rmd")
doublecrochet::crochet("cool_xaringan_stuff.Rmd")
And then render the double crocheted output...
# should be done in console - adjust file path as needed... rmarkdown::render("vignettes/cool_xaringan_stuff_double_crochet.Rmd")
file.copy(to = "../inst/rmarkdown/templates/double-crochet/skeleton/skeleton.Rmd", from = "cool_xaringan_stuff.Rmd", overwrite = T) file.copy(to = "../inst/rmarkdown/templates/examples/skeleton/skeleton.Rmd", from = "examples.Rmd", overwrite = T) file.copy(to = "../inst/rmarkdown/templates/mathtype/skeleton/skeleton.Rmd", from = "mathproblems.Rmd", overwrite = T)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.