ff_sup_clean_rmd_mod: Modify R4Econ (and others) Rmd files, add Numbered Sections...

Description Usage Arguments Value Author(s)

View source: R/ff_sup_inout.R

Description

Modify R4Econ Rmd files, add Numbered Sections for HTML, and higher Hierarchy. Was not able to, for HTML file, use pandoc arguments to add in TOC. And Need to have two hierarchies for RMD's individual specific pdf and html files, and the joint bookdown file combining all.

Usage

1
ff_sup_clean_rmd_mod(st_file, it_hierachy_shift = 2, it_toc_depth = 3)

Arguments

st_file

string texts contents from a R4Econ RMD file.

it_hierachy_shift

rmd modification level of promotion from bookdown hierachy to own file hierarchy

it_toc_depth

rmd own file outputs toc levels to show

Value

modified texts

Author(s)

Fan Wang, http://fanwangecon.github.io


FanWangEcon/REconTools documentation built on Jan. 21, 2022, 10:28 p.m.