Extract YAML keys from block
Usage
yaml_extract(yaml, trim = "~~~")
Arguments
- yaml
Character. String from which to extract YAML keys
- trim
Character. Text to remove from the YAML block before processing.
Usually the text that defines the block.
Value
data frame of yaml keys
Examples
yaml_extract("~~~start: 2023-11-12\nauthor: Steffi\n~~~")
#> start author
#> 1 2023-11-12 Steffi