R/zzz.R

Defines functions attach_recon_packages onAttach

.onAttach <- function(libname, pkgname) {
  attach_recon_packages()
}

attach_recon_packages <- function() {
  packages <- c("epicontacts", "outbreaks", "incidence")
  for(pkg in packages) {
    message("Attaching package ", pkg)
    eval(substitute(suppressPackageStartupMessages(fun(x)),
                    list(x = pkg, fun = as.symbol("library"))))
  }
}
reconhub/reconhub documentation built on June 5, 2017, 11:11 p.m.