powered by
Add text to a chronicle Rmarkdown report
add_text(report = "", text, text_title = NULL, title_level = 2)
character containing the text of an Rmarkdown report header (and possibly more chunks). Easily create one with chronicle::new_report()
The text that will be added to the report
The title of the text section. Default is NULL.
Level of the section title of this text (ie, number of # on Rmarkdown syntax.)
The text of the Rmarkdown report plus an additional section with the text.
# NOT RUN { html_report <- add_text(text = 'This is the text that will be seen outside of any chunk', text_title = 'Text title') cat(html_report) # }
Run the code above in your browser using DataLab