You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: vignettes/development.Rmd
+30-1Lines changed: 30 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -11,7 +11,36 @@ knitr::opts_chunk$set(
11
11
)
12
12
```
13
13
14
-
# Contributing to ggplot2 developing
14
+
# Contributing to ggplot2 development
15
+
16
+
The goal of this guide is to help you get up and contributing to ggplot2 as quickly as possible. It's still a work in progress and very rough. Your feedback is much appreciated and so are pull requests :).
17
+
18
+
## What makes a good pull request?
19
+
20
+
Pull requests will be evaluated against the following checklist:
21
+
22
+
```
23
+
* [ ] Motivate the change in one paragraph, and include it in NEWS.
24
+
Reference this issue and thank yourself.
25
+
* [ ] Check pull request only includes relevant changes.
26
+
* [ ] Use the [official style](http://adv-r.had.co.nz/Style.html).
27
+
* [ ] Update documentation and re-run roxygen2
28
+
* [ ] Add test, if bug in non-graphical function
29
+
* [ ] Add minimal example, if new graphical feature
30
+
* [ ] Does not change existing behaviour
31
+
```
32
+
33
+
These are explained in more detail below. This seems like a lot of work but don't worry if your pull request isn't perfect. It's a learning process and Winston and I will be on hand to help you out. A pull request is a process, and unless you've submitted a few in the past it's unlikely that your pull request will be accepted as is.
34
+
35
+
The most important thing is that your pull request clearly and concisely motivates the need for the change. Unfortunately neither Winston nor I have much time to work on ggplot2 these days, so you need to describe the problem and show how your pull request solves it as concisely as possible. You should also include this motivation in the `NEWS` file so that when a new release of ggplot2 comes out it's easy for users to see what's changed.
36
+
37
+
When you submit your pull request, check to make sure that you haven't accidentally included any unrelated changes. These make it harder to see exactly what's changed, and to evaluate any unexpected side effects.
38
+
39
+
Please follow the [official ggplot2 style](http://adv-r.had.co.nz/Style.html). Maintaing a consistent style across the whole code base makes it much easier to jump into the code. Similarly, please make sure you update the roxygen comments, and re-run `devtools::document()` on the code. Currently, ggplot2 uses the development version of roxygen2, which you can get with `install_github("klutometis/roxygen"). This will be available on CRAN in the near future.
40
+
41
+
If you're fixing a bug in a non-graphical function, please include a test. If you're adding a new graphical feature, please add a minimal example illustrating the feature.
42
+
43
+
Finally, ggplot2 is a mature package used by thousands of people. This means that it's basically impossible to change any existing functionality without breaking someone's code (or another package on CRAN). Because of this please don't submit pull requests that change existing behaviour. Instead, think about how you can add a new feature in a minimally invasive way.
0 commit comments