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)
  }
}
neurogenomics/EpiCompare documentation built on Oct. 18, 2024, 11:04 p.m.