local_quiet_cli | R Documentation |
{cli}
outputUse for functions that use cli output that should optionally be suppressed.
local_quiet_cli(quiet, env = rlang::caller_env())
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)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.