R/zzz.R

# ##
# Anything needed for the functioning of the namespace should 
# be handled at load/unload times by the .onLoad and .onUnload 
# hooks. For example, DLLs can be loaded (unless done by a 
#                                         useDynLib directive in 
#                                         the NAMESPACE file) 
# and initialized in .onLoad and unloaded in .onUnload. 
# Use .onAttach only for actions that are needed only when the 
# package becomes visible to the user (for example a start-up message) 
# or need to be run after the package environment has been created.

.onUnload <- function(libpath)
{
  ##library.dynam.unload("strain", libpath)
}
##
# executed after .onLoad is executed, once the namespace is visible to user
.onAttach <- function(...) {
  ##
  ## add some info to the environment
  ##psd:::psd_envAssign("init", "initialized upon attach")
  ##
  pack <- "irisws"
  packageStartupMessage(sprintf("Loaded %s (%s) -- IRIS Web Services (http://service.iris.edu/) Interface", 
                                pack,
                                utils::packageVersion(pack)))
}
abarbour/irisws documentation built on May 10, 2019, 4:07 a.m.