-
Notifications
You must be signed in to change notification settings - Fork 33
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
System requirements do not resolve if repos
does not have RSPM
(the exact key)
#320
Comments
Note: filed the issue on this project because inspecting an installation plan directly shows that the |
Yes, good catch. This is because CRAN metadata does not contain the E.g. this is the metadata:
For the When you call it again, we use I am not yet sure how, but we should definitely improve this. Possibly we could have a more robust detection for RSPM, instead of just using the repo name. |
Thanks for the explanation! I think the current behavior is fine if it's prominently documented somewhere in |
I think it is OK to use |
The
repos
option can have thehttps://packagemanager.posit.co
entry under any key, but system requirements only resolve correctly when the key is exactlyRSPM
Reproduction Steps
docker run -it rhub/rig /bin/bash -l -c 'R' # get an R session in the login environment
options(repos = c(binary = "https://packagemanager.posit.co/cran/__linux__/jammy/latest", CRAN = "https://cloud.r-project.org")) # rename the 'RSPM' repo to 'binary'
pak::pkg_install("units")
library(units)
gives an errorOutput with
RSPM
Output with
binary
The text was updated successfully, but these errors were encountered: