bookdown-sop

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.

ABSOLUTE ESSENTIALS

Follow these instructions and you will have a published bookdown book in less than five minutes. If you have any difficulties or have feedback of any kind, please file an issue.

Copy this template

Set up GitHub Pages

Clone the repo

Edit some key files

(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

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

Edit README

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 so I can see if this is getting used or not!)

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