swh:1:snp:ffdd0a7d2c8ea15ad41d45b3b178f668bd942287
Tip revision: 80d5122a913be7c42b7c47733a0423a3e1f6358f authored by Derek Young on 08 September 2008, 22:50:14 UTC
version 0.3.2
version 0.3.2
Tip revision: 80d5122
zzz.R
######################################################################
#
# zzz.r
#
# Licensed under the GNU General Public License version 2 (June, 1991)
#
# Part of the R/mixtools package
#
# .First.lib is run when the package is loaded with library(mixtools)
#
######################################################################
.First.lib <- function(lib, pkg){
library.dynam("mixtools", pkg, lib)
DESCpath <- file.path(system.file(package="mixtools"), "DESCRIPTION")
info <- read.dcf(DESCpath)
# info <- read.dcf(file.path(lib, pkg, "DESCRIPTION")) does the same thing but
# the other way works even outside the .First.lib function
cat(pkg,'package version', info[,"Version"], ' Released', info[,"Date"], '\n')
cat('Type help(package="mixtools") to get started.\n')
}
.Last.lib <- function(libpath){
library.dynam.unload("mixtools",libpath)
}