Skip to content

Commit 9173062

Browse files
authored
Merge branch 'main' into feature/thin-samples-utils
2 parents 140fc17 + f178799 commit 9173062

3 files changed

Lines changed: 120 additions & 0 deletions

File tree

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
name: Bug report
3+
about: Report a problem with rfaR
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
**Describe the bug**
10+
A clear and concise description of what the bug is.
11+
12+
**To Reproduce**
13+
Steps to reproduce the behavior. A minimal reproducible example (reprex) is strongly preferred — see https://reprex.tidyverse.org/.
14+
15+
**Expected behavior**
16+
What you expected to happen.
17+
18+
**Actual behavior**
19+
What actually happened, including any error messages or warnings (copy the full text).
20+
21+
**Input data and configuration**
22+
If applicable, describe the input data (hydrograph, reservoir table, frequency curve parameters, etc.) and the rfaR function call that triggered the issue.
23+
24+
**Session info**
25+
Please paste the output of `sessionInfo()` and `packageVersion("rfaR")`:
26+
27+
```
28+
# paste here
29+
```
30+
31+
**Operating system**
32+
e.g., Windows 10, Windows 11, macOS 14, Ubuntu 22.04
33+
34+
**Additional context**
35+
Screenshots, plots, or any other information that might help.

.github/pull_request_template.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
## Description
2+
Brief summary of the change and the motivation for it.
3+
4+
## Related Issue
5+
Closes #<issue number>, or "Discussed in #<issue number>"
6+
7+
## Type of change
8+
- [ ] Bug fix
9+
- [ ] New feature
10+
- [ ] Documentation update
11+
- [ ] Refactor / internal cleanup
12+
- [ ] Other (describe):
13+
14+
## Checklist
15+
- [ ] I opened an issue to discuss this change before submitting
16+
- [ ] `devtools::document()` has been run
17+
- [ ] `devtools::check()` passes with zero errors, warnings, and notes
18+
- [ ] Unit tests have been added or updated (`testthat`)
19+
- [ ] `NEWS.md` has been updated (if user-facing)
20+
- [ ] I agree to the Developer Certificate of Origin (see CONTRIBUTING.md)

CONTRIBUTING.md

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# Contributing to rfaR
2+
3+
Thank you for your interest in contributing to rfaR! We welcome bug reports, feature requests, validation results, and other feedback from the community.
4+
5+
## Review Capacity
6+
7+
rfaR is maintained by a small team within the U.S. Army Corps of Engineers Risk Management Center (USACE-RMC). **Our capacity to review external pull requests is very limited.** We prioritize issues and bug reports, which are always welcome and will be reviewed as resources permit.
8+
9+
If you plan to submit a pull request, please open an issue first to discuss your proposed change. This helps avoid duplicated effort and ensures your contribution aligns with the project's direction.
10+
11+
## How to Contribute
12+
13+
### Report a Bug
14+
15+
If you find a bug, please [open an issue](../../issues/new) and include:
16+
17+
- Steps to reproduce the problem
18+
- Input data and configuration (if applicable)
19+
- Expected behavior vs. actual behavior
20+
- R version, rfaR version (`packageVersion("rfaR")`), and operating system
21+
- Any relevant error messages or screenshots
22+
- A minimal reproducible example (`reprex`) when possible
23+
24+
### Request a Feature
25+
26+
Feature requests are welcome. Please [open an issue](../../issues/new) describing:
27+
28+
- The use case or problem you are trying to solve
29+
- How you envision the feature working
30+
- Any references to statistical or hydrologic methods or published literature
31+
32+
### Report Validation Results
33+
34+
Given the life-safety applications of this software, independent validation is especially valuable. If you have compared rfaR results against other software (e.g., RMC-RFA, HEC-HMS, HEC-WAT, published tables, or analytical solutions), we would appreciate hearing about it through an issue.
35+
36+
### Submit a Pull Request
37+
38+
Pull requests may take several weeks or longer to review. Before submitting code:
39+
40+
1. **Open an issue first** to discuss the proposed change
41+
2. **Follow the coding standards**, including roxygen2 documentation on all exported functions
42+
3. **Include unit tests** using `testthat` that validate against known results (RMC-RFA, HEC-HMS, published tables, or analytical solutions)
43+
4. **Ensure a clean `R CMD check`** with zero errors, zero warnings, and zero notes (run via `devtools::check()`)
44+
5. **Rebuild documentation** with `devtools::document()` before committing
45+
6. **Follow existing code style** (explicit `package::function()` namespacing, positional column access where appropriate, and the package's established plotting conventions)
46+
47+
## Developer Certificate of Origin
48+
49+
By submitting a pull request, you certify under the [Developer Certificate of Origin (DCO) Version 1.1](https://developercertificate.org/) that you have the right to submit the work under the license associated with this project and that you agree to the DCO.
50+
51+
All contributions will be released under the same license as the project (see [LICENSE](LICENSE)).
52+
53+
## Federal Government Contributors
54+
55+
U.S. Federal law prevents the government from accepting gratuitous services unless certain conditions are met. By submitting a pull request, you acknowledge that your services are offered without expectation of payment and that you expressly waive any future pay claims against the U.S. Federal government related to your contribution.
56+
57+
If you are a U.S. Federal government employee and use a `*.mil` or `*.gov` email address, your contribution is understood to have been created in whole or in part as part of your official duties and is not subject to domestic copyright protection under 17 USC 105.
58+
59+
## Security
60+
61+
If you discover a security vulnerability, please do **not** open a public issue. Instead, contact the RMC team directly through official USACE-RMC channels.
62+
63+
## License
64+
65+
See [LICENSE](LICENSE) for details. This software is provided by USACE-RMC under a BSD-3-Clause license with a no-endorsement clause.

0 commit comments

Comments
 (0)