View source: R/body_add_flextables.R
body_add_flextables | R Documentation |
This function is basically a loop wrapper around body_add_flextable
function.
body_add_flextables(docxIn, docxOut, flextables, debug = F, ...)
docxIn |
String of length one; path to Word file with bookmarks OR officer::rdocx object |
docxOut |
String of length one; path for output Word file or NA |
flextables |
Named list of flextables; Tables to be inserted into the Word file |
debug |
Boolean of length one; If |
... |
Parameters to be sent to other methods (mainly |
Path to the rendered Word file if the operation was successfull OR officer::rdocx object if docxOut is NA
library(flextable) ft_mtcars <- flextable(mtcars) ft_iris <- flextable(iris) FT <- list(ft_mtcars=ft_mtcars,ft_iris=ft_iris) body_add_flextables( paste(examplePath(),'templates/templateFT.docx',sep = ''), paste(tempdir(),'/resultFT.docx',sep = ''), FT)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.