R/zzz.R

Defines functions .onUnload .onLoad .onAttach

.onAttach <- function(libname, pkgname) {
    packageStartupMessage(
        paste("\nThis is xcms version", packageVersion("xcms"), "\n"))
}

.onLoad <- function(libname, pkgname) {
    # require(methods)
    .setXCMSOptions(pkgname)
}

.onUnload <- function(libpath) {
    ## mzR:::rampCloseAll()  # Makes only sense if we used ramp.
    library.dynam.unload("xcms", libpath)
}
xiaodfeng/DynamicXCMS documentation built on Aug. 6, 2023, 3:02 p.m.