Skip to content

pkg_install() fails on set of packages: filelock not found, then install_extracted_binary not found #887

@AdaemmerP

Description

@AdaemmerP

Summary

With pak devel 0.10.0.9000, R 4.6.0 (manylinux_2_34) on ubuntu:24.04, and PPM's __linux__/manylinux_2_28 repo configured:

  • pak::pkg_install('data.table') and
    pak::pkg_install(c('data.table', 'stringr', 'sf')) work fine. The same packages install fine with simple install.packages().
  • But pak::pkg_install() on 80 packages (see list below) fails. The PPM binaries exist for these packages (confirmed via meta_list() and install.packages()).

Reproduction

options(repos = c(P3M_MANYLINUX = "https://packagemanager.posit.co/cran/__linux__/manylinux_2_28/2026-06-01"))

cran_packages <- c(
  'AER', 'AICcmodavg', 'arthistory', 'babynames', 'brms', 'caret', 'clue',
  'crayon', 'data.table', 'devtools', 'downlit', 'ellmer', 'friends',
  'GGally', 'gganimate', 'ggdist', 'gghighlight', 'gifski', 'ggpubr',
  'ggrepel', 'ggridges', 'ggthemes', 'glmmTMB', 'gridExtra', 'gt',
  'janitor', 'knitr', 'languageserver', 'lmerTest', 'mclust',
  'microbenchmark', 'mlr', 'moderndive', 'MuMIn', 'nycflights23',
  'openintro', 'ordinal', 'polycor', 'quanteda', 'quanteda.textmodels',
  'quanteda.textplots', 'quanteda.textstats', 'randomForest', 'Rcpp',
  'RCurl', 'readtext', 'renv', 'reticulate', 'rmarkdown', 'RODBC',
  'rvest', 'sandwich', 'scales', 'sf', 'showtext', 'stm', 'tidygam',
  'tidymodels', 'tidytext', 'tidyverse', 'udpipe', 'xml2',
  'corrplot', 'effects', 'Epi', 'epitools', 'EValue', 'ggeffects',
  'ggfortify', 'gmodels', 'gtsummary', 'Hmisc', 'marginaleffects',
  'mice', 'naniar', 'performance', 'pROC', 'psych', 'ResourceSelection',
  'rms', 'summarytools'
)

pak::pkg_install(cran_packages)

Error 1 (filelock missing)

The call above fails with:

! in callr subprocess.
Caused by error in `loadNamespace(x)`:
! there is no package called 'filelock'
---
Subprocess backtrace:
1. options$post_process()
2. pkgdepends:::install_extracted_binary(filename, lib_cache, pkg_cache, lib, ...
3. pkgdepends:::lock_cache(lib_cache, pkg_name, getOption("install.lock"))
4. base::loadNamespace(x)

This looks like a recurrence of #197, where filelock was likewise reported missing.

Error 2 (after installing filelock)

install.packages('filelock', repos = 'https://cloud.r-project.org')
pak::pkg_install(cran_packages)  # same list as above

New internal error:

! in callr subprocess.
Caused by error in `install_extracted_binary(filename, lib_cache, pkg_cache, lib, ...`:
! could not find function "install_extracted_binary"

Metadata

Metadata

Assignees

No one assigned

    Labels

    reprexneeds a minimal reproducible example

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions