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

Add rig repos ... #244

Open
gaborcsardi opened this issue Aug 8, 2024 · 3 comments
Open

Add rig repos ... #244

gaborcsardi opened this issue Aug 8, 2024 · 3 comments

Comments

@gaborcsardi
Copy link
Member

gaborcsardi commented Aug 8, 2024

To query and configure repositories. In particular have a config option (do we need rig config?) to whether we should set the repos in RStudio (and Positron) or not.

Instead of rig config we can also write the config into the profile.

We should be able to configure different repos for different R versions:

  • R-devel does not have PPM binaries.
  • Older macOS and Windows binaries are on cran-archive.

By default all these should be configured automatically. (Observing the --without-cran-mirror and --without ppm options of git add.)

@rpchastain
Copy link

I've encountered an issue that this may solve. I'm using rig with Pop OS 22.04 and I encounter this error when running rig add 4.4.1:

[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.4.1/linux-pop-22.04/x86_64)

Perhaps adding an option to the config allowing the user to manually specify their linux installation would solve this problem.

@gaborcsardi
Copy link
Member Author

You probably need to set RIG_PLATFORM, see https://github.com/r-lib/rig/pull/241/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5R200

@rpchastain
Copy link

Ahhh, that is exactly what I needed, thank you!

I think that the source ~/.profile needs to be run without sudo:

sudo: source: command not found

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

No branches or pull requests

2 participants