R/onLoad.R

.onLoad <- function(lib, pkg){
  #automatically loads the dataset when package is loaded
  #do not use this in combination with lazydata=true
  utils::data(model, package = pkg, envir = parent.env(environment()))
}
nguforche/Vira documentation built on June 2, 2019, 9:08 p.m.