Write some text to the screen. This function is most appropriate for
longer paragraphs. See cli_alert()
for shorter status messages.
Usage
cli_text(..., .envir = parent.frame())
Arguments
- ...
The text to show, in character vectors. They will be concatenated into a single string. Newlines are not preserved.
- .envir
Environment to evaluate the glue expressions in.
Details
Text wrapping
Text is wrapped to the console width, see console_width()
.
cli_text(cli:::lorem_ipsum())
Styling
You can use inline markup, as usual.
cli_text("The {.fn cli_text} function in the {.pkg cli} package.")
Styling and interpolation
Use double braces to combine styling and string interpolation.
fun <- "cli-text"
pkg <- "cli"
cli_text("The {.fn {fun}} function in the {.pkg {pkg}} package.")