Open Fan-iX opened 1 year ago
Type .Last.error to see the more details.
What happens if you do that?
<callr_error/rlib_error_3_0/rlib_error/error>
Error:
! error in pak subprocess
Caused by error:
! Could not solve package dependencies:
* ggplot2: Can't find package called ggplot2.
---
Backtrace:
1. pak::pak("ggplot2")
2. pak::pkg_install(pkg, ...)
3. pak:::remote(function(...) get("pkg_install_make_plan", asNamespace("pak"))(...), …
4. err$throw(res$error)
---
Subprocess backtrace:
1. base::withCallingHandlers(cli_message = function(msg) { …
2. get("pkg_install_make_plan", asNamespace("pak"))(...)
3. prop$stop_for_solution_error()
4. private$plan$stop_for_solve_error()
5. pkgdepends:::pkgplan_stop_for_solve_error(self, private)
6. base::throw(new_error("Could not solve package dependencies:\n", msg, …
7. | base::signalCondition(cond)
8. global (function (e) …
Seems not much information either.
I do get
ℹ R 4.3 aarch64-apple-darwin20 packages are missing from CRAN and Bioconductor
ℹ source packages are missing from CRAN and Bioconductor
but yeah, it could be clearer.
FWIW I use {pak}
's package installer as part of my dev containers, and in that non-interactive context I'm not sure if there's a way to get more information—the backtrace is shown but not the additional error info.
When I am using a CRAN/BioC mirror that doesn't work,
install.package
andBiocManager::install
will show a message that the URL fails:So that I may be able to figure out the problem.
However,
pak::pkg_install()
doesn't give such message explicitly, it only tellswhich doesn't give much useful information and is a little bit confusing.
Is it possible to make the message more clear?