Skip to contents

First off, thanks for considering contributing to healthbR! This package aims to make Brazilian public health data accessible to researchers, and contributions from the community are essential.

Code of Conduct

Please note that healthbR is released with a Contributor Code of Conduct. By contributing to this project you agree to abide by its terms.

How to Contribute

Bug Reports

If you find a bug, please open an issue on GitHub with:

  • A minimal reproducible example (reprex)
  • The output of sessionInfo()
  • The healthbR version (packageVersion("healthbR"))

Feature Requests

Have an idea for a new data source or function? Open an issue describing:

  • The data source or feature
  • Why it would be useful
  • Links to the data source documentation (if applicable)

Pull Requests

Want to contribute code? Great! Here is how:

  1. Fork the repository and create a new branch from main
  2. Follow the coding conventions below
  3. Add tests for new functionality (we aim for >= 75% coverage)
  4. Run devtools::check() and ensure no errors or warnings
  5. Submit a pull request describing the changes

Coding Conventions

Development Workflow

# install development dependencies
devtools::install_dev_deps()

# run tests
devtools::test()

# check the package
devtools::check()

# check test coverage
covr::package_coverage()

Questions?

Open a discussion on GitHub or contact the maintainer.