Skip to content

Required Packages by Episode #401

@dafnidrake

Description

@dafnidrake

We have various ways of stating the required R packages that need to be loaded in order to run the code that follows. It ranges from assuming the person has not restarted their R session from a previous episode, to describing (partially at times) in paragraph text to explicitly stating which packages are needed inside and r code block.

Would it be beneficial to create a consistent format where all required packages are listed explicitly in the THINGS YOU’LL NEED TO COMPLETE THIS EPISODE callout at the beginning of each episode?

This would seem to prevent difficulties if someone does not begin with episode 1 and continue working in the same R session. It would also prevent issues such as those described in #356 and #365.

Potential Example:

**Required R Packages:**  
Make sure that you have these packages loaded before running code in this episode.
```{r load-libraries-2, eval=FALSE}
library(terra)
library(ggplot2)
library(dplyr)

Metadata

Metadata

Assignees

Labels

type:discussionDiscussion or feedback about the lessontype:enhancementPropose enhancement to the lesson

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions