.onLoad <- function(libname, pkgname)
{
libraries()
theme_set(theme_cowplot())
}
.onAttach <- function(libname, pkgname)
{
descriptionfile <- system.file("DESCRIPTION", package = "mu")
descfile <- desc::desc(descriptionfile)
packageStartupMessage(paste0("#### MU v",
installed.packages()['mu','Version'],
" | ",
descfile$get_field("Date"),
" ####"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.