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(recommender, package = pkg, envir = parent.env(environment()))
}
paulij/recommendMovies documentation built on May 24, 2019, 8:44 p.m.