add_title: Add a titled section to a chronicle Rmarkdown report

View source: R/text.R

add_titleR Documentation

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

html_report <- add_title(report = '',
                         title = 'Just the title here')
cat(html_report)

pheymanss/chronicle documentation built on Jan. 19, 2024, 6 a.m.