R/onAttach.R

Defines functions .onAttach

#'
#' @noRd
#'
.onAttach <- function(libname, pkgname) {
  options(ChemoSpecGraphics = "ggplot2")
  .chkReqGraphicsPkgs("ggplot2")

  packageStartupMessage("\nAs of version 6, ChemoSpec offers new graphics output options")
  packageStartupMessage("For details, please see ?GraphicsOptions")
  packageStartupMessage("\nThe ChemoSpec graphics option is set to 'ggplot2'")
  packageStartupMessage("To change it, do\n\toptions(ChemoSpecGraphics = 'option'),\n\twhere 'option' is one of 'base' or 'ggplot2' or'plotly'.")
}
bryanhanson/ChemoSpec documentation built on Jan. 9, 2022, 6:41 p.m.