R/zzz.R

Defines functions check4pkg

check4pkg <- function(pkg) {
  if (!requireNamespace(pkg, quietly = TRUE)) {
    stop(sprintf("The %s package is required; please install it.", pkg), call. = FALSE)
  } else {
    invisible(TRUE)
  }
}

Try the cowsay package in your browser

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

cowsay documentation built on Nov. 3, 2023, 1:16 a.m.