.onAttach <- function(...) {
assign(".pkgenv", new.env(parent = emptyenv()), envir = .GlobalEnv)
assign("latex_plot_counter", 1L, envir = .pkgenv)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.