powered by
Add text to a chronicle Rmarkdown report
add_text(report = "", text, text_title = NULL, title_level = 2)
Character string containing all the R Markdown chunks previously added. Default is '', an empty 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.) Default is 1.
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