RMarkdown package flextable fails immediately with “read_docx only support docx”

前端 未结 2 842
余生分开走
余生分开走 2021-01-19 18:05

I\'m sorry for a minimally produced question...... not lots of information because it just fails the first time I\'m ever trying with this and I am not very skilled in RMar

2条回答
  •  一个人的身影
    2021-01-19 18:26

    I just tried your example and changed a thing or two. I will post my code underneath. However, be aware, that the package you meant is not dbplyr but dplyr. The first one is for databases, the latter for extract, transform and load. Here is the code:

    library(dplyr)
    library(flextable)
    library(datasets)
    
    data(iris)
    
    iris[1:10,] %>%
          flextable()
    

    With that code, it perfectly knits to word (.docx) on my machine.

提交回复
热议问题