The goal of this guide is to help you get up and contributing to gouvdown as quickly as possible. The guide is divided into two main pieces:
Please note that gouvdown is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.
When filing an issue, the most important thing is to include a minimal reproducible example so that we can quickly verify the problem, and then figure out how to fix it. There are three things you need to include to make your example reproducible: required packages, data, code.
Packages should be loaded at the top of the script, so it’s easy to see which ones the example needs.
The easiest way to include data is to use dput()
to generate the R code to recreate it. For example, to recreate the mtcars
dataset in R, I’d perform the following steps:
dput(mtcars)
in Rmtcars <-
then paste.But even better is if you can create a data.frame()
with just a handful of rows and columns that still illustrates the problem.
Spend a little bit of time ensuring that your code is easy for others to read:
make sure you’ve used spaces and your variable names are concise, but informative
use comments to indicate where your problem lies
do your best to remove everything that is not related to the problem. The shorter your code is, the easier it is to understand.
You can check you have actually made a reproducible example by starting up a fresh R session and pasting your script in.
(Unless you’ve been specifically asked for it, please don’t include the output of sessionInfo()
.)
To contribute a change to gouvdown, you follow these steps:
Each of these steps are described in more detail below. This might feel overwhelming the first time you get set up, but it gets easier with practice.
If you’re not familiar with git or github, please start by reading http://r-pkgs.had.co.nz/git.html