R/zzz.R

".onAttach" <-
function(lib, pkg) {
  MSG <- packageStartupMessage # renaming the function
  dsc <- packageDescription(pkg) # function will not be found without
  # loading the utils package in the Depends: section of the DESCRIPTION
  if(interactive() || getOption("verbose")) {
    MSG(sprintf("Package %s (%s) loaded.", pkg, dsc$Version))
  }
}
wasquith-usgs/vertPipeFlow documentation built on May 30, 2019, 4:11 p.m.