This assignment will allow you to demonstrate that you can create a minimal, reproducible example (reprex) in a quest for help.
Navigate to the Pisaster repo here and fork it to your own GitHub account.
Create a new RStudio project from your forked copy of the Pisaster repo.
Open up the script 01_summary_statistics.R
and run all of the code. The last line of code will issue a warning and if you inspect the value of mean_count
, you will (perhaps unexpectedly) find a peculiar result.
Assume that you do not understand the source of the warning and resulting value for mean_count
(and it’s OK if you don’t). Create a new Gist that asks for help in resolving the error. Make sure to
Give your Gist a meaningful description
In the box that says “Filename including extension…”, enter problem_with_mean.md
, which will allow you to use Markdown to mix text and code in the body of the message below just as you would with a repo’s README.md
file.
In the body of the Gist, include all of the information that someone would need to assist you without the need to load additional files, navigate elsewhere, etc.
Hint: You can denote R code in Markdown documents in 1 of 2 ways:
For a single line of code, enclose the statement with a single back-tick (`) like `a <- 1
`
For a block of code, enclose the statements with three back-ticks (```) like
```
a <- 1
b <- 2
a / b
```
Note that you can make edits to a Gist after you’ve created it by clicking on the Edit button in the upper right.
After you’ve created your new Gist with your request for help and a reprex, copy/paste the URL for the Gist into an email message, and send it to Mark with a short note asking for help. (Note that the URL should look something like https://gist.github.com/USERNAME/59376e6f58a97d08f068edb015286891
.)