Fail fast when requested R version is not installed - #104
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: a1ae1d1e5e
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 22c19f4810
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
Summary
When an explicit R version is requested and no installed R matches, fail directly from the installed R list instead of querying
rig available --json.This keeps the missing-version path simpler and avoids an unnecessary external lookup that can obscure the actual error. It also makes short exact-version requests behave as series requests:
== 4means4.*.*, and== 4.4means4.4.*, selecting the latest installed matching version rather than treating omitted components as0.User-facing changes
ir run --r-version <version>now reports a missing installed R directly when no installed version matches.--r-version 4and--r-version "== 4"select an installed4.x, choosing the latest matching installed version.--r-version "== 4.4"selects an installed4.4.x, choosing the latest matching patch when multiple patches are installed.rig available --json.exclude-newerbehavior is unchanged and still uses R availability metadata where needed.Internal changes
rig_selectiontests.rig available --json.rig installhints from bare and==R version requirements.