We welcome all contributions! Please head to issues to either file any bugs/feature requests or find a task you want to assist with. Make sure to assign yourself the task if you decide to work on it.
On your local machine make sure you have the latest version of the develop
branch:
git checkout develop
git pull upstream develop
We use renv for development of this package. Make sure renv is installed and run this command to load the dependencies
renv::init()
More details on how to use renv
puresynapser
follows the standard git flow development strategy.
To ensure the most fluid development, try not to push to your
develop
ormain
branch.
Make sure your develop
branch is up to date with the thomasyu888/puresynapser
develop
branch.
cd {your-github-username}/puresynapser
git checkout develop
git pull upstream develop
Create a feature branch which off the develop
branch. If there is a GitHub/JIRA issue that you are addressing, name the branch after the issue with some more detail (like {GH|JIRA}-123-add-some-new-feature
).
git checkout develop
git checkout -b GH-123-add-some-new-feature
At this point, you have only created the branch locally, you need to push this to your fork on GitHub.
```
git push --set-upstream origin GH-123-add-some-new-feature ```
You should now be able to see the branch on GitHub. Make commits as you deem necessary. It helps to provide useful commit messages - a commit message saying 'Update' is a lot less helpful than saying 'Remove X parameter because it was unused'.
git commit changed_file.txt -m "Remove X parameter because it was unused"
git push
(Make sure you have follow instructions in "Install dependencies") Make sure to run the auto R code formatter, styler.
styler::style_pkg(".")
(Make sure you have follow instructions in "Install dependencies") Once you have made your additions or changes, make sure you write tests and run the test suite. More information on testing below.
testthat...
Once you have completed all the steps above, in Github, create a pull request from the feature branch of your fork to the develop
branch of thomasyu888/puresynapser.
A code maintainer must review and accept your pull request. A code review ideally happens with both the contributor and the reviewer present, but is not strictly required for contributing. This can be performed remotely (e.g., Zoom, Hangout, or other video or phone conference).
The basic structure of this package is built off of Best Practices for API packages.
We use renv for development of this package. Whenever a package is installed, be sure to run:
# Install package
renv::install(...)
# Snapshot
renv::snapshot()
More details on how to use renv
This package will leverage testthat
to test its functions.
We leverage roxygen2 to generate docs. To generate docs, you will want to:
roxygen2::roxygenise()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.