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

Improve error message when using R < 4.2 on macos-latest #883

Closed
jeroen opened this issue Jul 27, 2024 · 4 comments · Fixed by #893
Closed

Improve error message when using R < 4.2 on macos-latest #883

jeroen opened this issue Jul 27, 2024 · 4 comments · Fixed by #893
Labels
bug an unexpected problem or unintended behavior

Comments

@jeroen
Copy link
Member

jeroen commented Jul 27, 2024

GHA recently bumped macos-latest to the arm64 based runners. Therefore we can no longer use R versions below 4.2 on these runners because these versions are not available on arm64.

CI that is using a configuration like {os: macos-latest, r: '4.0'} now fails like so.

#setup-r
Error: Error: Failed to resolve R version 3.6 at https://api.r-hub.io/rversions/resolve/3.6/mac/arm64.

Perhaps this problem can be caught earlier to explicitly disable R < 4.1 on macos-arm64, explainining that macos-latest now requires R 4.2 or newer.

Alternatively print the error message that is in https://api.r-hub.io/rversions/resolve/3.6/mac/arm64 .

@gaborcsardi
Copy link
Member

We can automatically install x86_64 R on R 4.0.x or older.

@jeroen
Copy link
Member Author

jeroen commented Jul 29, 2024

You mean via rosetta?

@gaborcsardi
Copy link
Member

yes

gaborcsardi added a commit that referenced this issue Jul 31, 2024
In fact, try resolving everything on x86_64 as well.

Closes #883.
gaborcsardi added a commit that referenced this issue Jul 31, 2024
In fact, try resolving everything on x86_64 as well.

Closes #883.
@gaborcsardi gaborcsardi added the bug an unexpected problem or unintended behavior label Jul 31, 2024
gaborcsardi added a commit that referenced this issue Aug 2, 2024
* [setup-r]: resolve older R to x86_64 on macOS

In fact, try resolving everything on x86_64 as well.

Closes #883.

* Add NEWS for installing x86_64 old R on arm64 macos

Closes #883.
Copy link

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue and include a link to this issue

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 17, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants