R/firstlib.R

Defines functions onUnload onLoad

############ First.lib ###############

.onLoad <- function(lib, pkg){
   require(rjags)
   require(INLA)
   library.dynam("bayesGen", pkg, lib)
}

.onUnload <- function(libpath)
    library.dynam.unload("bayesGen", libpath)


############ End of .First.lib ###############
isglobal-brge/bayesGen documentation built on Nov. 18, 2017, 2:02 p.m.