frontmatter: Parse Front Matter from Documents

Extracts and parses structured metadata ('YAML' or 'TOML') from the beginning of text documents. Front matter is a common pattern in 'Quarto' documents, 'R Markdown' documents, static site generators, documentation systems, content management tools and even 'Python' and 'R' scripts where metadata is placed at the top of a document, separated from the main content by delimiter fences.

Version: 0.1.0
Imports: cpp11, rlang, tomledit, yaml12
LinkingTo: cpp11
Suggests: testthat (≥ 3.0.0), withr, yaml
Published: 2026-01-14
DOI: 10.32614/CRAN.package.frontmatter (may not be active yet)
Author: Garrick Aden-Buie ORCID iD [aut, cre], Posit Software, PBC ROR ID [cph, fnd]
Maintainer: Garrick Aden-Buie <garrick at posit.co>
BugReports: https://github.com/posit-dev/frontmatter/issues
License: MIT + file LICENSE
URL: https://github.com/posit-dev/frontmatter, https://posit-dev.github.io/frontmatter/
NeedsCompilation: yes
Materials: README, NEWS
CRAN checks: frontmatter results

Documentation:

Reference manual: frontmatter.html , frontmatter.pdf

Downloads:

Package source: frontmatter_0.1.0.tar.gz
Windows binaries: r-devel: not available, r-release: frontmatter_0.1.0.zip, r-oldrel: not available
macOS binaries: r-release (arm64): frontmatter_0.1.0.tgz, r-oldrel (arm64): frontmatter_0.1.0.tgz, r-release (x86_64): frontmatter_0.1.0.tgz, r-oldrel (x86_64): frontmatter_0.1.0.tgz

Linking:

Please use the canonical form https://CRAN.R-project.org/package=frontmatter to link to this page.