actions icon indicating copy to clipboard operation
actions copied to clipboard

Failed pak installation doesn't report package

Open JosiahParry opened this issue 5 months ago • 1 comments

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

JosiahParry avatar Aug 31 '24 17:08 JosiahParry