nhs-r-community / intro_r

Workshop materials for revised NHS-R Community "Introduction to R and R Studio" course.
https://nhs-r-community.github.io/intro_r/
Creative Commons Zero v1.0 Universal
26 stars 25 forks source link
introduction-to-r training training-materials

Welcome to the NHS-R Community Introduction to R and R Studio!

Attending the course?

If you are attending the course check all of our course materials and preparation instructions.

Are you wanting to update or use the slide code?

This repository is split into 3 areas:

Set-up

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.

Spotted a mistake?

Please let us know if there are mistakes or improvements by creating an issue.