.onLoad <- function(libname, pkgname){
# create the environment we will use to store data
currEnv <- search()
if (!("knitcitationVars" %in% currEnv)){
e1 <- new.env()
attach(e1, name="knitcitationVars")
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.