Skip to content

Commit

Permalink
Add repos=; skip unavailable packages
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico authored Aug 20, 2024
1 parent fe17c66 commit 6ba971e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .devcontainer/r-ancient-gcc/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ RUN apt-get -qq update \
COPY DESCRIPTION .

RUN Rscript -e ' \
options(repos = "https://cloud.r-project.org"); \
dcf = read.dcf("DESCRIPTION", c("Imports", "Suggests")); \
deps = names(tools:::.split_dependencies(dcf)); \
standard_pkgs = tools:::.get_standard_package_names(); \
deps = intersect(deps, rownames(available.packages()); \
install.packages(setdiff(deps, standard_pkgs$base)); \
'

Expand Down

0 comments on commit 6ba971e

Please sign in to comment.