R/onLoad.R

Defines functions .onLoad

.onLoad = function(libname, pkgname){
# Check installed packages, and install any missing
#ToInstall = setdiff( c("rjags","R2jags","runjags","superdiag","pscl","statmod","stats"), installed.packages() )
#if(length(ToInstall)>0) install.packages( ToInstall )

# load default data into workspace (THIS IS NOW DONE IN THE DESCRIPTION FILE
#require(rjags)
#require(R2jags)
#require(runjags)
#require(superdiag)
#require(pscl)
#require(statmod)
#require(stats)

options(stringsAsFactors=TRUE)
Letters = apply(MARGIN=1,FUN=paste,collapse="",expand.grid(letters,letters))

# assign to this environment to keep from overwriting user's workspace
assign("Letters", Letters, envir=.GlobalEnv)

# Provide information for installing JAGS
print("NOTICE TO USER, THIS PACKAGE REQUIRES PRIOR INSTALLATION OF JAGS, AVAILABLE HERE: http://mcmc-jags.sourceforge.net/")

}

Try the nwfscDeltaGLM package in your browser

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

nwfscDeltaGLM documentation built on May 2, 2019, 6:30 p.m.