R/tidyHtmlTable_helpers_safeLoadPkg.R

Defines functions safeLoadPkg

# You need the suggested package for this function
safeLoadPkg <- function(pkg) {
  if (!requireNamespace(pkg, quietly = TRUE)) {
    stop("The package ", pkg, " is needed for this function to work. Please install it.",
      call. = FALSE
    )
  }
}
gforge/htmlTable documentation built on July 24, 2024, 7:42 a.m.