Skip to content

Commit

Permalink
Merge pull request #52 from kaijagahm/tidyverse-fix
Browse files Browse the repository at this point in the history
Tidyverse fix
  • Loading branch information
xortizross authored Aug 29, 2024
2 parents 60a328f + e8ec19c commit a95faf9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion episodes/1-intro-reproducible-examples.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Check warning on line 24 in episodes/1-intro-reproducible-examples.md

View workflow job for this annotation

GitHub Actions / Build Full Site

[missing file]: [workshop website](kaijagahm.github.io/R-help-reprexes/)

- 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.

Expand Down
7 changes: 4 additions & 3 deletions learners/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 <kbd>Enter</kbd> (Windows and Linux) or <kbd>Return</kbd> (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.
Expand All @@ -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!
Expand Down
3 changes: 2 additions & 1 deletion scripts/exploring_ratdat.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
# Exploring the ratdat dataset
library(ratdat)
library(tidyverse)
library(dplyr)
library(ggplot2)
head(complete_old)
summary(complete_old)

Expand Down
3 changes: 2 additions & 1 deletion scripts/ratdat_lubridate_toy_example.R
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
library(tidyverse)
library(dplyr)
library(ggplot2)
library(lubridate)
library(ratdat)
rat_data <- ratdat::complete
Expand Down

0 comments on commit a95faf9

Please sign in to comment.