rtf_add.flextable: Add a 'flextable' into an RTF document

View source: R/rtf_str.R

rtf_add.flextableR Documentation

Add a 'flextable' into an RTF document

Description

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"))

flextable documentation built on Oct. 30, 2024, 9:15 a.m.