Skip to contents

Wrapper around cli::cli_format_method(). Uses base::cat() to transform the printout from a message to an output with a line break.

Usage

cat_cli(expr)

Arguments

expr

(any)
Expression that calls cli_* methods, base::cat() orbase::print() to format an object's printout.

Examples

cat_cli({
  cli::cli_h1("Heading")
  cli::cli_li(c("x", "y"))
})
#> 
#> ── Heading ─────────────────────────────────────────────────────────────────────
#> • x
#> • y