fixMultipleFirstLevelHeaders: Fix multiple first-level headers in an R markdown file

Description Usage Arguments Details Value

View source: R/checkVignette.R

Description

Bookdown markdown headers are special in that each chapter *must* start with a first-level header '#'.

Usage

1

Arguments

rmdfile

character(1) path to a '.Rmd' file

Details

A common workflow is to have each "chapter" respresented as a single '.Rmd' file. Functions to check and then fix '.Rmd' files programmatically facilitate finding and fixing vignettes that do not meet these criteria.

Value

the text lines of the corrected file.


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