R/parse_quiet_flag.R

Defines functions parse_quiet_flag

#' Parse Quiet Flag From Verbosity Level
#'
#' @param verbose Character string specifying the verbosity level.
#' @keywords internal
#' @noRd
parse_quiet_flag <- function(verbose) {
  if (isTRUE(verbose)) {
    verbose <- "full"
  }
  if (isTRUE(verbose %in% c("full"))) {
    quiet_flag <- NULL
  } else {
    quiet_flag <- "--quiet"
  }
  return(quiet_flag)
}

Try the condathis package in your browser

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

condathis documentation built on April 12, 2025, 2:01 a.m.