|
| 1 | +# Reproducible Road Safety Research with R |
1 | 2 |
|
2 | | -<!-- README.md is generated from README.Rmd. Please edit that file --> |
3 | 3 |
|
4 | | -# rrsrr |
| 4 | +<!-- README.md is generated from README.Rmd. Please edit that file --> |
5 | 5 |
|
6 | 6 | <!-- badges: start --> |
| 7 | + |
7 | 8 | <!-- badges: end --> |
8 | 9 |
|
9 | | -To reproduce the contents of the book, |
10 | | -[download](https://github.com/ITSLeeds/rrsrr/archive/master.zip) the |
11 | | -source code from GitHub, open the file RStudio project file |
12 | | -`rrsrr.Rproj` and run the following commands: |
| 10 | +This is a small practical textbook teaching building blocks for road |
| 11 | +safety research. See the rendered book, which is fully open access |
| 12 | +thanks to financial support from the RAC Foundation, at |
| 13 | +[itsleeds.github.io/rrsrr/](https://itsleeds.github.io/rrsrr/). |
| 14 | + |
| 15 | +To reproduce the contents of the book, clone the repo, e.g. with the |
| 16 | +following command after installing the GitHub CLI tool: |
| 17 | + |
| 18 | +``` sh |
| 19 | +gh repo clone ITSLeeds/rrsrr |
| 20 | +``` |
| 21 | + |
| 22 | +or [download](https://github.com/ITSLeeds/rrsrr/archive/master.zip) the |
| 23 | +source code from GitHub. Open the folder with an IDE such as RStudio, VS |
| 24 | +Code, or Positron, and run the following commands: |
13 | 25 |
|
14 | 26 | ``` r |
15 | | -install.packages("remotes") |
| 27 | +# install dependencies (also see the DESCRIPTION file) |
16 | 28 | remotes::install_github("itsleeds/rrsrr") |
17 | | -install.packages("servr") |
18 | | -bookdown::serve_book() |
| 29 | +# Install quarto (also requires the system dependency Quarto - see https://quarto.org/docs/get-started/) |
| 30 | +install.packages("quarto") |
| 31 | +quarto::quarto_preview() |
19 | 32 | ``` |
0 commit comments