Add a paragraph of text to a report
Usage
report_add_text(doc, text, ...)
Arguments
- doc
A document from report_new().
- text
Text to add; a character vector becomes one paragraph (bullet)
per element on slides.
- ...
Passed to officer::body_add_par() (docx only).
Value
The updated document.
See also
Other reporting:
example_report(),
list_report_templates(),
report_add_plot(),
report_add_slide(),
report_add_table(),
report_deck(),
report_layouts(),
report_new(),
report_save(),
report_section(),
report_slide(),
report_title_slide(),
scaffold_report()
Examples
doc <- report_new("docx") %>% report_add_text("Key findings follow.")
class(doc)
#> [1] "rdocx"