".onAttach" <-
function(lib, pkg) {
MSG <- packageStartupMessage # renaming the function
dsc <- packageDescription(pkg) # function will not be found without
# loading the utils package in the Depends: section of the DESCRIPTION
if(interactive() || getOption("verbose")) {
MSG(sprintf("Package %s (%s) loaded.", pkg, dsc$Version))
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.