Home

Awesome

This is a template for creating an HTML GitBook style bookdown book, hosted on GitHub Pages. It is based on the one created with File, New Project..., New Directory, Book Project using bookdown in RStudio. It assumes you know how to use git/GitHub and R Markdown, and have some familiarity with the bookdown package. If you don't, the package author Yihue Xie's RStudio webinar Introduction to Bookdown (R Package) provides an excellent introduction. In addition, check out bookdown: Authoring Books and Technical Documents with R Markdown, also by Yihui Xie, both for the content and the format--it is itself a bookdown book. If you need help getting git/GitHub to work with RStudio see: Happy Git and GitHub for the useR by Jenny Bryan.

ABSOLUTE ESSENTIALS

If you have any difficulties or have feedback of any kind, please file an issue or communicate through Discussions.

Copy this template (GitHub)

Set up Pages (GitHub)

Copy the repo link (GitHub)

Clone the repo (RStudio)

Edit some key files (RStudio)

(Note that 3. and 4. provide links to the .Rmd files of your project for editing and viewing. If you move your .Rmd files you will need to update these file paths. Once your book is rendered, test that the edit (pen) and view (eye) buttons work.)

Render the book (RStudio)

(You will need to repeat steps 2 and 4 every time you wish to update the book online.)

Edit README (GitHub or RStudio)

Once you've completed these steps, delete the content of this README and add a short description of your project with a link to the book URL. It would be appreciated if you add the following to the end:

This repo was initially generated from a bookdown template available here: https://github.com/jtr13/bookdown-template.

(And starring the repo would be nice too!)

Demo Video

A demo video showing how to create a bookdown book following these instructions: http://bit.ly/fiveminutebookdown

Additional features

Please consult the official guide to bookdown: https://bookdown.org/yihui/bookdown