This lesson shows how to use automation in R
to improve the reproducibility of research by automating tasks.
Prerequisites
Details for installation are found in the Setup instructions
- Installation of programs:
R
RStudio
- Additional files and packages listed in the Setup instructions
Setup | Download files required for the lesson | |
00:00 | 1. Introduction to automation |
What tools will we be using?
How can we use these tools to improve reproducibility? |
00:40 | 2. Functions |
What is a function?
How do functions help us with reproducibility? How do I write a function in R? |
01:20 | 3. Functions for data |
How can I use base R to import data?
How can I build my own functions to bettwe import data? |
02:00 | 4. Functions for figures |
How can I use functions to generate figures
How can I ensure my functions work properly |
02:40 | 5. Testing | How can I use unit testing to ensure the data is in the correct format |
03:20 | 6. Putting it all together and getting organized | How can I choose a folder structure that will make report writing easier? |
04:00 | Finish |
The actual schedule may vary slightly depending on the topics and exercises chosen by the instructor.