R/zzz.R

.onLoad <- function(libname, pkgname) { }

.onAttach <- function(...) {
  theLib <- dirname(system.file(package = "rethinking"))
  pkgdesc <- packageDescription("rethinking", lib.loc = theLib)
  builddate <- gsub(';.*$', '', pkgdesc$Packaged)
  msg <- paste("rethinking (Version ", pkgdesc$Version, ")", sep = "")
  packageStartupMessage(msg)
}
joepowers16/rethinking documentation built on June 2, 2019, 6:52 p.m.