Available at: https://departmentfortransport.github.io/ds-r-training/
- Clone the repository
- Make a new branch for your chapter or changes
git checkout -b name_of_branch
- Add/edit content in the
.Rmd
files. - Create a pull request, get someone to review the content, and merge into master (merging into master will trigger the book website to be updated automatically)
Packrat is used to ensure the book can be built using any packages used in the book.
Make sure that you use packrat when working on the repo (run packrat::restore()
to make sure you're library is the same as the books) and run packrat::snapshot()
when you add a new package.
Make sure that code sections pass lintR checks - any listing errors in the book will cause the build to fail. This is intentional, so the book doesn't contain any bad practises.
lintr::lint('file.Rmd')