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

Cannot install from the cellar with pak #1268

Closed
lgaborini opened this issue May 16, 2023 · 2 comments
Closed

Cannot install from the cellar with pak #1268

lgaborini opened this issue May 16, 2023 · 2 comments

Comments

@lgaborini
Copy link

Hello, I'm using a {drat} repository as a {renv} cellar. Since it mirrors CRAN's structure, it works fine with {renv}.
E.g. it contains a package rITAtools_0.1.9.tar.gz.

It installs fine when RENV_CONFIG_PAK_ENABLED is FALSE (also without specifying the version):

renv::install("rITAtools@0.1.9")
#> * Package rITAtools [0.1.9] will be installed from the cellar.
#> Installing rITAtools [0.1.9] ...
#>  OK [built from source in 11 seconds]
#> Moving rITAtools [0.1.9] into the cache ...
#>  OK [moved to cache in 17 milliseconds]
#> * Installed 1 package in 12 seconds.

However, when {pak} is enabled, the cellar is not considered:

renv::install("rITAtools@0.1.9")
#> ℹ Loading metadata database✔ Loading metadata database ... done
#> Error: ! error in pak subprocess
#> Caused by error: 
#> ! Could not solve package dependencies:
#> * rITAtools@0.1.9: Can't find package called rITAtools@0.1.9.

Is it by design? Thanks!

I'm on Windows, using {renv} 0.17.3, {pak} 0.5.1.

@kevinushey
Copy link
Collaborator

Thanks for the bug report! This is not by design; I'll have to think about how we can hook up pak installation to the cellar.

@hadley
Copy link
Member

hadley commented May 17, 2023

Want to include this into the pak metaissue? #1210

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

3 participants