Description Usage Arguments Examples
It is wrapped to the screen width automatically. It may contain inline markup. (See inline-markup.)
1 | cli_text(..., .envir = parent.frame())
|
... |
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. |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | cli_text("Hello world!")
cli_text(packageDescription("cliapp")$Description)
## Arguments are concatenated
cli_text("this", "that")
## Command substitution
greeting <- "Hello"
subject <- "world"
cli_text("{greeting} {subject}!")
## Inline theming
cli_text("The {fun cli_text} function in the {pkg cliapp} package")
## Use within container elements
ul <- cli_ul()
cli_it()
cli_text("{emph First} item")
cli_it()
cli_text("{emph Second} item")
cli_end(ul)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.