Packages can supply functions to be called when loaded, attached, detached or unloaded.
.onLoad(libname, pkgname)
.onAttach(libname, pkgname)
.onUnload(libpath)
.onDetach(libpath)
.Last.lib(libpath)
| Parameter | Description |
|---|---|
libname |
a character string giving the library directory where the package defining the namespace was found. |
pkgname |
a character string giving the name of the package. |
libpath |
a character string giving the complete path to the package. |