parse_rmd {parsermd}R Documentation

Parse an R Markdown document

Description

Documents are parse into an rmd_ast object.

Usage

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

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


[Package parsermd version 0.1.3 Index]