Contributing to statim
Source:.github/CONTRIBUTING.md
Thank you for your interest in contributing to statim. We are genuinely grateful for every contribution; your time and ideas make this project better and directly help us as maintainers.
Code of Conduct
By participating in this project, you agree to follow the rules in CODE_OF_CONDUCT.md.
Ways to Contribute
- Report bugs and suggest features using GitHub issues.
- Improve documentation and examples.
- Submit pull requests for fixes and enhancements.
Development Setup
- Clone the repository.
- Install development dependencies in R:
install.packages(c("devtools", "roxygen2", "testthat"))- Load the package for development:
devtools::load_all()Tooling
This project enforces code style via two tools:
For installation, see the Air CLI guide. Verify with air --version. For editor integration, see the editor guides.
The project root contains an air.toml — your editor will pick it up automatically.
Pull Request Guidelines
Keep pull requests focused and small when possible.
Add or update tests when behavior changes.
Update documentation for user-facing changes.
-
Format the project before submitting:
-
Check for linting issues:
lintr::lint_package() -
Run checks:
devtools::check()
Both air format . and lintr::lint_package() must produce no errors. Every pull request runs automated checks via CI — unformatted code or linting violations will fail the build.