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

rig system add-pak repo points to nonexistent site? #126

Closed
netique opened this issue Oct 31, 2022 · 3 comments
Closed

rig system add-pak repo points to nonexistent site? #126

netique opened this issue Oct 31, 2022 · 3 comments

Comments

@netique
Copy link

netique commented Oct 31, 2022

[INFO] Installing pak for R 4.2-arm64
[INFO] > WARNING: ignoring environment value of R_HOME
[INFO] > WARNING: ignoring environment value of R_HOME
[INFO] > Warning in install.packages("pak", repos = sprintf("https://r-lib.github.io/p/pak/stable/%s/%s/%s",  :
[INFO] >   'lib = "/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/library"' is not writable
[INFO] > Error in install.packages("pak", repos = sprintf("https://r-lib.github.io/p/pak/stable/%s/%s/%s",  : 
[INFO] >   unable to install packages
[INFO] > Execution halted
[ERROR] Failed to install pak for R 4.2-arm64: command ["/Library/Frameworks/R.framework/Versions/4.2-arm64/Resources/R", "--vanilla", "-s", "-e", "                install.packages(\'pak\', repos = sprintf(\'https://r-lib.github.io/p/pak/stable/%s/%s/%s\', .Platform$pkgType, R.Version()$os, R.Version()$arch))            "] exited with code 1

The URL resolves to https://r-lib.github.io/p/pak/stable/mac.binary.big-sur-arm64/darwin20/aarch64, but I can see nothing there. Note I run this on released Ventura.

@gaborcsardi
Copy link
Member

gaborcsardi commented Nov 2, 2022

The URL is fine, but the library it is trying to install to is not.

It seems like you are running this from within R? E.g. RStudio terminal? Can you try to run it from a real terminal?

Also, what version of rig is this?

@netique
Copy link
Author

netique commented Nov 2, 2022

I'm sorry for not enclosing the rig version info - it's the up-to-date 0.5.2, installed with homebrew. I thought I was running it from the proper zsh terminal, but maybe you are right and I was using the Terminal tab in RStudio. Now it seems to work for me.

@netique netique closed this as completed Nov 2, 2022
@gaborcsardi
Copy link
Member

Well, it should (ideally) work from RStudio terminal as well, so this is definitely a bug, thanks for reporting it. But I am glad that it works now.

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