bookdown

Multiple table versions for html, LaTeX, or other

I am really enjoying the power of bookdown to produce great documents that can be read as websites (i.e. html or gitbook output), pdf (generated via LaTeX), or other. However, when you start wanting to format your tables conflicts can occur causing all of some of the book to not render. Below I provide a quick solution. The kableExtra package provides well documented and excellent features for formatting tables into whatever format you are generating.

Cross referencing and other Bookdown essentials

There are a few things that I continually need to lookup how to do in R’s Bookdown Cross Referencing I am constantly forgetting how to cross-reference in bookdown and rmarkdown. Below are some options for cross-referencing in bookdown and rmarkdown documents Bookdown Bookdown’s referencing system is extensive. Though it can run into some trouble if sections are explicitly unnumbered using {-}. <!-- the info in curly brackets provides a tag to link to --> ## This is a subsection {#my-sub-section} .