R/zzz.R

.dbEnv <- new.env()

.onLoad <- function(lib, pkg) {
    stashROption("quietDownload", TRUE)
}

.onAttach <- function(lib, pkg) {
    dcf <- read.dcf(file.path(lib, pkg, "DESCRIPTION"))
    msg <- gettextf("%s (%s %s)", dcf[, "Title"],
                    as.character(dcf[, "Version"]), dcf[, "Date"])
    packageStartupMessage(paste(strwrap(msg), collapse = "\n"))
    packageStartupMessage("Initialize database using 'initMCAPS'")
}

Try the MCAPS package in your browser

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

MCAPS documentation built on Jan. 15, 2017, 7:51 a.m.