pkgdepends
pkgdepends copied to clipboard
Internal error in pkgdepends
The function renv::restore() triggered an "internal error in pkgdepends", according to the following (partial) log produced while creating a docker image. The relevant renv.lock file is attached.
#5 [3/6] RUN R -e 'renv::restore()'
#5 sha256:8d86ab323c7e3c287c07b063780850896715634e2810b39193434e84e4cff102
#5 0.432
#5 0.432 R version 4.3.0 (2023-04-21) -- "Already Tomorrow"
#5 0.432 Copyright (C) 2023 The R Foundation for Statistical Computing
#5 0.432 Platform: x86_64-pc-linux-gnu (64-bit)
#5 0.432
#5 0.432 R is free software and comes with ABSOLUTELY NO WARRANTY.
#5 0.432 You are welcome to redistribute it under certain conditions.
#5 0.432 Type 'license()' or 'licence()' for distribution details.
#5 0.432
#5 0.432 Natural language support but running in an English locale
#5 0.432
#5 0.432 R is a collaborative project with many contributors.
#5 0.432 Type 'contributors()' for more information and
#5 0.432 'citation()' on how to cite R or R packages in publications.
#5 0.432
#5 0.432 Type 'demo()' for some demos, 'help()' for on-line help, or
#5 0.432 'help.start()' for an HTML browser interface to help.
#5 0.432 Type 'q()' to quit R.
#5 0.432
#5 0.520 > renv::restore()
#5 9.678 Error:
#5 9.678 ! error in pak subprocess
#5 9.678 Caused by error in `pkgplan_solve(self, private, match.arg(policy))`:
#5 9.678 ! Error in dependency solver, cannot solve installation.
#5 9.678 ℹ Solver status: -1.
#5 9.678 ℹ This is an internal error in pkgdepends, please report an issue at
#5 9.678 <https://github.com/r-lib/pkgdepends/issues>.
#5 9.678 ---
#5 9.678 Backtrace:
#5 9.678 1. renv::restore()
#5 9.678 2. renv:::renv_pak_restore(lockfile = lockfile, packages = packages, exclude = exclu…
#5 9.678 3. pak$pkg_install(remotes)
#5 9.678 4. pak:::remote(function(...) get("pkg_install_make_plan", asNamespace("pak"))(...)…
#5 9.678 5. err$throw(res$error)
#5 9.678 ---
#5 9.678 Subprocess backtrace:
#5 9.678 1. base::withCallingHandlers(cli_message = function(msg) { …
#5 9.678 2. get("pkg_install_make_plan", asNamespace("pak"))(...)
#5 9.678 3. prop$solve()
#5 9.678 4. private$plan$solve(policy = private$policy)
#5 9.678 5. pkgdepends:::pkgplan_solve(self, private, match.arg(policy))
#5 9.678 6. base::throw(pkg_error("Error in dependency solver, cannot solve installation.", …
#5 9.678 7. | base::signalCondition(cond)
#5 9.678 8. global (function (e) …
#5 9.681 Traceback (most recent calls last):
#5 9.681 6: renv::restore()
#5 9.681 5: renv_pak_restore(lockfile = lockfile, packages = packages, exclude = exclude,
#5 9.681 project = project)
#5 9.681 4: pak$pkg_install(remotes)
#5 9.681 3: remote(function(...) get("pkg_install_make_plan", asNamespace("pak"))(...),
#5 9.681 list(pkg = pkg, lib = lib, upgrade = upgrade, ask = ask,
#5 9.681 start = start, dependencies = dependencies, loaded = loaded_packages(lib)))
#5 9.681 2: err$throw(res$error)
#5 9.681 1: base::stop(cond)
#5 9.682 Execution halted
#5 ERROR: executor failed running [/bin/sh -c R -e 'renv::restore()']: exit code: 1
------
> [3/6] RUN R -e 'renv::restore()':
------
executor failed running [/bin/sh -c R -e 'renv::restore()']: exit code: 1
I think I am having the same error. Attaching renv.lock as well
---> Running in a5cadff1a186
R version 4.2.2 (2022-10-31) -- "Innocent and Trusting"
Copyright (C) 2022 The R Foundation for Statistical Computing
Platform: x86_64-pc-linux-gnu (64-bit)
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but running in an English locale
R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.
Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.
> renv::restore()
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. renv::restore()
2. renv:::renv_pak_restore(lockfile = lockfile, packages = packages, exclude = exclu…
3. pak$pkg_install(remotes)
4. pak:::remote(function(...) get("pkg_install_make_plan", asNamespace("pak"))(...)…
5. 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 (most recent calls last):
6: renv::restore()
5: renv_pak_restore(lockfile = lockfile, packages = packages, exclude = exclude,
project = project)
4: pak$pkg_install(remotes)
3: remote(function(...) get("pkg_install_make_plan", asNamespace("pak"))(...),
list(pkg = pkg, lib = lib, upgrade = upgrade, ask = ask,
start = start, dependencies = dependencies, loaded = loaded_packages(lib)))
2: err$throw(res$error)
1: base::stop(cond)
Execution halted
The command '/bin/sh -c R -e 'renv::restore()'' returned a non-zero code: 1
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:
- renv::restore()
- renv:::renv_pak_restore(lockfile = lockfile, packages = packages, exclude = exclu?
- pak$pkg_install(remotes)
- pak:::remote(function(...) get("pkg_install_make_plan", asNamespace("pak"))(...)?
- err$throw(res$error)
Subprocess backtrace:
- base::withCallingHandlers(cli_message = function(msg) { ?
- get("pkg_install_make_plan", asNamespace("pak"))(...)
- prop$solve()
- private$plan$solve(policy = private$policy)
- pkgdepends:::pkgplan_solve(self, private, match.arg(policy))
- base::throw(pkg_error("Error in dependency solver, cannot solve installation.", ?
- | base::signalCondition(cond)
- global (function (e) ? Traceback (most recent calls last): 6: renv::restore() 5: renv_pak_restore(lockfile = lockfile, packages = packages, exclude = exclude, project = project) 4: pak$pkg_install(remotes) 3: remote(function(...) get("pkg_install_make_plan", asNamespace("pak"))(...), list(pkg = pkg, lib = lib, upgrade = upgrade, ask = ask, start = start, dependencies = dependencies, loaded = loaded_packages(lib))) 2: err$throw(res$error) 1: base::stop(cond) Execution halted The command '/bin/sh -c R -e 'renv::restore()'' returned a non-zero code: 1 ERROR ERROR: build step 0 "gcr.io/cloud-builders/docker" failed: step exited with non-zero status: 1
the same problem renv.prod.txt