R-ecology-lesson icon indicating copy to clipboard operation
R-ecology-lesson copied to clipboard

lubridate is a core part of the tidyverse starting in v2.0.0

Open mikemahoney218 opened this issue 8 months ago • 0 comments

What is the problem?

The Formatting Dates section of the lesson contains the text:

https://github.com/datacarpentry/R-ecology-lesson/blob/f402c81d5e053a06755efa313e9de3aebfd19bc6/episodes/02-starting-with-data.Rmd#L730-L743

This changed in February, when lubridate became part of the core tidyverse: https://github.com/tidyverse/tidyverse/releases/tag/v2.0.0

And indeed, lubridate is now loaded when loading the tidyverse:

> library(tidyverse)
── Attaching core tidyverse packages ───────────────────────────────────────────────────────────────────── tidyverse 2.0.0 ──
✔ dplyr     1.1.2     ✔ readr     2.1.4
✔ forcats   1.0.0     ✔ stringr   1.5.0
✔ ggplot2   3.4.2     ✔ tibble    3.2.1
✔ lubridate 1.9.2     ✔ tidyr     1.3.0
✔ purrr     1.0.2     

Does it make sense to drop this text? Some learners might have older versions of the tidyverse installed, which might cause issues if the section is dropped, but as-is it might be confusing for learners with a new tidyverse install to see "lubridate" in the list of attached packages and then told they need to re-load it now.

Location of problem (optional)

https://datacarpentry.org/R-ecology-lesson/instructor/02-starting-with-data.html#formatting-dates

mikemahoney218 avatar Nov 11 '23 13:11 mikemahoney218