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 Nov. 4, 2023, 12:05 a.m.