R/get_package_info.R

Defines functions get_package_info

get_package_info <- function(pkg, verbose = TRUE) {

  if (verbose) {
    message(
      glue::glue("Getting info for {pkg}\n")
    )
  }
  
  # make the call for the package
  run <- glue::glue("{pkg}::get_info_{pkg}()")

  try(eval(parse(text = run)))
}
Covid19R/covid19Rdata documentation built on Jan. 29, 2021, 10:51 p.m.