Skip to content

Commit de93dac

Browse files
committed
Update readme
1 parent 1cc7b78 commit de93dac

File tree

2 files changed

+40
-23
lines changed

2 files changed

+40
-23
lines changed

README.md

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,32 @@
1+
# Reproducible Road Safety Research with R
12

2-
<!-- README.md is generated from README.Rmd. Please edit that file -->
33

4-
# rrsrr
4+
<!-- README.md is generated from README.Rmd. Please edit that file -->
55

66
<!-- badges: start -->
7+
78
<!-- badges: end -->
89

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:
1325

1426
``` r
15-
install.packages("remotes")
27+
# install dependencies (also see the DESCRIPTION file)
1628
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()
1932
```

README.qmd

Lines changed: 18 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
2-
output: github_document
2+
format: gfm
3+
title: "Reproducible Road Safety Research with R"
34
---
45

56
<!-- README.md is generated from README.Rmd. Please edit that file -->
@@ -13,24 +14,27 @@ knitr::opts_chunk$set(
1314
)
1415
```
1516

16-
# rrsrr
17-
1817
<!-- badges: start -->
18+
1919
<!-- badges: end -->
2020

21-
To reproduce the contents of the book, [download](https://github.com/ITSLeeds/rrsrr/archive/master.zip) the source code from GitHub, open the file RStudio project file `rrsrr.Rproj` and run the following commands:
21+
This is a small practical textbook teaching building blocks for road safety research.
22+
See the rendered book, which is fully open access thanks to financial support from the RAC Foundation, at [itsleeds.github.io/rrsrr/](https://itsleeds.github.io/rrsrr/).
2223

23-
```r
24-
install.packages("remotes")
25-
remotes::install_github("itsleeds/rrsrr")
26-
install.packages("servr")
27-
bookdown::serve_book()
28-
```
24+
To reproduce the contents of the book, clone the repo, e.g. with the following command after installing the GitHub CLI tool:
2925

30-
```{r, eval=FALSE, echo=FALSE}
31-
setwd("..")
32-
zip(zipfile = "rrsrr.zip", files = "rrsrr")
33-
setwd("rrsrr")
26+
```sh
27+
gh repo clone ITSLeeds/rrsrr
3428
```
3529

30+
or [download](https://github.com/ITSLeeds/rrsrr/archive/master.zip) the source code from GitHub.
31+
Open the folder with an IDE such as RStudio, VS Code, or Positron, and run the following commands:
3632

33+
```{r}
34+
#| eval: false
35+
# install dependencies (also see the DESCRIPTION file)
36+
remotes::install_github("itsleeds/rrsrr")
37+
# Install quarto (also requires the system dependency Quarto - see https://quarto.org/docs/get-started/)
38+
install.packages("quarto")
39+
quarto::quarto_preview()
40+
```

0 commit comments

Comments
 (0)