rig icon indicating copy to clipboard operation
rig copied to clipboard

Adding Pop_OS! to available list of R versions

Open Nerwosolek opened this issue 9 months ago • 2 comments

Hi!

I have Pop_OS! 22.04 which is basically Ubuntu. rig system detect-platform reports:

Detected platform: Architecture: x86_64 OS: linux Distribution: pop Version: 22.04

And of course rig available outputs:

[ERROR] Cannot download JSON: HTTP status client error (404 Not Found) for url (https://api.r-hub.io/rversions/available/linux-pop-22.04/x86_64)

So I wonder,is it possible to somehow override entry Distibution and instead pop place ubuntu?

Also, can I add R version which existed on my system before installing rig to the list of installed and switchable R's?

Probably possibility to rig add <filename> would also help in my case, I see it's on TODO list: #1

And BTW: great job, many thanks!

Nerwosolek avatar Apr 18 '25 19:04 Nerwosolek

@Nerwosolek I've opened a PR that does s/pop/ubuntu when determining the distro but see also this comment (you can set the RIG_PLATFORM env var to ubuntu-22.04 and that should do the trick).

e.g. RIG_PLATFORM=ubuntu-22.04 rig add release

andrewswait avatar Apr 25 '25 21:04 andrewswait

@gaborcsardi Thank you for the solution, worked like a charm!

Nerwosolek avatar May 09 '25 15:05 Nerwosolek