R/utils-requires.R

Defines functions .need_pkg

.need_pkg <- function(pkg) {
  if (!requireNamespace(pkg, quietly = TRUE)) {
    stop(
      sprintf("Package '%s' is required for this feature. Install it with install.packages('%s').", pkg, pkg),
      call. = FALSE
    )
  }
}

Try the hydrodownloadR package in your browser

Any scripts or data that you put into this service are public.

hydrodownloadR documentation built on Feb. 25, 2026, 5:08 p.m.