R/zzz.R

Defines functions .onAttach .onLoad

.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)
}
rmcelreath/rethinking documentation built on Sept. 18, 2023, 2:01 p.m.