R/zzz.R

Defines functions .onAttach .onLoad

#' @import utils
.onLoad <- function(libname = find.package("peakPantheR"),
                    pkgname = "peakPantheR"){
    # CRAN Note avoidance
    if(getRversion() >= "2.15.1") {
        utils::globalVariables(
        # data.frame column names used in ggplot (cannot use aes_string due to
        # transformations to the column in aes())
        c("x","y","colr","..density..","rt","int","specID", "rt_dev_sec",
        "isReference", "predictedRtDrift")
        )
        invisible()
    }
}

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

Try the peakPantheR package in your browser

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

peakPantheR documentation built on Nov. 8, 2020, 6:38 p.m.