Bug reports and pull requests are welcome at https://github.com/jwood-iastate/flexCountReg/issues. Please include a minimal reproducible example (reprex::reprex()).
Development workflow
- Code style: the tidyverse style guide, 80-character lines.
- Documentation: roxygen2 (run
devtools::document(); the version inDESCRIPTIONunderConfig/roxygen2/versionis the one used to generate theman/files). - Tests: testthat edition 3. Every bug fix gets a regression test that fails before the fix. Prefer tests that check results (closed forms, reference implementations, simulation recovery, invariances) over tests that only check that code runs. Mark slow stochastic tests with
skip_on_cran(). - Model families are defined once, in
R/families.R; data preparation and prediction blueprints inR/model_data.R.
Release checklist
-
devtools::document()anddevtools::build_readme(). -
devtools::test()with no failures and no unexpected warnings. -
devtools::check(remote = TRUE, manual = TRUE)with no errors, warnings or notes;urlchecker::url_check();devtools::spell_check(). - Check on the minimum R version in
DESCRIPTION, on R-devel (rhub::rhub_check()), and with only the hard dependencies installed (theno-suggestsCI job). - Update
NEWS.md(user-visible changes, including changed results) and the version number inDESCRIPTION. - Build the pkgdown site and check the vignettes.
-
devtools::submit_cran(); tag the release on GitHub.
