R/onStart.R

Defines functions .onAttach

.onAttach <- function(libname, pkgname) {
  pkg.version <- read.dcf(file = system.file("DESCRIPTION", package = pkgname),
                            fields = "Version")
  packageStartupMessage(paste("\n",
                              paste(pkgname,
                              pkg.version,
                              "is installed!"),
                              "\n",
                              paste0(pkgname, " is built on R ", version$major, ".", version$minor, "."),
                              "\n",
                              "\n",
                              "Type fastcmprsk:::getNews_fastcmprsk() to see changes and updates to the package.",
                              "\n",
                              "Go to https://github.com/erickawaguchi/fastcmprsk/ for latest updates!",
                              "\n",
                              "\n"))
}
erickawaguchi/fastcmprsk documentation built on Nov. 1, 2024, 10:09 p.m.