.onLoad <- function(libname, pkgname) {
if (exists(".hslikeStarted", .GlobalEnv))
return()
invisible(assign('.hslikeStarted', TRUE, pos=.GlobalEnv))
}
.onUnload <- function(libname, pkgname) {
if (!exists(".hslikeStarted", .GlobalEnv))
return()
invisible(remove('.hslikeStarted', pos=.GlobalEnv))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.