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 April 30, 2024, 3:58 p.m.