If you are attending the course check all of our course materials and preparation instructions.
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 through GitHub 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
You will need to have R, R tools (on Windows), RStudio, and git installed in order to use this project locally.
Clone the repository, then run the following code chunk to initialise the project.
# the data directory is a git submodule, which needs to be downloaded
if (length(dir("data", ".csv")) == 0) {
system("git submodule init")
system("git submodule update")
}
# install all of the required packages
renv::restore()
# download fontawesome icons used in slides
icons::download_fontawesome()
Once you have run these steps, in RStudio you can open the individual Rmarkdown documents and render each file. Alternatively, you can render all of the slides at once using the “Build All” button on the “Build” tab in RStudio.
Please let us know if there are mistakes or improvements by creating an issue.