dvirPreamble <- paste(c("\\documentclass[12pt]{standalone}",
"\\begin{document}"),
collapse="\n")
dvirPostamble <- "\\end{document}"
.onLoad <- function(libname, pkgname) {
initFontMap()
initFontConfig()
initLua()
options(dvir.preamble=dvirPreamble,
dvir.postamble=dvirPostamble,
dvir.initFonts=FALSE)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.