yaml_extract: Extract YAML keys from block

View source: R/utils.R

yaml_extractR Documentation

Extract YAML keys from block

Description

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~~~")


ropensci-org/promoutils documentation built on Nov. 29, 2024, 7:17 p.m.