Summary and Schedule
This is a new lesson built with The Carpentries Workbench.
| Setup Instructions | Download files required for the lesson | |
| Duration: 00h 00m | 1. Introduction |
What are R and RStudio, and how do they work together? Why use R for research and data analysis? |
| Duration: 00h 10m | 2. Reproducibility |
What does it mean for a workflow to be reproducible? What are the benefits of working reproducibly? Does reproducibility guarantee good research? |
| Duration: 00h 50m | 3. Environments |
What is a project environment and why does it matter? How can we create a project environment? |
| Duration: 02h 35m | 4. Code smells | How can you recognise potential problems in a script before fully understanding what it does? |
| Duration: 03h 15m | 5. Documentation |
How do different audiences influence what you document? How does your intention (citation, collaboration, onboarding) shape the documentation you write? What types of documentation should research software include? When should you use in-code comments, and why can over-commenting be harmful? |
| Duration: 03h 40m | 6. Packaging |
Why is it useful to organise R code into a package? How do I create and develop an R package? How can I check and share an R package? What do package version numbers tell us? |
| Duration: 04h 55m | Finish |
The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.
Please complete the following setup before attending the workshop.
Software
Install the following software on your computer:
- R: Install R (version 4.1.0 or later).
- RStudio: Install RStudio Desktop.
Install R before installing RStudio. Both are available for Windows, macOS, and Linux.
Equipment and access
- Laptop: Bring your own laptop running Windows, macOS, or Linux, with R and RStudio installed.
- Internet access: You will need an internet connection during the workshop.
-
Installation permissions: Check that you can
install R packages by installing
ggplot2as described below.
Test package installation
To check that you can install and load an R package, run these commands one at a time in the RStudio Console:
R
install.packages("ggplot2")
library(ggplot2)
Installation prints progress messages, which vary by system. Loading the package usually produces no output; your Console should look like this:
> library(ggplot2)
>
If the prompt returns without an error, you’re all set!