yaml_quote: Quote a string as a YAML single-quoted scalar

View source: R/update-feed.R

yaml_quoteR Documentation

Quote a string as a YAML single-quoted scalar

Description

Quoting keeps a reader from taking a slug such as true or 123 for a boolean or number, or the releaseDate timestamp for a date. It is not an escape: callers validate every value first, because a newline would be folded to a space and a control character would make the reader throw.

Usage

yaml_quote(x)

Arguments

x

Character scalar.

Value

Character scalar.


shinyelectron documentation built on Dec. 3, 2026, 9:07 a.m.