Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from swcarpentry:main #19

Merged
merged 11 commits into from
Jan 28, 2024
2 changes: 1 addition & 1 deletion episodes/05-data-structures-part2.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ script to use the function of that script without writing everything again.
Check out `?source` to find out more.

```{r, eval=FALSE}
download.file("https://raw.githubusercontent.com/swcarpentry/r-novice-gapminder/gh-pages/_episodes_rmd/data/gapminder_data.csv", destfile = "data/gapminder_data.csv")
download.file("https://raw.githubusercontent.com/swcarpentry/r-novice-gapminder/main/episodes/data/gapminder_data.csv", destfile = "data/gapminder_data.csv")
gapminder <- read.csv(file = "data/gapminder_data.csv")
```

Expand Down
8 changes: 4 additions & 4 deletions episodes/13-dplyr.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -470,10 +470,10 @@ lifeExp_2countries_bycontinents <- gapminder %>%

## Other great resources

- [R for Data Science](https://r4ds.had.co.nz/)
- [Data Wrangling Cheat sheet](https://www.rstudio.com/wp-content/uploads/2015/02/data-wrangling-cheatsheet.pdf)
- [Introduction to dplyr](https://dplyr.tidyverse.org/)
- [Data wrangling with R and RStudio](https://www.rstudio.com/resources/webinars/data-wrangling-with-r-and-rstudio/)
- [R for Data Science](https://r4ds.hadley.nz/) (online book)
- [Data Wrangling Cheat sheet](https://www.rstudio.com/wp-content/uploads/2015/02/data-wrangling-cheatsheet.pdf) (pdf file)
- [Introduction to dplyr](https://dplyr.tidyverse.org/) (online documentation)
- [Data wrangling with R and RStudio](https://www.rstudio.com/resources/webinars/data-wrangling-with-r-and-rstudio/) (online video)

:::::::::::::::::::::::::::::::::::::::: keypoints

Expand Down
8 changes: 4 additions & 4 deletions episodes/14-tidyr.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -307,10 +307,10 @@ There and back again!

## Other great resources

- [R for Data Science](https://r4ds.had.co.nz/index.html)
- [Data Wrangling Cheat sheet](https://www.rstudio.com/wp-content/uploads/2015/02/data-wrangling-cheatsheet.pdf)
- [Introduction to tidyr](https://cran.r-project.org/web/packages/tidyr/vignettes/tidy-data.html)
- [Data wrangling with R and RStudio](https://www.rstudio.com/resources/webinars/data-wrangling-with-r-and-rstudio/)
- [R for Data Science](https://r4ds.hadley.nz/) (online book)
- [Data Wrangling Cheat sheet](https://www.rstudio.com/wp-content/uploads/2015/02/data-wrangling-cheatsheet.pdf) (pdf file)
- [Introduction to tidyr](https://cran.r-project.org/web/packages/tidyr/vignettes/tidy-data.html) (online documentation)
- [Data wrangling with R and RStudio](https://www.rstudio.com/resources/webinars/data-wrangling-with-r-and-rstudio/) (online video)

:::::::::::::::::::::::::::::::::::::::: keypoints

Expand Down
15 changes: 15 additions & 0 deletions instructors/instructor-notes.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,21 @@ To prevent the learners from having to re-enter their password each time they pu
$ git config --global credential.helper 'cache --timeout=10000000'
```

## RStudio Color Preview

RStudio has a feature to preview the color for certain named colors and hexadecimal colors. This may confuse or distract learners (and instructors) who are not expecting it.

Mainly, this is likely to come up during the episode on "Data Structures" with the following code block:

```r
cats <- data.frame(coat = c("calico", "black", "tabby"),
weight = c(2.1, 5.0, 3.2),
likes_string = c(1, 0, 1))
```

This option can be turned off and on in the following menu setting:
Tools -> Global Options -> Code -> Display -> Enable preview of named and hexadecimal colors (under "Syntax")

## Pulling in Data

The easiest way to get the data used in this lesson during a workshop is to have
Expand Down
Loading
Loading