Preface

Hi there, this is my great book.

Why read this book

It is very important…

Structure of the book

Chapters 1 introduces a new topic, and …

Software information and conventions

I used the knitr package (Xie 2015) and the bookdown package (Xie 2018) to compile my book. My R session information is shown below:

## R version 3.5.1 (2018-07-02)
## Platform: x86_64-pc-linux-gnu (64-bit)
## Running under: Ubuntu 18.04.1 LTS
## 
## Locale:
##   LC_CTYPE=en_GB.UTF-8      
##   LC_NUMERIC=C              
##   LC_TIME=en_GB.UTF-8       
##   LC_COLLATE=en_GB.UTF-8    
##   LC_MONETARY=en_GB.UTF-8   
##   LC_MESSAGES=en_GB.UTF-8   
##   LC_PAPER=en_GB.UTF-8      
##   LC_NAME=C                 
##   LC_ADDRESS=C              
##   LC_TELEPHONE=C            
##   LC_MEASUREMENT=en_GB.UTF-8
##   LC_IDENTIFICATION=C       
## 
## Package version:
##   backports_1.1.2 base64enc_0.1.3 bookdown_0.7   
##   compiler_3.5.1  digest_0.6.17   evaluate_0.11  
##   glue_1.3.0      graphics_3.5.1  grDevices_3.5.1
##   highr_0.7       htmltools_0.3.6 jsonlite_1.5   
##   knitr_1.20      magrittr_1.5    markdown_0.8   
##   methods_3.5.1   mime_0.5        Rcpp_0.12.18   
##   rmarkdown_1.10  rprojroot_1.3-2 rstudioapi_0.7 
##   stats_3.5.1     stringi_1.2.4   stringr_1.3.1  
##   tinytex_0.7     tools_3.5.1     utils_3.5.1    
##   xfun_0.3        yaml_2.2.0

Package names are in bold text (e.g., rmarkdown), and inline code and filenames are formatted in a typewriter font (e.g., knitr::knit('foo.Rmd')). Function names are followed by parentheses (e.g., bookdown::render_book()).

Acknowledgments

Many thanks to Charles Fox who taught the first 2 years of this course.

References

Xie, Yihui. 2015. Dynamic Documents with R and Knitr. 2nd ed. Boca Raton, Florida: Chapman; Hall/CRC. http://yihui.name/knitr/.

Xie, Yihui. 2018. Bookdown: Authoring Books and Technical Documents with R Markdown. https://CRAN.R-project.org/package=bookdown.