R/onAttach.R

Defines functions .onAttach

### welcome message
#' @importFrom utils packageDescription
.onAttach <- function(lib, pkg) {
  meta <- utils::packageDescription("collin")
  attachmsg <- paste0("\nThis is collin ",
                      meta$Version,
                      ". For details, use:\n",
                      "> help(package = 'collin') and browseVignettes('collin')\n\n",
                      "To cite the methods in the package use:\n",
                      "> citation('collin')\n")
  packageStartupMessage(attachmsg, domain = NULL, appendLF = TRUE)
}

Try the collin package in your browser

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

collin documentation built on Sept. 19, 2023, 5:06 p.m.