R/onAttach.R

Defines functions .onAttach

Documented in .onAttach

#' @title Prints welcome message on package attachment
#' @description Prints package version number and welcome message on package
#' load
#' @param libname library location. See `?base::.onAttach` for details
#' @param pkgname package name. See `?base::.onAttach` for details
.onAttach <- function(libname, pkgname) {
  version <- read.dcf(
    file   = system.file("DESCRIPTION", package = pkgname),
    fields = "Version"
  )
  packageStartupMessage(
    "This is ", paste(pkgname, version), "\n",
    "To learn more about the package, please read the documentation available ",
    "in the commands below:\n",
    "help(\"permChacko-package\")\n",
    "browseVignettes(\"permChacko\")"
  )
}

Try the permChacko package in your browser

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

permChacko documentation built on May 29, 2024, 2:14 a.m.