R/zzz.R

Defines functions .onLoad .onAttach

#' @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..")
      )
    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 May 1, 2019, 10:53 p.m.