cli: Compose multiple cli functions

Description Usage Arguments Details Value Examples

View source: R/cli.R

Description

cli() will record all cli_* calls in expr, and emit them together in a single message. This is useful if you want to built a larger piece of output from multiple cli_* calls.

Usage

1
cli(expr)

Arguments

expr

Expression that contains cli_* calls. Their output is collected and sent as a single message.

Details

Use this function to build a more complex piece of CLI that would not make sense to show in pieces.

Value

Nothing.

Examples

1
2
3
4
5
cli({
  cli_h1("Title")
  cli_h2("Subtitle")
  cli_ul(c("this", "that", "end"))
})

cli documentation built on April 26, 2021, 5:06 p.m.

Related to cli in cli...