Skip to content

Enhancement: Adopt r-packages best practices and robust system requirements handling in renv-cache#236

Merged
MiguelRodo merged 1 commit into
mainfrom
renv-cache-sysreqs-and-user-6177267240939171006
May 18, 2026
Merged

Enhancement: Adopt r-packages best practices and robust system requirements handling in renv-cache#236
MiguelRodo merged 1 commit into
mainfrom
renv-cache-sysreqs-and-user-6177267240939171006

Conversation

@MiguelRodo
Copy link
Copy Markdown
Owner

This updates the renv-cache DevContainer feature to harden the system requirement resolution logic and correctly execute R commands using the target container user context. By running install.sh as root, we query the Posit Package Manager API directly and pre-install all required Ubuntu/Debian dependencies via apt-get, cleanly decoupling the system setup from the renv restoration logic, which then proceeds via su as the target user.


PR created automatically by Jules for task 6177267240939171006 started by @MiguelRodo

* Add `installSystemRequirements` and `cranMirror` options to `devcontainer-feature.json`.
* Fix execution ordering by adding R base features to `installsAfter`.
* Add `Rscript` pre-flight check in `install.sh`.
* Resolve `USERNAME` and drop privileges via `su` to execute `renv-cache-renv-restore-build` as the non-root target user.
* Automatically detect packages from `renv.lock` files, query Posit API for OS dependencies, and install them via `apt-get` before running renv restore.

Co-authored-by: MiguelRodo <23501332+MiguelRodo@users.noreply.github.com>
@google-labs-jules
Copy link
Copy Markdown
Contributor

👋 Jules, reporting for duty! I'm here to lend a hand with this pull request.

When you start a review, I'll add a 👀 emoji to each comment to let you know I've read it. I'll focus on feedback directed at me and will do my best to stay out of conversations between you and other bots or reviewers to keep the noise down.

I'll push a commit with your requested changes shortly after. Please note there might be a delay between these steps, but rest assured I'm on the job!

For more direct control, you can switch me to Reactive Mode. When this mode is on, I will only act on comments where you specifically mention me with @jules. You can find this option in the Pull Request section of your global Jules UI settings. You can always switch back!

New to Jules? Learn more at jules.google/docs.


For security, I will only act on instructions from the user who triggered this task.

@MiguelRodo MiguelRodo merged commit 4257449 into main May 18, 2026
1 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant