nhs-r-community / intro_r

Workshop materials for revised NHS-R Community "Introduction to R and R Studio" course.

Home Page:https://nhs-r-community.github.io/intro_r/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

  • 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

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.

About

Workshop materials for revised NHS-R Community "Introduction to R and R Studio" course.

https://nhs-r-community.github.io/intro_r/

License:Creative Commons Zero v1.0 Universal


Languages

Language:JavaScript 36.4%Language:CSS 31.3%Language:R 30.8%Language:HTML 0.6%Language:Shell 0.5%Language:Makefile 0.3%