R/zzz.r

Defines functions .onUnload .onLoad .onAttach

.onAttach <- function(libname,pkgname)
{
#require("stats",character.only=TRUE,quietly=TRUE,warn.conflicts=FALSE)
#require("utils",character.only=TRUE,quietly=TRUE,warn.conflicts=FALSE)
ver <- utils::packageDescription(pkgname,fields="Version")
packageStartupMessage(paste(pkgname,ver,sep=" "))
}

.onLoad <- function(libname,pkgname)
{
library.dynam("pgam",pkgname,libname)
}

.onUnload <- function(libpath)
{
# unloading process 
library.dynam.unload("pgam",libpath)
}

Try the pgam package in your browser

Any scripts or data that you put into this service are public.

pgam documentation built on Aug. 20, 2022, 1:06 a.m.