R/checkVignette.R
fixMultipleFirstLevelHeaders.Rd
Bookdown markdown headers are special in that each chapter *must* start with a first-level header `#`.
fixMultipleFirstLevelHeaders(rmdfile)
rmdfile | character(1) path to a `.Rmd` file |
---|
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.