cat_cli: Function to transform message to output

View source: R/cat_cli.R

cat_cliR Documentation

Function to transform message to output

Description

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"))
})

mlr-org/mlr3misc documentation built on Feb. 10, 2025, 12:48 p.m.