Contributions to latentcor
follow the same principles as stated in the guideline for contributors to the tidyverse
ecosystem of R (see here for more details: development contributing guide ).
You can refer to this for proposing changes with pull request from a fork. You can fix typos, spelling mistakes, or grammatical errors in the documentation directly using the GitHub web interface, as long as the changes are made in the source file.
If you find any typos in an .Rd
file, then please make changes in the corresponding .R
file, as .Rd
files are automatically generated by roxygen2 and should not be edited by hand.
The first step here for you to make any changes is to install devtools
using install.packages("devtools")
. If you want to make a bigger change, it’s a good idea to first file an issue and make sure someone from the team agrees that it is needed. If you have found a bug, please file an issue that illustrates the bug with a minimal reproducible example, a reprex (this will also help you write a unit test, if needed).
To contribute a change to latentcor
, you follow these steps:
latentcor
.If you’re not familiar with git or GitHub, please start by reading http://r-pkgs.had.co.nz/git.html
Pull requests will be evaluated against a checklist:
Also, include this motivation in NEWS
so that when a new release of latentcor
comes out it’s easy for users to see what has changed. Add your item at the top of the file and use markdown for formatting. The news item should end with (@yourGithubUsername, #the_issue_number)
.
Each PR corresponds to a git branch, so if you expect to submit multiple changes make sure to create multiple branches. If you have multiple changes that depend on each other, start with the first one and don’t submit any others until the first one has been processed.
Use latentcor
coding style. We tried to adhere as closely as possible to the official tidyverse
style guide – please do so as well. Maintaining a consistent style across the whole code base makes it much easier to jump into the code. If you’re modifying existing latentcor
code that doesn’t follow the style guide, a separate pull request to fix the style would be greatly appreciated.
If you’re adding new parameters or a new function, you’ll also need to document them with roxygen2
. Make sure to re-run devtools::document()
on the code before submitting.