Description Usage Arguments Value
View source: R/get_yaml_header.R
Note that this assumes only one Yaml header, starting on the first line of the file.
1 | get_yaml_header(file, yaml_rxp = "^\\#*---[[:space:]]*$", verbose = TRUE)
|
file |
A character string or R connection specifying a file. |
yaml_rxp |
Regular expression for parsing YAML header |
verbose |
Logical. If |
Character vector of lines containing YAML header, or 'NULL' if no YAML header found.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.