cli_verbatim: CLI verbatim text

View source: R/cli.R

cli_verbatimR Documentation

CLI verbatim text

Description

It is not wrapped, but printed as is. Long lines will overflow. No glue substitution is performed on verbatim text.

Usage

cli_verbatim(..., .envir = parent.frame())

Arguments

...

The text to show, in character vectors. Each element is printed on a new line.

.envir

Environment to evaluate the glue expressions in.

Details

Line breaks

cli_verbatim("This has\nthree\nlines,")
#> This has                                                                        
#> three                                                                           
#> lines,                                                                          

Special characters

No glue substitution happens here.

cli_verbatim("No string {interpolation} or {.emph styling} here")
#> No string {interpolation} or {.emph styling} here                               

See Also

cli_code() for printing R or other source code.


cli documentation built on June 22, 2024, 10:57 a.m.