# reference: https://github.com/rstudio/r2d3/blob/master/R/zzz.R
.onAttach <- function(...) {
knitr::knit_engines$set(
vegajson = engine("json"),
vegayaml = engine("yaml"),
vegayml = engine("yaml")
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.