Skip to content

OpenPVA 2.3.0: presentation, visual lifecycle inspection & documentation site - #6

Merged
BWBrook merged 6 commits into
mainfrom
openpva-2.3.0
Dec 3, 2026
Merged

BWBrook merged 6 commits into
mainfrom
openpva-2.3.0

Conversation

@BWBrook

@BWBrook BWBrook commented Dec 2, 2026

Copy link
Copy Markdown
Owner

Summary

Implements the OpenPVA 2.3.0 presentation, visual inspection, documentation, and UX polish release on top of the frozen 2.2.0 simulation core (zero changes to demographic, pedigree, marker, or RNG engine maths):

  • Layer 1 — Identity & GitHub front door:
    • Pure-SVG geometric hex logo (man/figures/logo.png + source scripts/logo.svg).
    • Reproducible 3-panel hero figure generated directly from OpenPVA output (man/figures/readme-hero.png via scripts/make_readme_hero.R).
    • Refreshed README.md with badges, hero graphic, 4-pillar overview, capability map, and updated links.
    • Added Zenodo Concept DOI 10.5281/zenodo.24521838 to inst/CITATION and brought docs/vision_and_scope.md into sync with 2.2+.
  • Layer 2 — Self-contained litedown documentation site & GitHub Pages workflow:
    • Configured site/ (_litedown.yml, index.Rmd, manual.Rmd, articles.Rmd, custom.css) and scripts/build_site.R using litedown::pkg_site() (OpenPVA's existing vignette dependency—zero new package dependencies and zero bytes added to the CRAN tarball), grouping all 62 exports into 7 ecological reference sections.
    • Added .github/workflows/site.yaml to deploy automatically to GitHub Pages on push to main.
  • Layer 3 — Agent modelling guide & visual workflow vignette:
    • New docs/for-agents.md documenting exact signatures, common parameter traps, a 5-step verification workflow, and composition templates for AI agents and script authors.
    • New vignettes/workflow.Rmd (litedown::vignette) walking through lifecycle inspection (plot(scenario)), life_table_metrics(), cohort accounting, overlaid trajectory/risk plots, paired management ensembles, and neutral genetic retention.
  • Layer 4 — Visual model translation & 3 UX fixes:
    • New describe_lifecycle(), format_lifecycle() (text / mermaid / dot), plot.pva_scenario(), plot.pva_lifecycle(), and print.pva_lifecycle() in R/lifecycle.R (pure base R, zero RNG perturbation).
    • Ergonomic fixes: shift_logit() safely handles empty logical(0) from ifelse() on extinct replicates (N == 0); [.pva_ensemble preserves provenance metadata across data-frame subsetting; plot.pva_ensemble() respects scalar or per-member col.

Verification

  • Local unit tests: 2,958 PASS / 0 FAIL / 0 WARN / 0 SKIP (+42 new assertions in tests/testthat/test-lifecycle.R).
  • Local Rscript --vanilla scripts/check_r_floor.R: PASS (serial, fork, and PSOCK parity).
  • Local _R_CHECK_SYSTEM_CLOCK_=0 R CMD check --as-cran --no-manual OpenPVA_2.3.0.tar.gz: 0 ERRORs, 0 WARNINGs, 1 NOTE (New submission), both vignettes (rosetta.Rmd + workflow.Rmd) rebuilt cleanly in 28 s.
  • Local scripts/build_site.R built 7 HTML pages visually verified in headless Chromium.
  • CRAN status: held pending human review of OpenPVA 2.1.1.

@BWBrook
BWBrook merged commit 84a0740 into main Dec 3, 2026
5 checks passed
@BWBrook
BWBrook deleted the openpva-2.3.0 branch December 3, 2026 00:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant