Add a scheduled workflow to bump R package dependencies

オープン
#477 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
25/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
github-actions, r
領域
ci-cd, devops

調査の方向性

Start with the update-r-repository-snapshot.yml workflow in .github/workflows and the Python job from #475 that this issue mirrors. Then look at manifest.json and renv.lock in one R extension, such as pqr, to see which fields are generated and which are hand-edited. Done means a scheduled workflow restores each R extension's library, updates its packages, regenerates the manifest while keeping the extension section, and opens a PR.

索引モデルが issue の本文から書いたものです。

説明

#475 adds a weekly workflow that recompiles each Python extension's requirements.txt and opens a PR. R extensions have no equivalent, so their package versions only move when someone updates them by hand.

R extensions

Ten extensions record R packages in manifest.json:

Extension R version in manifest renv.lock
connectwidgets-example 4.4.2
portfolio-dashboard 4.4.2
portfolio-report 4.4.2
pqr 4.3.3 yes
quarto-stock-report-r 4.4.2
runtime-version-scanner 4.3.3 yes
script-r 4.4.2
stock-api-plumber 4.4.2
stock-report 4.4.2
usage-metrics-dashboard 4.3.3 yes

Why this is more work than the Python job

The Python job only recompiles a text file. For R, the dependency versions live in the packages section of manifest.json, which rsconnect::writeManifest() generates from an installed library. So for each extension, a job would need to:

  1. Install R and restore the extension's library (e.g. renv::restore(), from Package Manager binaries).
  2. Update packages (e.g. renv::update()), updating renv.lock where one exists.
  3. Regenerate manifest.json with rsconnect::writeManifest() and keep the extension section and other hand-edited fields intact.
  4. Open a PR, as the Python workflow does.

connect has no equivalent workflow to copy. Its closest one, update-r-repository-snapshot.yml, updates a Package Manager snapshot instead.

Example of why this matters

pqr is pinned to reticulate 1.46.0. When a new Python release needs a reticulate update, nothing will pick it up automatically. Right now pqr fails on preview Connect (Python 3.15): reticulate segfaults while initializing Python.

🤖 Generated with Claude Code

主要言語
R
スター
10
フォーク
8
平均マージ
9時間 43分
マージ済み PR(30日)
2

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

posit-dev/connect-extensions のほかの issue

posit-dev/connect-extensions の issue をすべて見る

似ている issue

R の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。