Skip to content

Solver error from pak #370

@latot

Description

@latot

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions