File: onAttach.R

package info (click to toggle)
r-cran-eco 4.0-1-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 772 kB
  • sloc: ansic: 4,214; makefile: 2
file content (6 lines) | stat: -rw-r--r-- 284 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
".onAttach" <- function(lib, pkg) {
  mylib <- dirname(system.file(package = pkg))
  title <- packageDescription(pkg, lib.loc = mylib)$Title
  ver <- packageDescription(pkg, lib.loc = mylib)$Version
  packageStartupMessage(paste(pkg, ": ", title, "\nVersion: ", ver, "\n", sep=""))
}