rtf_add.flextable | R Documentation |
officer::rtf_add()
method for adding
flextable objects into 'RTF' documents.
## S3 method for class 'flextable'
rtf_add(x, value, ...)
x |
rtf object, created by |
value |
a flextable object |
... |
unused arguments |
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"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.