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

Support rig install 3.6 without extra switch on arm64 #133

Open
krlmlr opened this issue Dec 25, 2022 · 3 comments
Open

Support rig install 3.6 without extra switch on arm64 #133

krlmlr opened this issue Dec 25, 2022 · 3 comments
Labels
feature a feature request or enhancement

Comments

@krlmlr
Copy link
Member

krlmlr commented Dec 25, 2022

Current behavior, it took me longer than anticipated to come up with the necessary -a x86_64 switch:

➜  ~ rig resolve oldrel-3
[ERROR] Failed to resolve R version: Unknown version specification: oldrel-3
➜  ~ rig resolve 3.6
3.6.3 NA
➜  ~ rig install 3.6
[INFO] Running `sudo` for adding new R versions. This might need your password.
Password:
[ERROR] Cannot find a download url for R version 3.6.3, arm64
➜  ~ rig install 3.6-x86_64
[INFO] Running `sudo` for adding new R versions. This might need your password.
[ERROR] Failed to resolve R version: Unknown version specification: 3.6-x86_64
➜  ~ rig install 3.6 -a x86_64
[INFO] Running `sudo` for adding new R versions. This might need your password.
[INFO] x86_64-R-3.6.3.pkg is cached at /tmp/rig/x86_64-R-3.6.3.pkg
@gaborcsardi
Copy link
Member

It is literally in rig add --help, though:

    # Install arm64 build of R (default on arm64 macs)
    rig add -a arm64 release

    # Install x86_64 build of R (default on x86_64 macs)
    rig add -a x86_64 release

@krlmlr
Copy link
Member Author

krlmlr commented Jan 8, 2023

Fair enough. Maybe rig resolve should fail instead of printing NA ? Should rig resolve oldrel-3 work?

@krlmlr krlmlr closed this as completed Jan 8, 2023
@gaborcsardi
Copy link
Member

If we want oldrel/3 to work, then we might as well, change the default arch for older R versions.

@gaborcsardi gaborcsardi reopened this Jan 9, 2023
@gaborcsardi gaborcsardi added the feature a feature request or enhancement label Feb 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature a feature request or enhancement
Projects
None yet
Development

No branches or pull requests

2 participants