View source: R/ooxml_block_objects.R
| block_pour_docx | R Documentation | 
Pour the content of a docx file in the resulting docx from an 'R Markdown' document.
block_pour_docx(file)
file | 
 external docx file path  | 
Other block functions for reporting: 
block_caption(),
block_gg(),
block_list(),
block_section(),
block_table(),
block_toc(),
fpar(),
plot_instr(),
unordered_list()
library(officer)
docx <- tempfile(fileext = ".docx")
doc <- read_docx()
doc <- body_add(doc, iris[1:20,], style = "table_template")
print(doc, target = docx)
target <- tempfile(fileext = ".docx")
doc_1 <- read_docx()
doc_1 <- body_add(doc_1, block_pour_docx(docx))
print(doc_1, target = target)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.