add_text {chronicle}R Documentation

Add text to a chronicle Rmarkdown report

Description

Add text to a chronicle Rmarkdown report

Usage

add_text(report = "", text, text_title = NULL, title_level = 2)

Arguments

report

Character string containing all the R Markdown chunks previously added. Default is ”, an empty report.

text

The text that will be added to the report.

text_title

The title of the text section. Default is NULL.

title_level

Level of the section title of this text (ie, number of # on Rmarkdown syntax.) Default is 1.

Value

The text of the Rmarkdown report plus an additional section with the text.

Examples

html_report <- add_text(text = 'This is the text that will be seen outside of any chunk',
                        text_title = 'Text title')
cat(html_report)

[Package chronicle version 0.3 Index]