Chapter 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")

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.org/tinytex/.

1.1 Session info

rmarkdown::pandoc_version()
## [1] '2.7.3'

xfun::session_info()
## R version 4.0.2 (2020-06-22)
## Platform: x86_64-apple-darwin17.0 (64-bit)
## Running under: macOS Catalina 10.15.6
## 
## Locale: en_US.UTF-8 / en_US.UTF-8 / en_US.UTF-8 / C / en_US.UTF-8 / en_US.UTF-8
## 
## Package version:
##   base64enc_0.1.3 bookdown_0.20.3 compiler_4.0.2  digest_0.6.25  
##   evaluate_0.14   glue_1.4.2      graphics_4.0.2  grDevices_4.0.2
##   highr_0.8       htmltools_0.5.0 jsonlite_1.7.0  knitr_1.29     
##   magrittr_1.5    markdown_1.1    methods_4.0.2   mime_0.9       
##   rlang_0.4.7     rmarkdown_2.3.3 stats_4.0.2     stringi_1.4.6  
##   stringr_1.4.0   tinytex_0.25    tools_4.0.2     utils_4.0.2    
##   xfun_0.16       yaml_2.2.1