R/utils.R

Defines functions abort

# future implementations for interface
#
# be_quiet <- function() {
#   getOption("halfmoon.quiet", default = FALSE)
# }
#
# alert_info <- function(.message) {
#   if (!be_quiet()) {
#     cli::cli_alert_info(text = .message)
#   }
# }

abort <- function(.message) {
  cli::cli_abort(message = .message)
}

Try the halfmoon package in your browser

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

halfmoon documentation built on May 31, 2023, 5:22 p.m.