Skip to contents

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.

Examples

doc <- report_new("docx") %>% report_add_text("Key findings follow.")
class(doc)
#> [1] "rdocx"