swh:1:snp:ffdd0a7d2c8ea15ad41d45b3b178f668bd942287
Raw File
Tip revision: 2e588ec5054224d6aaad30daa05d001515d50076 authored by Derek Young on 20 October 2009, 19:31:16 UTC
version 0.4.3
Tip revision: 2e588ec
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')
    cat('This package is based upon work supported by the National Science Foundation under Grant No. SES-0518772.\n')
}

.Last.lib <- function(libpath){
  library.dynam.unload("mixtools",libpath)
}

back to top