chircollab / chircollab20

Home for the 2020 Chicago R Collab event
https://chircollab.github.io/
10 stars 3 forks source link

kableExtra cookbook #29

Open sharlagelfand opened 4 years ago

sharlagelfand commented 4 years ago

A lot of my work is reporting where the end document is PDF, often with a lot of tables! I think kable + kableExtra are such a powerhouse combination for doing this, and you can do a ton of customization. I get the impression sometimes that people think you need to use something that renders to HTML to get cool formatting (šŸ˜Ž), but that's not the case!

There is a kableExtra in PDF vignette which is basically my bible, but it could be fun to take some wild-caught tables with cool formatting to show what's possible using kableExtra and how much is possible even if you are rendering to PDF. i remember that there was a similar project last year for making a gt cookbook, so definitely drawing inspiration from there!

I also have a lot of experiences with the strange gotchas of using these packages, many of which are because you're generating (but not writing!) LaTeX code, and would be happy to document the easy fix with some of that weirdness (like, why is there extra spacing every 5th line in a kable table)? more broadly this could evolve into an Rmarkdown tips-n-tricks sort of project too.