1 Prerequisites

This is a sample book written in Markdown. You can use anything that Pandoc’s Markdown supports, e.g., a math equation \(a^2 + b^2 = c^2\).

The bookdown package can be installed from CRAN or Github:

#install.packages("bookdown")
# or the development version
# devtools::install_github("rstudio/bookdown")
library(bookdown)
options(bookdown.render.file_scope = FALSE)

Remember each Rmd file contains one and only one chapter, and a chapter is defined by the first-level heading #.

To compile this example to PDF, you need XeLaTeX. You are recommended to install TinyTeX (which includes XeLaTeX): https://yihui.name/tinytex/.

1.1 What’s in here?

There are: Some vignettes (next), two sample AT2 templates, there is also a third but embedding it currently breaks things. And then references. There are learnr packages I’ll include at some point.

1.2 To download and use the code…

And code for the book can be found https://github.com/sjgknight/dsi

#If you've downloaded the code for the book, you can preview it by running the line below 
#bookdown:::serve_book()