It is wrapped to the screen width automatically. It may contain inline markup. (See inline-markup.)

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.

Examples

cli_text("Hello world!")
#> Hello world!
cli_text(packageDescription("cli")$Description)
#> A suite of tools to build attractive command line interfaces ('CLIs'), from #> semantic elements: headings, lists, alerts, paragraphs, etc. Supports #> custom themes via a 'CSS'-like language. It also contains a number of lower #> level 'CLI' elements: rules, boxes, trees, and 'Unicode' symbols with #> 'ASCII' alternatives. It integrates with the 'crayon' package to support #> 'ANSI' terminal colors.
## Arguments are concatenated cli_text("this", "that")
#> thisthat
## Command substitution greeting <- "Hello" subject <- "world" cli_text("{greeting} {subject}!")
#> Hello world!
## Inline theming cli_text("The {.fn cli_text} function in the {.pkg cli} package")
#> The `cli_text()` function in the cli package
## Use within container elements ul <- cli_ul() cli_li() cli_text("{.emph First} item")
#> First item
cli_li() cli_text("{.emph Second} item")
#> Second item