R/quarto-args.R

Defines functions append_cli_args cli_arg_quiet cli_arg_profile

cli_arg_profile <- function(profile, ...) {
  arg <- c("--profile", paste0(profile, collapse = ","))
  append_cli_args(arg, ...)
}

cli_arg_quiet <- function(...) {
  append_cli_args("--quiet", ...)
}

append_cli_args <- function(new, append_to = NULL, after = length(append_to)) {
  if (!is.null(append_to)) {
    return(append(append_to, new, after))
  }
  new
}

Try the quarto package in your browser

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

quarto documentation built on May 29, 2024, 5:31 a.m.