Skip to content

Commit 1611366

Browse files
Add Contributions and Building locally
1 parent 75400c6 commit 1611366

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

README.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,30 @@ This course seeks to provide you with conceptual understanding and the tools you
2424
- Testing file outputs
2525
- Continuous integration & automatic test-running with GitHub
2626

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.
46+
47+
[git]: https://git-scm.com
48+
[r]: https://www.r-project.org/
49+
[workbench]: https://carpentries.github.io/workbench/
50+
51+
2752

2853

0 commit comments

Comments
 (0)