extract_yaml: Processing YAML metadata

Description Usage Arguments Details Value Author(s)

Description

Processing YAML metadata

Extract title from a Markdown document's yaml metadata

Usage

1
2
3
4
5
extract_yaml(input, ...)

rmd_title(input, ...)

rmd_short_title(input, ...)

Arguments

input

Name of input file.

...

Additional arguments are ignored.

Details

rmd_short_title tries to infer a suitable short title for a document if it isn't provided explicitly in the header by using the part of the title preceding the first punctuation mark (if any).

Value

extract_yaml returns a named list with the contents of the yaml metadata block.

The rmd_* functions return character vector of length one containing the value of the corresponding field.

Author(s)

Peter Humburg


humburg/reportmd documentation built on May 17, 2019, 9:13 p.m.