Getting help

This assignment will allow you to demonstrate that you can create a minimal, reproducible example (reprex) in a quest for help.

Task 1

Navigate to the Pisaster repo here and fork it to your own GitHub account.

Task 2

Create a new RStudio project from your forked copy of the Pisaster repo.

Task 3

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.

Task 4

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

Hint: You can denote R code in Markdown documents in 1 of 2 ways:

  1. For a single line of code, enclose the statement with a single back-tick (`) like `a <- 1`

  2. 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.

Task 5

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.)