ABSTRACT

This book is a guide to authoring books and technical documents with R Markdown (Allaire et al., 2016a) and the R package bookdown (Xie, 2016a). It focuses on the features specific to writing books, long-form articles, or reports, such as:

• how to typeset equations, theorems, figures and tables, and crossreference them;

• how to generate multiple output formats such as HTML, PDF, and ebooks for a single book;

• how to customize the book templates and style different elements in a book;

• editor support (in particular, the RStudio IDE); and • how to publish a book.