Tools guide
This page is about contributing efficiently and reproducibly.
Local workflow
- Load code quickly:
devtools::load_all() - Run tests:
devtools::test()ortestthat::test_dir("tests/testthat") - Full check:
devtools::check()
Common tasks
- Rebuild documentation:
devtools::document() - Rebuild vignettes (if needed):
devtools::build_vignettes()
Debugging tips
- Start from minimal reproducible data (small
n) for backend and kernel debugging. - Prefer deterministic seeds in tests and vignettes.
- When modifying the registry or contracts, add at least one test that fails prior to the change.
Link checking (website)
Use the generated link graph (edges + nodes) to detect: - orphan pages - broken internal links - workflow chain breaks
Prereqs
- Required packages and data for this page are listed in the setup chunks above.
Outputs
- This page renders model fits, diagnostics, and summary artifacts generated by package APIs.
Interpretation
- Canonical concept page: Spec And Contracts
- Treat this page as an application/example view and use the canonical page for core definitions.
Next
- Continue to the linked canonical concept page, then return for implementation-specific details.