Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Latest commit

 

History

History
25 lines (15 loc) · 1.15 KB

README.md

File metadata and controls

25 lines (15 loc) · 1.15 KB

R training

Build Status Available at: https://departmentfortransport.github.io/ds-r-training/

To contribute

  1. Clone the repository
  2. Make a new branch for your chapter or changes git checkout -b name_of_branch
  3. Add/edit content in the .Rmd files.
  4. 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

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.

lintR

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')