Skip to content
Discussion options

You must be logged in to vote

You get several things to tackle here:

  • How do you create your table ?
  • How do you target several output format ?

One solution is to do both at the same time by using a Table 📦 that will know how to create table for different outputs.
kableExtra knows that for HTML and PDF, but not for DOCX - from there doc, it does not support direct output to docx without copy pasting from HTML to word
So you need to use some 📦 that knows both format you want to target like flextable or gt. With those package you can write the same R code, including styling, and the package will know how to output to PDF and DOCX.

If you really need to use kableExtra for HTML output, and want to use gt for other format,…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SEthanMilne
Comment options

Answer selected by SEthanMilne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
books tables Issues with Tables including the gt integration
2 participants