yaml_quote_string | R Documentation |
This function allows users to explicitly mark strings that should be quoted in YAML output, giving full control over quoting behavior.
yaml_quote_string(x)
x |
A character vector or single string |
This is particularly useful for special values that might be misinterpreted as yaml uses YAML 1.1 and Quarto expects YAML 1.2.
The quoted
attribute is a convention used by yaml::as.yaml()
The input with quoted attributes applied
yaml::as.yaml(list(id = yaml_quote_string("1.0")))
yaml::as.yaml(list(id = "1.0"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.