Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RIG_PLATFORM to set distro not working out of the box #191

Closed
eliocamp opened this issue Oct 7, 2023 · 0 comments
Closed

RIG_PLATFORM to set distro not working out of the box #191

eliocamp opened this issue Oct 7, 2023 · 0 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@eliocamp
Copy link

eliocamp commented Oct 7, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants