Skip to content

Commit

Permalink
reuse is_quiet
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed Jan 17, 2024
1 parent 5d64cec commit f717215
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions R/lifecycle.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,14 @@ use_lifecycle <- function() {
ui_done("Copied SVG badges to {ui_path(dest_dir)}")

ui_todo("Add badges in documentation topics by inserting one of:")
cli::cli_bullets(c(
" " = "#' `r lifecycle::badge('experimental')`",
" " = "#' `r lifecycle::badge('superseded')`",
" " = "#' `r lifecycle::badge('deprecated')`"
))
if (!is_quiet()) {
# to preserve white spaces
cli::cli_bullets(c(
" " = "#' `r lifecycle::badge('experimental')`",
" " = "#' `r lifecycle::badge('superseded')`",
" " = "#' `r lifecycle::badge('deprecated')`"
))
}

invisible(TRUE)
}

0 comments on commit f717215

Please sign in to comment.