dot-cli_escape: Escape curly braces for safe printing with cli

.cli_escapeR Documentation

Escape curly braces for safe printing with cli

Description

Replaces single curly braces (⁠{⁠, ⁠}⁠) with double curly braces (⁠{{⁠, ⁠}}⁠) so that they are interpreted as literal characters by cli::cli_abort() and not as expressions to be evaluated.

Usage

.cli_escape(msg)

Arguments

msg

(character) The messages to escape.

Value

The messages with curly braces escaped.


stbl documentation built on April 4, 2026, 5:06 p.m.