Repository navigation
Conversation
- Install arf instead of radian (new `arfVersion` option); Python is no longer used - Install jgd instead of httpgd, and the sess dependencies for vscode-R 3.x - Remove `installRadian`, `installVscDebugger`, `installJupyterlab` and `pandocVersion` options - Enable pak's automatic system requirements installation; at build time, system requirements are installed by root and R packages by the user - Let rig resolve R versions (major-only versions are resolved via `rig available`) Close #283
eitsupi
marked this pull request as ready for review
October 22, 2026 03:30
- Fail the build when `pak::pkg_sysreqs()` fails instead of ignoring the error - Do not run a script from a world-writable directory as root; root copies the commands generated by the user to a root-owned file before running them - Use randomly named temporary directories (`mktemp -d`) and remove them on exit - Check that `rig resolve` returns a download URL when resolving a major-only R version
This was referenced Oct 22, 2026
eitsupi
added a commit
that referenced
this pull request
Oct 22, 2026
Follow-up of #284. Aligns the r-apt Feature's options with r-rig v2 (v1.0.0, breaking change). ## Changes - Install arf instead of radian via the new `arfVersion` option (same as r-rig v2: `none` by default, `latest`, or a version like `0.6.0`; verified with its sha256 checksum; requires glibc >= 2.34). - Python is no longer used. - `vscodeRSupport` - minimal: r-cran-processx, r-cran-later, r-cran-jsonlite and r-cran-rstudioapi (dependencies of sess, the session watcher of vscode-R 3.x) instead of r-cran-jsonlite and r-cran-rlang - lsp: minimal + r-cran-languageserver - full: lsp + r-cran-jgd (instead of r-cran-httpgd) - On Debian, languageserver and jgd are not available via apt, so they are installed from CRAN. - Removed options: `installRadian`, `installVscDebugger` and `installJupyterlab`. - On Debian with `useTesting: true`, renv is installed via apt (r-cran-renv is available in Debian testing). - NOTES.md is updated, including a migration guide from 0.x. - Test scenarios are updated, and the jupyter check is removed from the `r-apt_quarto` global scenario.
eitsupi
added a commit
that referenced
this pull request
Oct 22, 2026
…lt (#286) Follow-up of #284. Applies the same system requirements installation as r-rig v2 to the r-packages Feature (v2.0.0, breaking change). ## Changes - `installSystemRequirements` now defaults to `true`. - System requirements are installed in two phases, so that it does not depend on `sudo` being available at build time: 1. The user runs `pak::pkg_sysreqs()` (after `pak::repo_add()`) and writes the install commands into a user-owned temporary directory. The build fails if this step fails. 2. Root copies the commands to a root-owned file and runs them. The commands are generated by pak for the platform, so non-apt platforms supported by pak keep working. 3. The user installs the R packages with `PKG_SYSREQS=false`, then runs `pak::cache_clean()` and `pak::meta_clean(force = TRUE)`. - The R code is run from script files, and the environment variables (`NOT_CRAN`, `PKG_CRAN_MIRROR`, etc.) are set explicitly in the `su` command. `additionalRepositories` is passed to R via a root-owned file to avoid quoting problems. - Temporary directories are created with `mktemp -d` and removed on exit. - NOTES.md is updated, including a migration guide from v1. - New test scenarios for the default (sysreqs on) with a non-root user and for `installSystemRequirements: false`.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Close #283
A full rewrite of the r-rig Feature as v2.0.0 (breaking changes).
Changes
arfVersionoption (noneby default,latest, or a version like0.6.0).The release asset is downloaded from GitHub releases and verified with its sha256 checksum. Requires glibc >= 2.34.
vscodeRSupportinstallRadian,installVscDebugger,installJupyterlabandpandocVersion(use the pandoc Feature instead; it is added toinstallsAfter).--without-sysreqsis not used).At build time, the system requirements are installed in two phases so that R packages are still installed into the user's library:
pak::pkg_sysreqs()and writes the install commands into a user-owned temporary directory.The build fails if this step fails.
PKG_SYSREQS=false.mktemp -dand removed on exit.4are resolved viarig available(the newest version thatrig resolvereturns a download URL for).rig-linux-<arch>-latest.tar.gz).