format_inline {cli}R Documentation

Format and returns a line of text

Description

You can use this function to format a line of cli text, without emitting it to the screen. It uses cli_text() internally.

Usage

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

Arguments

...

Passed to cli_text().

.envir

Environment to evaluate the expressions in.

Value

Character scalar, the formatted string.

Examples

format_inline("This is a message for {.emph later}.")

[Package cli version 3.0.1 Index]