You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25Lines changed: 25 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -24,5 +24,30 @@ This course seeks to provide you with conceptual understanding and the tools you
24
24
- Testing file outputs
25
25
- Continuous integration & automatic test-running with GitHub
26
26
27
+
## Contributions
28
+
29
+
Contributions are welcome, please refer to the [contribution guidelines](CONTRIBUTING.md) of how to do so and ensure that you adhere to the [Code of Conduct](CODE_OF_CONDUCT.md).
30
+
31
+
### Build the lesson locally
32
+
33
+
To render the lesson locally, you will need to have [R][r] installed. Instructions for using R with the Carpentries template is [available](https://carpentries.github.io/workbench/#installation) but some additional setps have been taken to make sure the enivronment is reproducible using the [`{renv}`](https://rstudio.github.io/renv/articles/renv.html) package and an `renv.lockfile` is included which allows the environment to be re-created along with dependencies.
34
+
35
+
After cloning the repository, you can set up the `renv` and install all packages with:
36
+
```r
37
+
renv::restore()
38
+
# Optionally update packages
39
+
renv::update()
40
+
```
41
+
Once you have installed the dependencies, you can render the pages locally by starting R in the project root and running:
42
+
```r
43
+
sandpaper::serve()
44
+
```
45
+
This will build the pages and start a local web-server in R and open it in your browser. These pages are "live" and will respond to local file changes if you save them.
0 commit comments