# All the fns here check that {cli} is installed
# before doing anything.
check_cli_installed <- function(reason = "to have attractive command line interfaces with {golem}.\nYou can install all {golem} dev dependencies with `golem::install_dev_deps()`.") {
rlang::check_installed(
"cli",
version = "2.0.0",
reason = reason
)
}
cli_cat_bullet <- function(...) {
check_cli_installed()
do_if_unquiet({
cli::cat_bullet(...)
})
}
cli_cat_line <- function(...) {
check_cli_installed()
do_if_unquiet({
cli::cat_line(...)
})
}
cli_cat_rule <- function(...) {
check_cli_installed()
do_if_unquiet({
cli::cat_rule(
...
)
})
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.