.onLoad <- function(libname, pkgname) {
# stackoverflow.com/questions/12598242/global-variables-in-packages-in-r
# Want to have package global variables that allow you to turn warnings
# on or off for all jakemisc functions, and set ref on or off for all
# functions. Based on SOF research, it looks like this approach is the best
# one!
assign("pkg_globals", new.env(), envir=parent.env(environment()))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.