Repository navigation
Fix JAGS 5 initialization in serodynamics examples - #330
Open
sschildhauer wants to merge 10 commits into
Open
sschildhauer wants to merge 10 commits into
sschildhauer wants to merge 10 commits into
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests.
|
Contributor
|
📖 https://ucd-serg.github.io/serodynamics/preview/pr330 |
d-morrison
reviewed
Nov 25, 2026
d-morrison
left a comment
Member
There was a problem hiding this comment.
First review of head 6f149c1. Every check is green (R CMD check on all four platforms, test-coverage, docs-check, lint, spellcheck, version-check, changelog, pkgdown). I found nothing blocking; the points below are for you and the maintainers to weigh.
What I checked:
- The prior change is applied consistently:
R/load_data.r,data-raw/nepal_sees_jags_output.R, the fourinst/examplesfiles, and the three generated.Rdfiles all use0.0001. DESCRIPTION is 0.1.0.9025 with roxygen 8.1.1, and the NEWS entry is under "New features". - The
version-checkworkflow now compareshead.shaandbase.shainstead of branch names, which fixes the check for PRs from forks or renamed branches. setup-jagsis reused across five workflows instead of repeating install steps, and the oldcurl -k(certificate checks off) is gone.
Points to weigh:
- The JAGS 5.0.2 sources and installers are downloaded from SourceForge with no checksum. Pinning a
sha256sum/Get-FileHashcheck in.github/actions/setup-jags/action.ymlwould protect the CI runners from a swapped download. test-coverage.yamlpinsrjags4-17 andrunjags2.2.2-5 from the CRAN Archive URL. That works today, but those links are permanent only as long as CRAN keeps them. Say in a comment when this pin can be dropped (e.g. once the exact-draw snapshots are regenerated on JAGS 5).- The R-CMD-check macOS step upgrades
rjagsfrom source only whenpackageVersion("rjags") < "5.0", while Linux builds JAGS from source on every run. A one-line comment on why the two platforms differ would help the next maintainer. - Scope: the PR mixes the prior change, CI/JAGS plumbing, a
version-checkfix, and a whitespace-only change to theload_data()signature inR/load_data.r. The signature reformat is unrelated; consider dropping it. - serodynamics #328 carries the same prior change and is still open, and this PR says it carries those commits forward. Please close one when the other merges so they don't conflict. Also, #324 and #329 both bump the version past 0.1.0.9025, so whichever merges second needs a fresh bump.
- The ~13.8k-line diff is almost entirely regenerated SVG snapshots. They can't be reviewed by eye; the green check runs that compare them are the evidence here.
Posted by Claude Code (AI agent) --- not written by a human.
Generated by Claude Code
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Carries forward @martynplummer’s original commits from #328. They make the example prior for peak antibody response less diffuse so JAGS 5 can generate viable initial values and regenerate the bundled Nepal example fit.
This branch updates both getting-started examples and refreshes the snapshots tied to the regenerated fit. The version check compares the pull request’s actual commits. CI installs JAGS 5 for package checks and keeps a matching JAGS 4 toolchain for the coverage suite’s exact-draw comparisons.
Local verification