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

Required Packages by Episode #401

Open
drakeasberry opened this issue Mar 20, 2023 · 1 comment
Open

Required Packages by Episode #401

drakeasberry opened this issue Mar 20, 2023 · 1 comment
Labels
type:discussion Discussion or feedback about the lesson type:enhancement Propose enhancement to the lesson

Comments

@drakeasberry
Copy link
Contributor

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)
@drakeasberry drakeasberry added type:discussion Discussion or feedback about the lesson type:enhancement Propose enhancement to the lesson labels Apr 9, 2023
@albhasan
Copy link
Contributor

Hi, I think this is a good idea, this would ensure that each episode runs independently of any other and could help self-paced lerners. Anyway the whole lesson isn't using more than 4 or 5 packages (sf, terra, dplyr, & ggplot2). Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:discussion Discussion or feedback about the lesson type:enhancement Propose enhancement to the lesson
Projects
None yet
Development

No branches or pull requests

2 participants