GenelandStartupMessage <- function()
{
msg <- c(paste0(
"Geneland version ",
packageVersion("Geneland")),
"\nType 'citation(\"Geneland\")' for citing this R package in publications.")
return(msg)
}
.onAttach <- function(lib, pkg)
{
# startup message
msg <- GenelandStartupMessage()
if(!interactive())
msg[1] <- paste("Package 'Geneland' version", packageVersion("Geneland"))
packageStartupMessage(msg)
invisible()
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.