Add a scheduled workflow to bump R package dependencies
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
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:
- Install R and restore the extension's library (e.g.
renv::restore(), from Package Manager binaries). - Update packages (e.g.
renv::update()), updatingrenv.lockwhere one exists. - Regenerate
manifest.jsonwithrsconnect::writeManifest()and keep theextensionsection and other hand-edited fields intact. - 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
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di posit-dev/connect-extensions
-
enhancement github_actions
Difficoltà 3/5 1-2 giorni Idoneità per principianti 50/100
posit-dev/connect-extensions#492 ·
-
Bundle storage report with bulk retention-limit management (pins focus)Forse già presa @kellobri l’ha presa 2 giorni fa. Apertaenhancement
Difficoltà 5/5 Più di una settimana Idoneità per principianti 15/100
posit-dev/connect-extensions#488 · 1 commento ·
-
enhancement
Difficoltà 3/5 1-2 giorni Idoneità per principianti 52/100
posit-dev/connect-extensions#484 ·
-
documentation
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
posit-dev/connect-extensions#483 ·
-
mcp
Difficoltà 4/5 3-5 giorni Idoneità per principianti 45/100
posit-dev/connect-extensions#467 ·
Tutte le issue di posit-dev/connect-extensions
Issue simili
-
Remove {watcher} importApertacould enhancement
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 80/100
The-Strategy-Unit/nhp_inputs#758 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
paul-buerkner/brms#1985 · 1 commento ·
I maintainer di solito rispondono entro 2 giorni
-
[R] abandon_ship() looks up `call` with an inheriting get(), so its "no call" guard never firesForse già presa Una pull request collegata a questa issue è aperta o già unita. ApertaComponent: R
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
rubenarslan/formr#60 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100