How to import an external Word document into bookdown::word_document2

For cross reference I use bookdown::word_document2 template , Meanwhile I use officer::block_pour_docx() function which can be used to import an external Word document into the current document.

---
title: "report"
output: bookdown::word_document2
---


```{r}
library(officedown)
library(officer)
block_pour_docx("questionnaire.docx")
```


But the code above does not work.
It seem that the officer::block_pour_docx() only works at officedown::rdocx_document

is there anything I can do to solve this problem? Thank you very much.

This topic was automatically closed 45 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.