Add a scheduled workflow to bump R package dependencies

Aperta
#477 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
25/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
github-actions, r
Ambito
ci-cd, devops

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

#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

Lingua principale
R
Stelle
10
Fork
8
Merge medio
9h 43m
PR unite (30g)
2

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di posit-dev/connect-extensions

Tutte le issue di posit-dev/connect-extensions

Issue simili

Altre issue su R

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.