.onAttach <- function(libname, pkgname) {
pkg.version <- read.dcf(file = system.file("DESCRIPTION", package = pkgname),
fields = "Version")
packageStartupMessage(paste("\n",
paste(pkgname,
pkg.version,
"is installed!"),
"\n",
"\n",
"Type getNews_pshBAR() to see changes and updates to the package.",
"\n",
"\n"))
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.