-
Notifications
You must be signed in to change notification settings - Fork 75
Description
I'm running into a bit of a niche issue. I have a machine running Windows 11 on AMD64 architecture. I am attempting to build Docker images for ARM64 architectures for which Docker uses QEMU for emulation during the build process. However, when trying to install packages via pak during the build process, pak fails with the following error message:
Error in remote(function(...) get("pkg_install_make_plan", asNamespace("pak"))(...), :
Subprocess is busy or cannot start
To replicate this on Windows, do the following:
- From the console (e.g. Command Prompt) run an R-based ARM64 image under emulation:
docker run -it --rm --platform linux/arm64 posit/r-base:4.5.2-noble - Next, install pak binary per the usual:
install.packages("pak", repos = sprintf("https://r-lib.github.io/p/pak/stable/%s/%s/%s", .Platform$pkgType, R.Version()$os, R.Version()$arch)) - Then attempt to install any package with pak:
> pak::pkg_install("renv") Error in remote(function(...) get("pkg_install_make_plan", asNamespace("pak"))(...), : Subprocess is busy or cannot start
I have a gut feeling that this is related to running R/pak under emulation because I've experienced some weird behavior in the past as a result of emulation. However, I want to confirm whether or not this is the case; any help would be appreciated!