replaceYamlFrontMatter: replace YAML frontmatter in Rmd file

Description Usage Arguments Details

View source: R/rmd_bib_files_utils.R

Description

Given a list l, replace the YAML frontmatter with the list l converted to YAML.

Usage

1

Arguments

rmdfile

character(1) rmd filename in which to replace yaml

l

list() that will be converted to new yaml to include

Details

One detail–the yaml standard for dumping to text is to use single quotes for everything, doubling them to escape. This function replaces all instances of (”) with (").


seandavi/CollaborativeBookdown documentation built on Aug. 22, 2019, 4:48 a.m.