Learn R Programming

chronicle (version 0.1.0)

add_title: Add a titled section to a chronicle Rmarkdown report

Description

Add a titled section to a chronicle Rmarkdown report

Usage

add_title(report, title, title_level = 1)

Arguments

report

character containing the text of an Rmarkdown report header (and possibly more chunks). Easily create one with chronicle::new_report()

title

The title to be added as a section.

title_level

Level of the section title (ie, number of # on Rmarkdown syntax.)

Value

The text of the Rmarkdown report plus an additional section by the given title.

Examples

Run this code
# NOT RUN {
html_report <- add_title(report = new_report(),
                         title = 'Just the title here')
cat(html_report)
# }

Run the code above in your browser using DataLab