Contributing to priogridR
Source:CONTRIBUTING.md
Thank you for considering a contribution.
Reporting bugs
Before opening an issue, please search existing issues. A useful bug report includes:
- a minimal reproducible example;
- the expected and observed behavior;
- the output of
sessionInfo(); - relevant spatial reference-system and PRIO-GRID configuration information;
- small, shareable example data when possible.
Please do not post confidential or restricted data.
Proposing features
Open a feature request describing the research workflow, the desired public interface, and why existing functions do not cover the use case. Public functions should begin with pg_ and use snake case.
Pull requests
- Create a focused branch from
main. - Add or update tests for behavioral changes.
- Document exported functions with roxygen2.
- Update
NEWS.mdfor user-visible changes. - Run:
devtools::document()
devtools::test()
devtools::check()Pull requests should leave R CMD check --as-cran without errors, warnings, or significant notes. Do not edit generated NAMESPACE or man/ files by hand; regenerate them with devtools::document().
Style
Use two spaces for indentation, explicit namespace calls such as terra::rast(), and descriptive argument names. Avoid changing the working directory or writing outside locations explicitly selected by the user.