Learn R Programming

mlr3misc (version 0.17.0)

cat_cli: 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

Run this code
cat_cli({
  cli::cli_h1("Heading")
  cli::cli_li(c("x", "y"))
})

Run the code above in your browser using DataLab