parse_rmd: Parse an R Markdown or Quarto document

View source: R/parse_rmd.R

parse_rmdR Documentation

Parse an R Markdown or Quarto document

Description

Documents are parsed into an rmd_ast object.

Usage

parse_rmd(rmd)

parse_qmd(qmd)

Arguments

rmd

Either the path to an Rmd file or a character vector containing the contents of a R Markdown document.

qmd

Either the path to an qmd file or a character vector containing the contents of a Quarto document.

Value

Returns a rmd_ast object.

Examples

parse_rmd(system.file("examples/hw01.Rmd", package="parsermd"))


parsermd documentation built on Aug. 21, 2025, 5:27 p.m.