Thank you for your interest in contributing to tidyhte! We welcome contributions from the community.
tidyhte
aims to make modern heterogeneous treatment effect estimation with DR-learner accessible to applied researchers through a user-friendly interface. The focus is on providing reliable implementations with sensible defaults while maintaining flexibility for advanced users. We particularly value contributions that improve usability, add well-tested features, and enhance documentation.
This project is maintained by Drew Dimmery, who makes decisions about the project direction. Substantial contributors may be invited to join a core development team, with decisions made by consensus among team members.
This project uses semantic versioning. The API is stable as of version 1.0.0, and there are no current plans for breaking changes. Patch versions (1.0.x) fix bugs, minor versions (1.x.0) add backwards-compatible features, and major versions (x.0.0) would introduce breaking changes (which are not currently planned).
Please note that this project is released with a Contributor Code of Conduct. By participating in this project you agree to abide by its terms.
Fork the repository on GitHub
Clone your fork locally:
Install development dependencies:
install.packages("devtools")
devtools::install_dev_deps()
Load the package for development:
devtools::load_all()
If you find a bug, please open an issue with:
sessionInfo()
)Enhancement suggestions are welcome! Please open an issue describing:
Create a new branch for your changes:
Make your changes, following the coding style guidelines below
Add tests for your changes in tests/testthat/
Run R CMD check to ensure everything passes:
devtools::check()
Update documentation if needed:
devtools::document()
Commit your changes with a clear commit message
Push to your fork and submit a pull request
styler::style_pkg()
before committinglintr::lint_package()
passesdevtools::test()
covr::package_coverage()
# Run all tests
devtools::test()
# Run tests for a specific file
testthat::test_file("tests/testthat/test-api-mcate.R")
# Check test coverage
covr::package_coverage()
@examples
for user-facing functionsdevtools::document()
to regenerate .Rd filesWhen modifying vignettes:
Edit the .Rmd source files in vignettes/
Rebuild vignettes with:
devtools::build_vignettes()
To build and install the package locally:
To check the package as CRAN does:
devtools::check(cran = TRUE)