R/zzz.R

Defines functions onUnload onLoad

### Lastest load into a package.

### Export Namespace does not use .First.lib() and .Last.lib(), but use
### .onLoad() and .onUnload().
# .First.lib <- function(lib, pkg){
# } # End of .First.lib().

# .Last.lib <- function(libpath){
# } # End of .Last.lib().

.onLoad <- function(libname, pkgname){
  library.dynam("MixSim", pkgname, libname)
} # End of .onLoad().

.onUnload <- function(libpath){
  library.dynam.unload("MixSim", libpath)
} # End of .onUnload().
snoweye/MixSim documentation built on May 26, 2017, 1:27 p.m.