R/utils.R

Defines functions check_installed

check_installed <- function(package) {
  if (!requireNamespace(package, quietly = TRUE)) {
    stop(sprintf("The package \"%s\" is required.", package), call. = FALSE)
  }
}

Try the monad package in your browser

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

monad documentation built on Oct. 28, 2024, 5:07 p.m.