Use rig in the setup-r action
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 5/5
- 見積もり時間
- 1週間以上
- 初心者へのやさしさ
- 40/100
調査の方向性
Start with the r-lib/actions/setup-r action and its existing installer paths, then review the r-lib/actions test matrix for oldrel-4, devel, next, arm64, and containers. Compare the proposed opt-in installer: rig flow with the listed platform, Rtools, environment, and repository behavior; done means the opt-in path passes that matrix without regressing install-r: false or existing workflows.
索引モデルが issue の本文から書いたものです。
説明
Similar to #403, but for setup-r instead of setup-r-dependencies: what it would take for r-lib/actions/setup-r to install R with rig.
rig already does the core of what setup-r does (resolving the version, installing R, Rtools, links, repos, user library). Most of the remaining work is glue in the action. A possible plan is to ship it as an opt-in installer: rig input first, and switch the default later.
Background
rig already does the core of what setup-r does: resolving a version,
installing R, Rtools, quick links, and repos. The open question is what rig
itself is missing before setup-r could install R via rig instead of its own
three installers.
Missing rig features
-
--jsonoutput forrig add. Needed so the action can read back
the installed version and path without a separaterig resolve --json/
rig list --jsoncall. - Windows install-dir override for admin mode. rig installs into
C:\Program Files\R;setup-rand many existing workflows expect
C:\R. Without an override, switching a workflow to rig is a breaking
change for anything that hard-codes the old path. - A way to print/export Rtools environment info.
rig add rtools
installs Rtools and wires it intoRenviron.site, but shell steps in a
workflow also need Rtools onPATH, plusRTOOLSxx_HOMEand
_R_INSTALL_TIME_PATCHES_=noexported into the job environment. rig has
no command to surface these values today. -
rig add gfortranon macOS.setup-rdownloads one of three
gfortran/flang variants depending on R version and arch, plus sets
SDKROOT. rig has no equivalent. - Extra repositories in
rig repos setup.setup-rwrites RSPM,
CRAN, andextra-repositoriesinto~/.Rprofile. rig's repo setup only
covers P3M and CRAN in the site profile; it needs a way to add extra repos
(tracked together with the broader repos work in #403). -
R_LIBS_USER. rig does not set this outside of rvenv projects, so
whoever replacessetup-r's installer still needs to set it. Worth
confirming on an actual runner whether rig should set a default here.
Compatibility gaps to check, not build
- Version string parsing.
setup-rspecial-cases inputs like3,
3.x,4.x.x. Confirmrig resolve/rig addaccept the same forms, or
this mapping has to stay in the action. - Platform coverage vs.
setup-r. Confirm how far back rig supports
each OS (e.g. R 3.x on macOS and Windows), and whether rig handles the R
3.6 P3M snapshot pin thatsetup-rcurrently applies.
Out of scope for rig (stays in the action regardless)
For reference, these are things setup-r does that are not rig's job and
would remain action-side glue even after the features above land:
qpdf/ghostscript/devscripts/checkbashisms installs, the addPath /
RTOOLS*_HOME export step itself, TZ / NOT_CRAN / RSPM /
RENV_CONFIG_REPOS_OVERRIDE env vars, and getting the rig binary onto the
runner.
What we gain
- About 600 lines of installer code removed from the action: version resolution, the three installers, Rtools selection.
- Multiple R versions in one job.
- Windows arm64 and Rtools handling in one place.
- Portable Linux builds for unsupported distros.
- The same R setup in CI as users have locally.
- Having rig on the runner is needed for #403 anyway.
Risks
- Behavior changes affect many workflows. Ship as opt-in
installer: rig, run both code paths through the r-lib/actions test matrix (oldrel-4,devel,next, arm64, containers), then switch the default. - Check how far back rig supports each platform (R 3.x on macOS and Windows) against what
setup-rsupports now. Also the R 3.6 P3M snapshot pin. - Pin the rig version in the action, so a rig release cannot break CI.
- 主要言語
- Rust
- スター
- 1k
- フォーク
- 42
- 平均マージ
- 9時間 33分
- マージ済み PR(30日)
- 17
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
r-lib/rig のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
bug documentation
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
.Renviron activation in rig proj: handling project secrets and Posit Assistant restrictions対応中かも このイシューにリンクされたプルリクエストがオープン中、またはマージ済みです。 オープン
難易度 5/5 1週間以上 初心者へのやさしさ 15/100
メンテナーはふだん 1 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
symposium-dev/symposium#530 ·
メンテナーはふだん 5 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
topgrade-rs/topgrade#2540 ·
メンテナーはふだん 1 日以内に返信
-
Invalid JSON options for ngram and edge_ngram silently use defaults対応中かも @Tilendlesa が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
noemaforge/vimanam#153 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信