R/check_dep.R

Defines functions check_dep

check_dep <- function(dep){
  if(!requireNamespace(dep, quietly = TRUE)){
    stp <- paste("Package",shQuote(dep),
                 "must be installed to use this function.")
    stop(stp,
         call. = FALSE)
  }
}
serachoi1230/EpiCompare documentation built on Jan. 30, 2024, 11:37 a.m.