-
Notifications
You must be signed in to change notification settings - Fork 218
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
Error "No such keg: /opt/homebrew/Cellar/r" using setup-r@v2 for MacOS latest with R release #864
Comments
We also saw this pop up a few weeks ago in our |
After a little more investigation, it looks like the action is failing to unlink I think if we add a check that R is in #! /bin/sh
# Check that r is installed via brew
BREW_R_VERSION="$(brew info --json r | jq -rc '.[0] | .installed | .[0] | .version')"
echo $BREW_R_VERSION
if [ "$BREW_R_VERSION" == "null" ]; then
echo "R is not installed via brew"
else
echo "R is installed via brew"
# unlink the current version of R
fi |
* [setup-r]: try to unlink brew R silently To avoid #864. * [setup-r]: run brew install silently brew likes to warn about already installed packages and env vars, but we don't care about these. * NEWS for avoiding brew warnings
Closed by #891. |
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 |
The R-CMD-check workflow here is reported as being successful but also produces the error "macOS-latest (R release) No such keg: /opt/homebrew/Cellar/r" as can be seen here.
I have traced the source of the error to this line in the setup-r installer.ts file.
I am not sure why /opt/homebrew/Cellar/r is missing, but could this situation be prevented or at least be turned into a warning?
The text was updated successfully, but these errors were encountered: