wenv <- new.env()
wenv_init <- function(){
assign('tex' , FALSE ,envir = wenv)
assign('get' , FALSE ,envir = wenv)
assign('build' , FALSE ,envir = wenv)
}
.onLoad <- function(lib,pkg) {
wenv_init()
if(interactive()){
check_base_req()
rc.options(custom.completer = completeme)
register_completion(thispkg = populate)
}
register_eng_texpreview('texpreview', eng_texpreview)
}
.onAttach <- function(lib,pkg) {
wenv_init()
if(interactive()){
check_base_req()
rc.options(custom.completer = completeme)
register_completion(thispkg = populate)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.