if (interactive()) {
hello_rust <- function(..., quiet = FALSE) {
local_quiet_cli(quiet)
cli::cli_alert_info("This should be silenced when {.code quiet = TRUE}")
}
hello_rust()
hello_rust(quiet = TRUE)
}
Run the code above in your browser using DataLab