parse_rmd: Parse an R Markdown document

Description Usage Arguments Value Examples

View source: R/parse_rmd.R

Description

Documents are parse into an rmd_ast object.

Usage

1
parse_rmd(rmd, allow_incomplete = FALSE, parse_yaml = TRUE)

Arguments

rmd

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

allow_incomplete

Allow incomplete parsing of the document.

parse_yaml

Use the yaml package to parse the document's yaml.

Value

Returns a rmd_ast object.

Examples

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

parsermd documentation built on May 20, 2021, 5:08 p.m.