How to format kable table when knit from .rmd to Word (with bookdown)

后端 未结 3 1643
自闭症患者
自闭症患者 2021-01-12 17:06

I have read the bookdown book and still cannot figure this out. I am trying to create a Word report through bookdown. I want to use kableExtra to

3条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-12 18:00

    Pandoc

    The conversion to word is made via pandoc. Currently pandoc only creates four type of tables,

    • simple tables
    • multiline_tables
    • grid_tables
    • pipe_tables

    Some of those supported formats are demontrated in pander and in the pandoc manual p 35-39.

    So you cannot create the stripped table currently with pandoc.

    You also have a good summary of how you can use tables in rmarkdown.rstudio.

    Pandoc v2

    see the good news from David below

提交回复
热议问题