A open-source (GPL-3) R package to facilitate writing books and long-form articles/reports with R Markdown. Features include:
You can install the package from CRAN as follows:
install.packages("bookdown")
If you want to use the development version of the bookdown package, you can install the package from GitHub via the pak package:
# install.packages("pak")
pak::pak('rstudio/bookdown')
The easiest way to start a new Bookdown project is from within RStudio IDE. Go to File > New Project > New Directory > Book project using bookdown.
This will create a new directory with an example book as template. You can build the HTML version of this example book without doing any modification:
You can also run bookdown::render_book()
in the R console.
Learn more about using bookdown in the Getting started section.
There are two main places to get help:
The RStudio community is a friendly place to ask any questions about bookdown. Be sure to use the bookdown
tag.
Stack Overflow is a great source of answers to common bookdown questions. Use the tags [r][bookdown]
if you ask a question.
Please note that the bookdown project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.