R/zzz.R

Defines functions .onAttach

Documented in .onAttach

# 2020-01-01 CJS Now using TMB for optimization
#
#' Message to display when package is loaded
#' 
#' @importFrom utils packageVersion
#' @keywords internal
#'

.onAttach <- function(libname,pkgname){

  packageStartupMessage("***** SPAS: Stratified Petersen Analysis System - Version ", utils::packageVersion("SPAS"), " ***** \n\n",
        "      Help available with  help(package='SPAS') \n",
        '      Several vignettes are available. See browseVignettes(package="SPAS") \n\n')
}


# SEE http://r-pkgs.had.co.nz/src.html on why you need the following
.onUnload <- function (libpath) {
  library.dynam.unload("SPAS", libpath)
}
cschwarz-stat-sfu-ca/SPAS documentation built on Feb. 9, 2025, 10:06 a.m.