Preface Preface

The cover image for the bookdown book.
This short book introduces an R package, bookdown, to change your workflow of writing books. It should be technically easy to write a book, visually pleasant to view the book, fun to interact with the book, convenient to navigate through the book, straightforward for readers to contribute or leave feedback to the book author(s), and more importantly, authors should not always be distracted by typesetting details.
The bookdown package is built on top of R Markdown (
rmarkdown.rstudio.com), and inherits the simplicity of the Markdown syntax (see SectionΒ 2.1), as well as the possibility of multiple types of output formats (PDF/HTML/Word/...). It has also added features like multi-page HTML output, numbering and cross-referencing figures/tables/sections/equations, inserting parts/appendices, and imported the GitBook style (gitbook.com) to create elegant and appealing HTML book pages. This book itself is an example of how you can produce a book from a series of R Markdown documents, and both the printed version and the online version can look professional. You can find more examples at bookdown.org.

The hex logo for the bookdown package.
Despite the package name containing the word βbookβ, bookdown is not only for books. The βbookβ can be anything that consists of multiple R Markdown documents meant to be read in a linear sequence, such as course handouts, study notes, a software manual, a thesis, or even a diary. In fact, many bookdown features apply to single R Markdown documents as well (see SectionΒ 3.4).

The Creative Commons Attribution-NonCommercial-ShareAlike badge.
The online version of this book is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. You can purchase a hardcopy from Chapman & Hall or Amazon.
