.onAttach <-
function(lib, pkg, ...)
{
pkgDescription <- packageDescription(pkg)
pkgVersion <- pkgDescription$Version
pkgDate <- pkgDescription$Date
pkgName <- pkgDescription$Package
pkgTitle <- pkgDescription$Title
pkgAuthor <- pkgDescription$Author
pkgMaintainer <- pkgDescription$Maintainer
packageStartupMessage(paste("\n", pkgName, ": ", pkgTitle, sep = ""))
packageStartupMessage(paste("Version ", pkgVersion, " (", pkgDate, ") installed", sep = ""))
packageStartupMessage(paste("Author: ", pkgAuthor, sep = ""))
packageStartupMessage(paste("Maintainer: ", pkgMaintainer, "\n", sep = ""))
packageStartupMessage('Tutorial: https://github.com/xiashen/TGCA\n')
packageStartupMessage('Use citation("TGCA") to know how to cite this work.\n')
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.