# zzz.R is the conventional location to define .onAttach()
.onAttach <- function(lib, pkg){
pkg.info <- drop(read.dcf(file = system.file("DESCRIPTION",
package = "LAGOSUS"), fields = c("Title", "Version", "Date")))
gigascience_cite <-
"https://lagoslakes.org"
if (interactive()) {
packageStartupMessage(paste0("Welcome to the LAGOSUS R package. To cite LAGOSUS in publications see: \n ",
gigascience_cite))
}
}
utils::globalVariables(c('lagoslakeid'))
.onLoad <- function(libname, pkgname) {
lagosus_load <<- memoise::memoise(lagosus_load)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.