I was trying Binder Examples repo: ‘Specifying an R environment with a runtime.txt file’.
I just tried to launch a session from that repo again right now and it gave the same issue. Build fails with:
...
> install.packages(c('devtools', 'IRkernel', 'shiny'), repos=Sys.getenv("EXPANDED_CRAN_MIRROR_URL"))
Installing packages into ‘/srv/rlibs’
(as ‘lib’ is unspecified)
Warning: unable to access index for repository https://packagemanager.posit.co/all/__linux__/jammy/2024-01-10+kZwhsmgb/src/contrib:
cannot open URL 'https://packagemanager.posit.co/all/__linux__/jammy/2024-01-10+kZwhsmgb/src/contrib/PACKAGES'
>
>
Warning message:
packages ‘devtools’, ‘IRkernel’, ‘shiny’ are not available for this version of R
Versions of these packages for your version of R might be available elsewhere,
see the ideas at
https://cran.r-project.org/doc/manuals/r-patched/R-admin.html#Installing-packages
> IRkernel::installspec(prefix=Sys.getenv("NB_PYTHON_PREFIX"))
Error in loadNamespace(x) : there is no package called ‘IRkernel’
Calls: loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
---> Removed intermediate container ed72fee468b9
The command '/bin/sh -c export EXPANDED_CRAN_MIRROR_URL="$(. /etc/os-release && echo https://packagemanager.posit.co/all/__linux__/${VERSION_CODENAME}/2024-01-10+kZwhsmgb | envsubst)" && R --quiet -e "install.packages(c('devtools', 'IRkernel', 'shiny'), repos=Sys.getenv(\"EXPANDED_CRAN_MIRROR_URL\"))" && R --quiet -e "IRkernel::installspec(prefix=Sys.getenv(\"NB_PYTHON_PREFIX\"))"' returned a non-zero code: 1Error in event stream: Error