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

Failed pak installation doesn't report package #916

Closed
JosiahParry opened this issue Aug 31, 2024 · 2 comments
Closed

Failed pak installation doesn't report package #916

JosiahParry opened this issue Aug 31, 2024 · 2 comments

Comments

@JosiahParry
Copy link

Is your feature request related to a problem? Please describe.
When {pak} fails to install a package in R-CMD-check it does not report which package failed.

Describe the solution you'd like
When the package fails to install, the package name is reported.

Describe alternatives you've considered
N/A

Additional context

See related GHA failure https://github.com/R-ArcGIS/arcpbf/actions/runs/10646489498/job/29514302567#step:5:2609

  Error: 
  ! error in pak subprocess
  Caused by error in `file(con, "rb")`:
  ! cannot open the connection
  ---
  Backtrace:
  1. pak::lockfile_install(".github/pkg.lock")
  2. pak:::remote(function(...) { …
  3. err$throw(res$error)
  ---
  Subprocess backtrace:
   1. base::withCallingHandlers(cli_message = function(msg) { …
   2. get("lockfile_install_internal", asNamespace("pak"))(...)
   3. plan$install()
   4. pkgdepends::install_package_plan(plan, lib = private$library, num_workers = nw, …
   5. base::withCallingHandlers({ …
   6. pkgdepends:::start_task(state, task)
   7. pkgdepends:::start_task_install(state, task)
   8. pkgdepends:::make_install_process(filename, lib = lib, metadata = metadata)
   9. pkgdepends:::detect_package_archive_type(filename)
  10. base::readBin(file, what = "raw", n = 6)
  11. base::file(con, "rb")
  12. base::.handleSimpleError(function (e) …
  13. global h(simpleError(msg, call))
  Execution halted
@gaborcsardi
Copy link
Member

  ✖ Failed to download arcpbf 0.1.4 (aarch64-apple-darwin20)

https://github.com/R-ArcGIS/arcpbf/actions/runs/10646489498/job/29514302567#step:5:2508

@gaborcsardi
Copy link
Member

This is tracked at r-lib/pak#429 so I am going to close this issue.

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