Chapter 1

install.packages("bookdown")
install.packages('tinytex')
tinytex::install_tinytex()
# or the development version
# devtools::install_github("rstudio/bookdown")