R/zzz.R

Defines functions .onLoad .onAttach

# zzz.R is the conventional location to define .onAttach()

.onAttach <- function(libname, pkgname){

  pkg.info <- drop(read.dcf(file = system.file("DESCRIPTION",
                package = "LAGOSNE"), fields = c("Title", "Version", "Date")))

  gigascience_cite <-
  "https://lagoslakes.org/how-to-cite-lagos-ne/"

  if(interactive()){
    packageStartupMessage(paste0("Welcome to the LAGOSNE R package. To cite LAGOSNE in publications see: \n ",
    gigascience_cite))
  }
}

utils::globalVariables(c('lagoslakeid'))

.onLoad <- function(libname, pkgname) {
  lagosne_load <<- memoise::memoise(lagosne_load)
}

Try the LAGOSNE package in your browser

Any scripts or data that you put into this service are public.

LAGOSNE documentation built on July 9, 2023, 5:10 p.m.