R/zzz.R

Defines functions onAttach

.onAttach <- function(libname, pkgname) {
    VERSION <- utils::packageDescription(pkgname)$Version
    acro <- ""
    acro <- paste0(acro, "##  PPP    OO   DDD\n")
    acro <- paste0(acro, "##  P  P  O  O  D  D\n")
    acro <- paste0(acro, "##  PPP  O    O D   D\n")
    acro <- paste0(acro, "##  P     O  O  D  D\n")
    acro <- paste0(acro, "##  P      OO   DDD\n")

    msg <- paste0( acro, "##\n##  ", "Loading package '", pkgname, "' version ", VERSION, ".\n##  "
        , "Type help(package=", pkgname, ") for help.\n##  "
        , "Type citation(package='", pkgname,"') for citation.\n##  "
        , "For your suggestions and bug-reports please contact: <[email protected]>\n##  "
        , "Latest patches can also be found at: <https://github.com/markusboenn/POD>\n##  " 
        )
    packageStartupMessage(msg)
}
markusboenn/POD documentation built on April 6, 2019, 2:18 a.m.