``` r
library("ggplot2")
ggplot(mtcars, aes(wt, mpg)) +
geom_point()
```

Created on 2018-05-18 by the [reprex
package](http://reprex.tidyverse.org)
(v0.2.0).
Slide 29
Slide 29 text
No content
Slide 30
Slide 30 text
No content
Slide 31
Slide 31 text
Photo: Sarah Dorweiler
Slide 32
Slide 32 text
GITHUB ISSUES
provide a reproducible, clean, parsimonious
argument that this is a real problem worth fixing
#' Add two numbers
#'
#' @param x The first nubmer
#' @param y The second number
#' @return The sum of the first
#' and second number
#'
#' @examples
#' add(2, 2)
add <- function(x, y) {
x + y
}
Slide 39
Slide 39 text
Documentation fixes
• Typos
• Confusing stuff
• Out of date or inaccurate information
• Examples
Slide 40
Slide 40 text
No content
Slide 41
Slide 41 text
Photo: Kawtar Cherkaoui
Slide 42
Slide 42 text
Fix a bug!
Slide 43
Slide 43 text
Contributing code
• Start with an issue
Slide 44
Slide 44 text
good first issue
help wanted
Slide 45
Slide 45 text
Photo: Olloweb Solutions
BECOMING A BUG DETECTIVE
Slide 46
Slide 46 text
Photo: Annie Spratt
Slide 47
Slide 47 text
Photo: Jack Hunter
Slide 48
Slide 48 text
traceback()
Photo: Ryan Fields
Slide 49
Slide 49 text
Photo: Bernard Hermant
debug()
Slide 50
Slide 50 text
Photo: Filip Mroz
Slide 51
Slide 51 text
Bug hunting tips
• Read the function(s)
• Find the surrounding functions
• traceback() and debug() are your friends
Slide 52
Slide 52 text
Contributing code
• Start with an issue
Slide 53
Slide 53 text
Contributing code
• Start with an issue
• Submit a pull request containing your change
Slide 54
Slide 54 text
No content
Slide 55
Slide 55 text
Contributing code
• Start with an issue
• Submit a pull request containing your change
• Update documentation
• Tests prevent your fix from getting un-fixed
• Follow code style
Slide 56
Slide 56 text
Contributing code
• Start with an issue
• Submit a pull request containing your change
• Update documentation
• Tests prevent your fix from getting un-fixed
• Follow code style
• CONTRIBUTING.md
Slide 57
Slide 57 text
Photo: Antony Xia
Slide 58
Slide 58 text
START SMALL
AND LEARN
AS YOU GO
You don’t need to be an expert to contribute
through issues, comments, reprexes,
documentation, or code
Slide 59
Slide 59 text
No content
Slide 60
Slide 60 text
More resources
• “Contributing Code to the Tidyverse” by Jim Hester
http:/
/www.jimhester.com/2017/08/08/contributing/
• “Contributing to Tidyverse Packages” by Mara Averick
https:/
/www.rstudio.com/resources/videos/contributing-to-
tidyverse-packages/
• “Happy Git and GitHub for the useR” by Jenny Bryan
http:/
/happygitwithr.com/
Slide 61
Slide 61 text
Photo: Agathe Marty
Slide 62
Slide 62 text
Photo: Tom Johnson
thanks!
Acknowledgements:
Thanks to Mara Averick, Tom Johnson, Sean
Kross, Ross Donaldson, Hadley Wickham,
R-Ladies Seattle, and #rcatladies