Skip to content

error in pak subprocess Caused by error in state$plan$file[pkgidx] <- worker$process$get_built_file(): ! replacement has length zero #873

Open

Description

@jkylearmstrong
> pak::pak(pkg_list)
                                                                                                
→ Will install 2 packages.
→ All 2 packages (1.30 MB) are cached.
+ DiagrammeR   1.0.12 [bld]
+ fracdiff     1.5-4  [bld][cmp]
ℹ No downloads are needed, 2 pkgs (1.30 MB) are cached
ℹ Building DiagrammeR 1.0.12
ℹ Building fracdiff 1.5-4
✔ Built DiagrammeR 1.0.12 (32.4s)                                                   
Error: 
! error in pak subprocess
Caused by error in `state$plan$file[pkgidx] <- worker$process$get_built_file()`:
! replacement has length zero
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 `state$plan$file[pkgidx] <- worker$process$get_built_file()`:
! replacement has length zero
---
Backtrace:
1. pak::pak(pkg_list)
2. pak::pkg_install(pkg, ...)
3. pak:::remote(function(...) get("pkg_install_do_plan", asNamespace("pak"))(...), …
4. err$throw(res$error)
---
Subprocess backtrace:
 1. base::withCallingHandlers(cli_message = function(msg) { …
 2. get("pkg_install_do_plan", asNamespace("pak"))(...)
 3. proposal$install()
 4. pkgdepends::install_package_plan(plan, lib = private$library, num_workers = nw, …
 5. base::withCallingHandlers({ …
 6. pkgdepends:::handle_events(state, events)
 7. pkgdepends:::handle_event(state, i)
 8. pkgdepends:::stop_task(state, worker)
 9. pkgdepends:::stop_task_build(state, worker)
10. base::.handleSimpleError(function (e) …
11. global h(simpleError(msg, call))
> sessionInfo()
R version 4.6.0 (2026-04-24 ucrt)
Platform: x86_64-w64-mingw32/x64
Running under: Windows 11 x64 (build 22631)

Matrix products: default
  LAPACK version 3.12.1

locale:
[1] LC_COLLATE=English_United States.utf8  LC_CTYPE=English_United States.utf8    LC_MONETARY=English_United States.utf8
[4] LC_NUMERIC=C                           LC_TIME=English_United States.utf8    

time zone: America/New_York
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] pak_0.9.5

loaded via a namespace (and not attached):
[1] compiler_4.6.0    tools_4.6.0       rstudioapi_0.18.0 renv_1.2.2  

Activity

  1. gaborcsardi commented on Apr 29, 2026

    @gaborcsardi
    Member

    Can you try to clean the cache? Does it work for other packages?

  2. jkylearmstrong commented on May 10, 2026

    @jkylearmstrong
    Author

    Hey @gaborcsardi - thank you for the reply - I think this was on a relatively "clean" session that I had just opened to install packages. I have seen this error with other packages as well so I don't think it is package specific.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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