format_chr_with_quotes | R Documentation |
Performs no escaping within the strings; if you want something that reader
could copy-paste to debug, look into format_deparse
(note that this
collapses into a single string).
format_chr_with_quotes(x, empty = "*none*")
x |
chr; e.g., |
empty |
chr, likely string; what should be output if |
chr; same length
as x
if x
had nonzero length; value of empty
otherwise
cli::cli_inform('{epiprocess:::format_chr_with_quotes("x")}')
cli::cli_inform('{epiprocess:::format_chr_with_quotes(c("x","y"))}')
nms <- c("x", "\"Total Cases\"")
cli::cli_inform("{epiprocess:::format_chr_with_quotes(nms)}")
cli::cli_inform("{epiprocess:::format_chr_with_quotes(character())}")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.