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

Solver error from pak #370

Open
latot opened this issue Jun 19, 2024 · 2 comments
Open

Solver error from pak #370

latot opened this issue Jun 19, 2024 · 2 comments

Comments

@latot
Copy link

latot commented Jun 19, 2024

Hi, I don't fully knows how to transform the pak instruction to pkgdepends, but taking advantage it says to report here lets do it:

docker run --rm -ti rocker/geospatial R
install.packages("pak")
pak::pkg_install("https://github.com/r-lib/pak")
unloadNamespace("pak")
pak::pkg_install("Rcpp?source")
Error:                                                                    
! error in pak subprocess
Caused by error in `pkgplan_solve(self, private, match.arg(policy))`:
! Error in dependency solver, cannot solve installation.Solver status: -1.This is an internal error in pkgdepends, please report an issue at <https://github.com/r-lib/pkgdepends/issues>.
Type .Last.error to see the more details.
> .Last.error
<callr_error/rlib_error_3_0/rlib_error/error>
Error: 
! error in pak subprocess
Caused by error in `pkgplan_solve(self, private, match.arg(policy))`:
! Error in dependency solver, cannot solve installation.Solver status: -1.This is an internal error in pkgdepends, please report an issue at <https://github.com/r-lib/pkgdepends/issues>.
---
Backtrace:
1. pak::pkg_install("Rcpp?source")
2. pak:::remote(function(...) get("pkg_install_make_plan", asNamespace("pak"))(...), …
3. err$throw(res$error)
---
Subprocess backtrace:
1. base::withCallingHandlers(cli_message = function(msg) { …
2. get("pkg_install_make_plan", asNamespace("pak"))(...)
3. prop$solve()
4. private$plan$solve(policy = private$policy)
5. pkgdepends:::pkgplan_solve(self, private, match.arg(policy))
6. base::throw(pkg_error("Error in dependency solver, cannot solve installation.", …
7. | base::signalCondition(cond)
8. global (function (e) …

Traceback

4: base::stop(cond)
3: err$throw(res$error)
2: remote(function(...) get("pkg_install_do_plan", asNamespace("pak"))(...), 
       list(proposal = NULL))
1: pak::pkg_install("Rcpp?source", dependencies = TRUE)

Thx!

@gaborcsardi
Copy link
Member

You cannot use pak to install itself. If you want to install the dev version, you can install a nightly build from pak.r-lib.org/reference/install.html#nightly-builds

@latot
Copy link
Author

latot commented Jun 19, 2024

This still happens, install pak with pak seems to work, tested with that docs too.

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