As per #209, I encountered renv trying to install the current version of Matrix from the archive.
minimal reprex
This happens with or without the suggested fix of adding repos = c(CRAN = 'https://cloud.r-project.org') to renv::restore().
=> ERROR [ 9/12] RUN R -q -e "options(warn=2); renv::restore(repos = c(CRAN = 'https://cloud.r-project.org'))" 20.6s
------
> [ 9/12] RUN R -q -e "options(warn=2); renv::restore(repos = c(CRAN = 'https://cloud.r-project.org'))":
0.634 > options(warn=2); renv::restore(repos = c(CRAN = 'https://cloud.r-project.org'))
0.996 The following package(s) will be updated:
0.996
0.996 # CRAN -----------------------------------------------------------------------
0.996 - lattice [0.22-5 -> 0.22-6]
0.996 - MASS [7.3-60.0.1 -> 7.3-61]
0.996 - Matrix [1.6-5 -> 1.7-1]
0.996 - nlme [3.1-164 -> 3.1-166]
0.996 - renv [repo: RSPM -> CRAN; ver: 1.0.11 -> 1.0.7]
0.996 - base64enc [* -> 0.1-3]
0.996 - bslib [* -> 0.7.0]
0.996 - cachem [* -> 1.0.8]
0.996 - cli [* -> 3.6.2]
0.996 - colorspace [* -> 2.1-0]
0.996 - commonmark [* -> 1.9.1]
0.996 - cpp11 [* -> 0.4.7]
0.996 - crayon [* -> 1.5.3]
0.996 - crosstalk [* -> 1.2.1]
0.996 - digest [* -> 0.6.35]
0.996 - dplyr [* -> 1.1.4]
0.996 - DT [* -> 0.33]
0.996 - evaluate [* -> 0.24.0]
0.996 - fansi [* -> 1.0.6]
0.996 - farver [* -> 2.1.2]
0.996 - fastmap [* -> 1.1.1]
0.996 - fontawesome [* -> 0.5.2]
0.996 - fs [* -> 1.6.4]
0.996 - generics [* -> 0.1.3]
0.996 - ggplot2 [* -> 3.5.1]
0.996 - glue [* -> 1.7.0]
0.996 - gtable [* -> 0.3.5]
0.996 - here [* -> 1.0.1]
0.996 - highr [* -> 0.11]
0.996 - htmltools [* -> 0.5.8.1]
0.996 - htmlwidgets [* -> 1.6.4]
0.996 - httpuv [* -> 1.6.15]
0.996 - isoband [* -> 0.2.7]
0.996 - jquerylib [* -> 0.1.4]
0.996 - jsonlite [* -> 1.8.8]
0.996 - knitr [* -> 1.48]
0.996 - labeling [* -> 0.4.3]
0.996 - later [* -> 1.3.2]
0.996 - lazyeval [* -> 0.2.2]
0.996 - lifecycle [* -> 1.0.4]
0.996 - magrittr [* -> 2.0.3]
0.996 - memoise [* -> 2.0.1]
0.996 - mime [* -> 0.12]
0.996 - munsell [* -> 0.5.1]
0.996 - pillar [* -> 1.9.0]
0.996 - pkgconfig [* -> 2.0.3]
0.996 - promises [* -> 1.3.0]
0.996 - purrr [* -> 1.0.2]
0.996 - R6 [* -> 2.5.1]
0.996 - rappdirs [* -> 0.3.3]
0.996 - RColorBrewer [* -> 1.1-3]
0.996 - Rcpp [* -> 1.0.12]
0.996 - rlang [* -> 1.1.3]
0.996 - rmarkdown [* -> 2.27]
0.996 - rprojroot [* -> 2.0.4]
0.996 - sass [* -> 0.4.9]
0.996 - scales [* -> 1.3.0]
0.996 - shiny [* -> 1.8.1.1]
0.996 - snakecase [* -> 0.11.1]
0.996 - sourcetools [* -> 0.1.7-1]
0.996 - stringi [* -> 1.8.3]
0.996 - stringr [* -> 1.5.1]
0.996 - tibble [* -> 3.2.1]
0.996 - tidyr [* -> 1.3.1]
0.996 - tidyselect [* -> 1.2.1]
0.996 - tinytex [* -> 0.52]
0.996 - utf8 [* -> 1.2.4]
0.996 - vctrs [* -> 0.6.5]
0.996 - viridisLite [* -> 0.4.2]
0.996 - withr [* -> 3.0.0]
0.996 - xfun [* -> 0.44]
0.996 - xtable [* -> 1.8-4]
0.996 - yaml [* -> 2.3.8]
0.996
1.013 # Downloading packages -------------------------------------------------------
1.336 - Querying repositories for available source packages ... Done!
19.63 - Downloading Matrix from CRAN ... ERROR [cannot open URL 'https://cloud.r-project.org/src/contrib/Archive/Matrix/Matrix_1.7-1.tar.gz']
20.49 Warning: failed to find source for 'Matrix 1.7-1' in package repositories
20.49 Warning: error downloading 'https://cloud.r-project.org/src/contrib/Archive/Matrix/Matrix_1.7-1.tar.gz' [cannot open URL 'https://cloud.r-project.org/src/contrib/Archive/Matrix/Matrix_1.7-1.tar.gz']
20.49 Error: failed to retrieve package 'Matrix@1.7-1'
20.50 Traceback (most recent calls last):
20.50 8: renv::restore(repos = c(CRAN = "https://cloud.r-project.org"))
20.50 7: renv_restore_run_actions(project, diff, current, lockfile, rebuild)
20.50 6: renv_retrieve_impl(packages)
20.50 5: handler(package, renv_retrieve_impl_one(package))
20.50 4: renv_retrieve_impl_one(package)
20.50 3: renv_retrieve_repos(record)
20.50 2: stopf("failed to retrieve package '%s'", remote)
20.50 1: stop(sprintf(fmt, ...), call. = call.)
20.50 Execution halted
------
Dockerfile:25
--------------------
23 | WORKDIR /build
24 | COPY snow/renv.lock /build/renv.lock
25 | >>> RUN R -q -e "options(warn=2); renv::restore(repos = c(CRAN = 'https://cloud.r-project.org'))"
26 |
27 | # install R code
--------------------
ERROR: failed to solve: process "/bin/sh -c R -q -e \"options(warn=2); renv::restore(repos = c(CRAN = 'https://cloud.r-project.org'))\"" did not complete successfully: exit code: 1
As per #209, I encountered
renvtrying to install the current version ofMatrixfrom the archive.minimal reprex
This happens with or without the suggested fix of adding
repos = c(CRAN = 'https://cloud.r-project.org')torenv::restore().