R/zzz.R

Defines functions .onUnload .onLoad

# R/zzz.R

.onLoad <- function(libname, pkgname) {
  # This explicitly ensures the shared object is loaded for the current namespace
  # This is a safer way to get the DLLInfo object R is complaining about.
#  utils::getFromNamespace("loadNamespace", "base")(pkgname)
}

.onUnload <- function(libpath) {
  # library.dynam.unload uses the package name
  library.dynam.unload("tweedie", libpath)
}

Try the tweedie package in your browser

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

tweedie documentation built on Feb. 7, 2026, 5:07 p.m.