CONTRIBUTING.md

Contributing to TrenchR

Thanks for taking the time to contribute!

The following is a set of guidelines for contributing to TrenchR. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.

Table Of Contents

Code of Conduct

What should I know before I get started? * TrenchR

How Can I Contribute? * Ready to develop * Reporting Bugs * Suggesting Enhancements * Your First Code Contribution * Pull Requests

Styleguides * Git Commit Messages * R Styleguide

Additional Notes * Issue and Pull Request Labels

Credit

Code of Conduct

As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities. We welcome and appreciate all contributions regardless of contributor identity or level of experience. We adhere to the Contributor Covenant (http:contributor-covenant.org).

What should I know before I get started?

TrenchR

TrenchR is an open source project — it's made up of over 10 modules. If you are considering contributing to TrenchR, this section should help you with that.

TrenchR is modular. The R scripts cover a particular category (aka modules), and each have multiple function definitions.

Here's a partial list of modules:

How Can I Contribute?

Development

Reporting Bugs

This section guides you through submitting a bug report for TrenchR.

How Do I Submit A Bug Report?

Bugs are tracked as GitHub issues.

Explain the problem and include additional details to help maintainers reproduce the problem:

Include details about your configuration and environment:

Suggesting Enhancements

This section guides you through submitting an enhancement suggestion for TrenchR, including completely new features and minor improvements to existing functionality. Following these guidelines helps maintainers and the community understand your suggestion :pencil: and find related suggestions :mag_right:.

How Do I Submit A Enhancement Suggestion?

Enhancement suggestions are tracked as GitHub issues. Create an issue on TrenchR repository and provide the following information:

Your First Code Contribution

Unsure where to begin contributing to TrenchR? You can start by looking through these beginner and help-wanted issues:

Both issue lists are sorted by total number of comments. While not perfect, number of comments is a reasonable proxy for impact a given change will have.

Additional project information is available on the TrEnCh Project website.

Local development

TrenchR packages can be developed locally. For instructions on how to do this, see the develop section

Pull Requests

Styleguides

Git Commit Messages

R Styleguide

All R code style is borrowed from Hadley Wickham R Pkgs book R packages.

R Example

#' Converts angle in radians to degrees
#'
#' @details Converts angles in radians to degrees
#' 
#' @description This function allows you to convert angle in radians to degrees
#' @param rad angle in radians
#' @keywords radians to degrees
#' @return angle in degrees
#' @export
#' @examples
#' \dontrun{
#' radian_to_degree(rad=0.831)
#' }
radian_to_degree <- function(rad) {(rad * 180) / (pi)}

Additional Notes

Issue and Pull Request Labels

This section lists the labels we use to help us track and manage issues and pull requests.

Credit

Contributrion template adapted by referring to Atom and rOpenSci projects.



trenchproject/TrenchR documentation built on Oct. 10, 2023, 10:12 p.m.