Bookdown was developed by well-known R package author Yihui Xie. It allows you to write documents in Rmarkdown (R code can run) or plain Markdown, and then compile them into HTML, WORD, PDF, Epub, etc. Bookdown is a faceless LaTeX version that meets 99% of the requirements and is about 1% as difficult to use as LaTeX.

The advantage of bookdown

Fully open source, not fully customized, do whatever you want with Rstudio endorsement, bold long-term use of static websites, easy deployment to the Internet, support for LaTeX, direct export of Tex documents, export of typeset PDF documents and Kindle documents for easy use, After installation, you can concentrate on using RMarkdown to write and then directly sort the combination, one key build into a book RMarkdown advantage (worth system learning)

Coexisting code and text, programmer’s favorite lightweight, even the largest file has extremely fast reading speed can be listed at the end of the article references, research dog’s favorite

use

2. Install the bookDown package

install.packages("bookdown")
Copy the code

3. Clone demo to a local PC, decompress it, and open it with Rstudio. Rproj file

https://github.com/rstudio/bookdown-demo  
Copy the code

4. Open the corresponding chapter in the project. Rmd file for editing

5. The edited chapters are compiled into books in the Rstudio panel Build–Build Book

Free e-books

There are quite a few people on bookdown.org/ who have posted their own…

r-graphics.org/

r4ds.had.co.nz/

rafalab.github.io/dsbook/

www.tidytextmining.com/

otexts.com/fpp2/