Thanks, Brian. So, to print the version number when 'mypackage' is loaded,
.First.lib <- function(lib, pkg) {
library.dynam("mypackage", pkg, lib)
vvv <- read.dcf(file=system.file("DESCRIPTION", package="mypackage"),
fields="Version")
cat(paste("mypackage", vvv, "\n"))
}
______________________________________________
[email protected] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
