Learn R Programming

frontmatter (version 0.2.0)

frontmatter-package: frontmatter: Parse Front Matter from Documents

Description

Extracts and parses YAML or TOML front matter from text documents. Front matter is structured metadata at the beginning of a document, delimited by fences.

Arguments

Supported Formats

  • Standard YAML (--- delimiters)

  • Standard TOML (+++ delimiters)

  • Comment-wrapped formats for R/Python files (# and #' prefixes)

  • PEP 723 Python inline script metadata

Main Functions

  • parse_front_matter(): Parse front matter from a string

  • read_front_matter(): Parse front matter from a file

Performance

Uses C++11 for fast, single-pass parsing with minimal memory overhead. Designed for high throughput processing of many documents.

Author

Maintainer: Garrick Aden-Buie garrick@posit.co (ORCID)

Other contributors:

  • Posit Software, PBC (ROR) [copyright holder, funder]

See Also