Learn R Programming

chronicle (version 0.3)

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 string containing all the R Markdown chunks previously added. Default is '', an empty 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 = '',
                         title = 'Just the title here')
cat(html_report)
# }

Run the code above in your browser using DataLab