Skip to contents

officer::rtf_add() method for adding flextable objects into 'RTF' documents.

Usage

# S3 method for class 'flextable'
rtf_add(x, value, ...)

Arguments

x

rtf object, created by officer::rtf_doc().

value

a flextable object

...

unused arguments

Examples

library(flextable)
library(officer)

ft <- flextable(head(iris))
ft <- autofit(ft)

z <- rtf_doc()
z <- rtf_add(z, ft)

print(z, target = tempfile(fileext = ".rtf"))
#> [1] "/tmp/RtmppdJA4c/file2ad46fc8116e.rtf"