R/zzz.R

Defines functions .onUnload .onAttach

.onAttach <- function(libname, pkgname){
    ver <- read.dcf(file=system.file("DESCRIPTION", package=pkgname),
                    fields=c("Version", "Date"))
    packageStartupMessage(paste(pkgname, ver[1], "\t", ver[2]))
    #if (is.null(getOption("WildLift"))) {
    #    options("WildLift" = list()) # options can come here
    #}
    invisible(NULL)
}

.onUnload <- function(libpath){
    #options("WildLift" = NULL)
    invisible(NULL)
}
ABbiodiversity/WildLift documentation built on Aug. 30, 2021, 7:08 a.m.