.onLoad <- function(libname, pkgname) {
ns <- getNamespace(pkgname);
pkg <- Package(pkgname);
assign(pkgname, pkg, envir=ns);
} # .onLoad()
.onAttach <- function(libname, pkgname) {
pkg <- get(pkgname, envir=getNamespace(pkgname));
startupMessage(pkg);
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.