rig
rig copied to clipboard
`RIG_PLATFORM` to set distro not working out of the box
It seems that the RIG_PLATFORM
environment variable is not being used by rig add
elio@vm:~$ echo $RIG_PLATFORM
ubuntu-22.04
elio@vm:~$ rig system detect-platform
Detected platform:
Architecture: x86_64
OS: linux
Distribution: ubuntu
Version: 22.04
PPM support: true
PPM URL: https://packagemanager.posit.co/cran/__linux__/jammy/latest
elio@vm:~$ rig add 4.3.1
[INFO] Running `sudo` for adding new R versions. This might need your password.
[ERROR] Failed to resolve R version: Cannot download JSON: HTTP status client error (404 Not Found) for url (https://api.r-hub.io/rversions/resolve/4.3.1/linux-elementary-7.1/x86_64)
I was able to solve the issue using sudo -E rig add 4.3.1
. The -E
flag preserves environment variables.