I use R Markdown for a lot of things, but the one thing that never seems to come out the way I like is the tables. This vignette highlights some of the ways you can customize the appearance of your tables with a new pacakge, kableExtra.
Hao Zhu. Create Awesome HTML Table with knitr::kable and kableExtra. 2019-01-15. Available in html format.