Contributing to DataSum
Source:CONTRIBUTING.md
Thank you for helping make DataSum more useful for statistical teaching, research, and reproducible analysis.
Good contributions
Useful contributions include:
- bug reports with a minimal reproducible example
- test cases for edge cases such as missing values, tied modes, constant vectors, grouped summaries, and unusual column classes
- statistical-method discussions with references or clear formula definitions
- documentation improvements for professors, students, scientists, and applied analysts
- Shiny app usability improvements
- report-template improvements for publication workflows
Development setup
Use a recent R release, preferably R 4.1 or newer.
install.packages(c("devtools", "testthat", "roxygen2", "pkgdown"))
devtools::load_all()
devtools::test()
devtools::document()
devtools::check()For website work, run:
pkgdown::build_site()For CRAN preparation, run:
devtools::check(args = "--as-cran")Pull requests
Before opening a pull request:
- keep the change focused
- add or update tests when behavior changes
- update documentation for user-facing changes
- run
devtools::test()and, when possible,devtools::check() - explain statistical changes clearly, including formulas, thresholds, and assumptions