diff --git a/episodes/1-intro-reproducible-examples.md b/episodes/1-intro-reproducible-examples.md index 4b4afe54..29f8a7c9 100644 --- a/episodes/1-intro-reproducible-examples.md +++ b/episodes/1-intro-reproducible-examples.md @@ -23,7 +23,7 @@ exercises: 2 #### Welcome and introductions - Welcome to "RRRR, I'm Stuck!" We're glad you're here! Let's first take care of a few setup steps. You should have all followed the setup instructions on the [workshop website](kaijagahm.github.io/R-help-reprexes/), and you should have both R and RStudio installed. -- You should also have the following packages installed: {**reprex**}, {**ratdat**}, {**tidyverse**}. +- You should also have the following packages installed: {**reprex**}, {**ratdat**}, {**dplyr**}, and {**ggplot2**}. - We have a range of levels of experience here. This workshop assumes that you are researcher in ecology/biology who has some prior experience working with R in RStudio. diff --git a/learners/setup.md b/learners/setup.md index aa62bcef..c8cf32d9 100644 --- a/learners/setup.md +++ b/learners/setup.md @@ -85,12 +85,12 @@ While this may sound scary, it is **far more common** to run into issues due to ### Install required R packages -During the course we will need a number of R packages. Packages contain useful R code written by other people. We will use the packages `ratdat`, `reprex`, and `tidyverse`. +During the course we will need a number of R packages. Packages contain useful R code written by other people. We will use the packages `ratdat`, `reprex`, `dplyr`, and `ggplot2`. To try to install these packages, open RStudio and copy and paste the following command into the console window (look for a blinking cursor on the bottom left), then press the Enter (Windows and Linux) or Return (MacOS) to execute the command. ```{r} -install.packages(c("ratdat", "reprex", "tidyverse")) +install.packages(c("ratdat", "reprex", "dplyr", "ggplot2")) ``` Alternatively, you can install the packages using RStudio's graphical user interface by going to `Tools > Install Packages` and typing the names of the packages separated by a comma. @@ -102,7 +102,8 @@ When the installation has finished, you can try to load the packages by pasting ```r library(ratdat) library(reprex) -library(tidyverse) +library(dplyr) +library(ggplot2) ``` If you do not see an error like `there is no package called ‘...’` you are good to go! diff --git a/scripts/exploring_ratdat.R b/scripts/exploring_ratdat.R index 800b6f84..0a8085de 100644 --- a/scripts/exploring_ratdat.R +++ b/scripts/exploring_ratdat.R @@ -1,6 +1,7 @@ # Exploring the ratdat dataset library(ratdat) -library(tidyverse) +library(dplyr) +library(ggplot2) head(complete_old) summary(complete_old) diff --git a/scripts/ratdat_lubridate_toy_example.R b/scripts/ratdat_lubridate_toy_example.R index e90e6660..a4bf5bba 100644 --- a/scripts/ratdat_lubridate_toy_example.R +++ b/scripts/ratdat_lubridate_toy_example.R @@ -1,4 +1,5 @@ -library(tidyverse) +library(dplyr) +library(ggplot2) library(lubridate) library(ratdat) rat_data <- ratdat::complete