Repository navigation
Bump renv to 1.3.1 so restore keeps the locked rjags - #1516
Merged
Merged
Conversation
renv 1.2.2 builds the dependency graph for an archived (non-current) locked package from the current CRAN entry's fields with the version overridden. Current runjags imports rjags (>= 5-5), so restore treated the locked rjags 4-17 as unsatisfied and swapped in rjags 5-5, which needs JAGS 5 and fails against the runners' apt JAGS 4.3.2. renv 1.3.1 reads the archived version's own DESCRIPTION instead, and restores rjags 4-17 and runjags 2.2.2-5 as locked. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VDkNzkd9qjpb3MpNGgLa8A
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VDkNzkd9qjpb3MpNGgLa8A
Contributor
|
Claude finished review — View run I reviewed the diff, which touches
VerdictReady for merge Structured Review Data (JSON){
"schema_version": "1.1",
"reviewer": "claude",
"commit_sha": "36a1c7860aab28ab9e1928530478a4f868f1f072",
"verdict": "CLEAN",
"findings": [],
"detailed_assessment": "Checked renv.lock and renv/activate.R: renv 1.3.1 exists on CRAN, the lockfile entry and the bootstrap version and md5 agree, and rjags stays pinned at 4-17. The CLAUDE.md addition is accurate.",
"holistic_assessment": "The change is a focused dependency bump with matching documentation and no content or math. The remaining risk is that the CI restore result is not verified here, which CI itself will show."
}Reviewed commit: 36a1c78 |
Contributor
Contributor
Built to branch |
Collaborator
Author
|
Annotation dispositions for head 36a1c78:
End-to-end check: the preview build bootstrapped renv 1.3.1 and restored Posted by Claude Code (AI agent) --- not written by a human. Generated by Claude Code |
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.
Requested by Ezra · project thread
Summary
Fixes the failing
Quarto Publishrun onmain(run 45303028668),
where
r-lib/actions/setup-renvstopped withconfigure: error: pkg-config found JAGS 4.3.2 but rjags requires JAGS 5.x.y.A re-run on 2026-11-30 failed the same way
(job 142308375962), so it is not a flake.
Cause
renv.lockpinsrjags4-17, butrenv::restore()with renv 1.2.2 downloaded rjags 5-5.renv 1.2.2's graph installer (
renv_graph_description_repository()) describes an archived locked packageby taking the current CRAN entry's dependency fields and overriding only the version.
The locked
runjags2.2.2-5 is archived, and the currentrunjagson CRAN hasImports: rjags (>= 5-5),so the graph's version check judged rjags 4-17 unsatisfied and upgraded it to the latest (5-5),
which needs JAGS 5; the runners install JAGS 4.3.2 from apt.
The last green publish (run 44930735368) shows the same mechanism before rjags 5-5 reached CRAN:
it installed rjags 4-18, not the locked 4-17, and listed it under "The dependency tree was repaired".
renv 1.3.1 no longer has that branch: it reads an archived version's own DESCRIPTION (crandb or the CRAN archive).
Change
Bumps renv from 1.2.2 to 1.3.1 in
renv.lockandrenv/activate.R(written with renv 1.3.1's own
renv_infrastructure_write_activate(); the activate.R hunk is renv's bootstrap code).No other lockfile record changes.
Adds a short
### renvsection toCLAUDE.mdrecording this trap, so the next agent checks the renv version before adding a pin.Checks
rjags,runjags,codaandlatticefrom rme'srenv.lock,against the same repository CI uses (
packagemanager.posit.co/cran/__linux__/resolute/latest):renv 1.2.2 downloads rjags 5-5 and fails; renv 1.3.1 installs rjags 4-17 and runjags 2.2.2-5.
activate.Rwithout error.renv::restore(); that is the end-to-end test.Other packages that renv 1.2.2 used to "repair" to newer versions (for example
performance,systemfonts,insight)may now restore at their locked versions instead. The preview render checks that the site still builds with them.
https://claude.ai/code/session_01VDkNzkd9qjpb3MpNGgLa8A
Generated by Claude Code