When rendering Word using Rmarkdown, I want to import an external file which is a table in Word. What should I do?
---
title: "word report"
date: "`r Sys.Date()`"
output:
officedown::rdocx_document:
number_sections: yes
df_print: kable
---
# Creating a ggplot
```{r, message=FALSE, warning=FALSE}
library(tidyverse)
ggplot(data = mpg) +
geom_point(mapping = aes(x = displ, y = hwy))
library(officer)
doc <- read_docx("example.docx") # there is a external table in example.docx
Thank you for your help!