If you are attending the course all the course materials and preparation instructions are here.
This repository is split into 3 areas:
- RMarkdown files and dependency files - slides have been built in {xaringan} which requires the css, img and libs folder to render
- html pages - are automatically rendered using GitHub actions (no need to knit every file!) and are kept on a separate branch. The html files are published though GitHub here and being {xaringan} they are interactive and accessible
- data files are in a separate repository to help learners access the data files separate to the code for the slides
Note that the following code is used in the Terminal
not in R!
The data/ folder is a submodule, in order to properly clone this repository you should run the following:
git clone --recurse-submodules https://github.com/nhs-r-community/intro_r.git
Alternatively, if you have already cloned the repository locally, you can run the following to load the data/ submodule:
git submodule init
git submodule update
This project uses
{renv}
to manage
dependencies. When you open the project it will create a new (local)
library for this project. In order to restore the packages, simply run
renv::restore()
.
This project uses the
{icons}
package. This
requires you to run icons::download_fontawesome()
once before
rendering any slides, but it will save a copy of the font’s to disk so
this does not need to be run everytime.
Please let us know if there are mistakes or improvements by creating an issue.