Thank you for considering contributing to tidybrreg.
Filing issues
- Use the GitHub issue tracker.
- For bugs: include a minimal reproducible example and the output of
sessionInfo(). - For feature requests: describe the use case and the API endpoint involved.
- For API changes: include the URL and the actual vs expected response.
Pull requests
- Fork and clone the repository.
- Create a branch:
git checkout -b feature/my-feature. - Install dev dependencies:
pak::pak(".", dependencies = TRUE). - Make changes and add tests in
tests/testthat/. - Run
devtools::check()— must pass with 0 errors and 0 warnings. - Update
NEWS.mdwith a bullet under the development version. - Push and open a pull request.
Code style
- Follow the tidyverse style guide.
- Use
|>(base pipe), not%>%. - Use
cli::cli_abort()for errors with informative bullets. - Gate optional dependencies with
rlang::check_installed(). - New exports need
@param,@returns,@export,@family,@examples.
Testing
devtools::test() # offline tests
Sys.setenv(NOT_CRAN = "true")
devtools::test() # includes API testsAPI tests use a safely() wrapper that skips on network errors. Add skip_if_offline() at the start of any new API test.
Documentation
After changing roxygen comments or adding functions:
roxygen2::roxygenise()
rmarkdown::render("README.Rmd", output_format = "github_document")Code of conduct
This project follows the Contributor Covenant Code of Conduct.