-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from munterfinger/develop
Develop
- Loading branch information
Showing
41 changed files
with
1,236 additions
and
695 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
# Contributor Covenant Code of Conduct | ||
|
||
## Our Pledge | ||
|
||
In the interest of fostering an open and welcoming environment, we as | ||
contributors and maintainers pledge to making participation in our project and | ||
our community a harassment-free experience for everyone, regardless of age, body | ||
size, disability, ethnicity, sex characteristics, gender identity and expression, | ||
level of experience, education, socio-economic status, nationality, personal | ||
appearance, race, religion, or sexual identity and orientation. | ||
|
||
## Our Standards | ||
|
||
Examples of behavior that contributes to creating a positive environment | ||
include: | ||
|
||
* Using welcoming and inclusive language | ||
* Being respectful of differing viewpoints and experiences | ||
* Gracefully accepting constructive criticism | ||
* Focusing on what is best for the community | ||
* Showing empathy towards other community members | ||
|
||
Examples of unacceptable behavior by participants include: | ||
|
||
* The use of sexualized language or imagery and unwelcome sexual attention or | ||
advances | ||
* Trolling, insulting/derogatory comments, and personal or political attacks | ||
* Public or private harassment | ||
* Publishing others' private information, such as a physical or electronic | ||
address, without explicit permission | ||
* Other conduct which could reasonably be considered inappropriate in a | ||
professional setting | ||
|
||
## Our Responsibilities | ||
|
||
Project maintainers are responsible for clarifying the standards of acceptable | ||
behavior and are expected to take appropriate and fair corrective action in | ||
response to any instances of unacceptable behavior. | ||
|
||
Project maintainers have the right and responsibility to remove, edit, or | ||
reject comments, commits, code, wiki edits, issues, and other contributions | ||
that are not aligned to this Code of Conduct, or to ban temporarily or | ||
permanently any contributor for other behaviors that they deem inappropriate, | ||
threatening, offensive, or harmful. | ||
|
||
## Scope | ||
|
||
This Code of Conduct applies both within project spaces and in public spaces | ||
when an individual is representing the project or its community. Examples of | ||
representing a project or community include using an official project e-mail | ||
address, posting via an official social media account, or acting as an appointed | ||
representative at an online or offline event. Representation of a project may be | ||
further defined and clarified by project maintainers. | ||
|
||
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported by contacting the project team at info@munterfinger.ch. All | ||
complaints will be reviewed and investigated and will result in a response that | ||
is deemed necessary and appropriate to the circumstances. The project team is | ||
obligated to maintain confidentiality with regard to the reporter of an incident. | ||
Further details of specific enforcement policies may be posted separately. | ||
|
||
Project maintainers who do not follow or enforce the Code of Conduct in good | ||
faith may face temporary or permanent repercussions as determined by other | ||
members of the project's leadership. | ||
|
||
## Attribution | ||
|
||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, | ||
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html | ||
|
||
[homepage]: https://www.contributor-covenant.org | ||
|
||
For answers to common questions about this code of conduct, see | ||
https://www.contributor-covenant.org/faq |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,101 @@ | ||
# How to contribute? | ||
|
||
This document contains guidelines for the collaboration in the **hereR** R package. | ||
|
||
## Getting started | ||
|
||
Ready to contribute? Here's how to set up **hereR** for local development. | ||
|
||
1. Fork the repository to your GitHub account and clone the forked repository locally. | ||
2. Install the dependencies (check the `DESCRIPTION` file). | ||
3. Create a feature or bugfix branch as appropriate: `git checkout -b feature/<feature-description> develop` or `git checkout -b bugfix/<bugfix-description> develop` | ||
4. Work locally on the feature, make sure to add or adjust: | ||
- entries in `NEWS.md` | ||
- function documentation (run `devtools::document()` before commit) | ||
- tests for the feature (run `export HERE_API_KEY="<YOUR-KEY>" && Rscript data-raw/internal.R && unset HERE_API_KEY` to recreate package example data and API mocks) | ||
- vignettes | ||
5. Push changes to the new branch. | ||
6. If CI tests are passing, create a pull request on GitHub of your `feature/...` or `bugfix/...` branch into the `develop` branch of the original repository. | ||
|
||
## Gitflow workflow | ||
|
||
### Master and develop | ||
|
||
The [gitflow workflow](https://www.atlassian.com/git/tutorials/comparing-workflows/gitflow-workflow) uses two branches to | ||
record the history of the project. The `master` branch stores the official release history, and the `develop` branch serves | ||
as an integration branch for features. It's also convenient to tag all commits in the `master` branch with a version number. | ||
|
||
### Features | ||
|
||
Each new feature should reside in its own branch. But, instead of branching off of `master`, feature branches use | ||
`develop` as their parent branch. When a feature is complete, it gets merged back into `develop`. Features should never interact directly with `master`. | ||
|
||
### Release | ||
|
||
This packages uses [semantic versions](https://semver.org/). Once `develop` has aquired enough features for a release, | ||
fork a release (`release/v<major>.<minor>.<patch>)` branch off of `develop`. When CRAN has accepted the package submission, | ||
the release branch gets merged into `master` and tagged with a version number. In addition, it should be merged back into `develop`, | ||
which may have progressed since the release was initiated. | ||
|
||
## Documentation and coding style | ||
|
||
### Naming convention | ||
|
||
Use `snake_case` for variable, argument and function name definitions and avoid capital letters. | ||
Dots (`.`) in function definitions are reserved for the functions and method dispatch in the S3 object system (e.g. `print.my_class`) or as prefix to hide functions (e.g. `.my_hidden_function`). | ||
|
||
### Package documentation | ||
|
||
This packages uses [roxygen2](https://cran.r-project.org/web/packages/roxygen2/vignettes/roxygen2.html) for the package documentation. | ||
|
||
Example: | ||
|
||
``` r | ||
#' Add together two numbers | ||
#' | ||
#' @param x A number | ||
#' @param y A number | ||
#' @return The sum of \code{x} and \code{y} | ||
#' @examples | ||
#' add(1, 1) | ||
#' add(10, 1) | ||
add <- function(x, y) { | ||
x + y | ||
} | ||
``` | ||
|
||
### Script header template | ||
|
||
Add a header to CLI scripts according to the following template: | ||
|
||
``` r | ||
#!/usr/bin/env Rscript | ||
# ----------------------------------------------------------------------------- | ||
# Name :example_script.R | ||
# Description :Short description of the scripts purpose. | ||
# Author :Name <your@email.ch> | ||
# Date :YYYY-MM-DD | ||
# Version :0.1.0 | ||
# Usage :./example_script.R | ||
# Notes :Is there something important to consider when executing the | ||
# script? | ||
# ============================================================================= | ||
``` | ||
|
||
## Credits | ||
|
||
Add your GitHub username to the bugfix or feature entry in the `NEWS.md` to ensure credits are given correctly: | ||
|
||
``` | ||
# version x.x.x.9000 | ||
* Added <feature description> (@<github_username>, [#1](https://github.com/munterfinger/hereR/pull/1)). | ||
* Bugfix: <description> (@<github_username>, closes [#2](https://github.com/munterfinger/hereR/issues/2)). | ||
``` | ||
|
||
## Code of conduct | ||
|
||
Please note that this project is released with a | ||
[Contributor Code of Conduct](CODE_OF_CONDUCT.md). By contributing to this | ||
project you agree to abide by its terms. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help improving the package | ||
title: 'Bug: <Title>' | ||
labels: 'bug' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
|
||
**Reproducible example** | ||
Include R code to reproduce the bug. Use the [reprex package](https://reprex.tidyverse.org/). | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
|
||
**Optionally: R session info** | ||
Include session info: `devtools::session_info()`. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for the package | ||
title: 'Feature: <Title>' | ||
labels: 'feature' | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Description** | ||
A description of what you want to happen and if your feature request is related to a problem. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,4 +40,3 @@ vignettes/*.pdf | |
|
||
# macOS | ||
*.DS_Store | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.