rtf_add.flextable {flextable} | R Documentation |
Add a 'flextable' into an RTF document
Description
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 |
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"))
[Package flextable version 0.9.6 Index]