Skip to content

Commit

Permalink
More debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico authored Oct 21, 2024
1 parent 730329a commit 35d468f
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions .devcontainer/r-330/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,14 @@ RUN apt-get -qq update && \

COPY DESCRIPTION .

RUN Rscript -e ' \
options(repos = "https://cloud.r-project.org"); \
dcf = read.dcf("DESCRIPTION", c("Depends", "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)); \
RUN Rscript -e ' \
options(repos = "https://cloud.r-project.org"); \
dcf = read.dcf("DESCRIPTION", c("Depends", "Imports", "Suggests")); \
deps = names(tools:::.split_dependencies(dcf)); \
default_pkgs = tools:::.get_standard_package_names()$base; \
installable = setdiff(rownames(available.packages()), default_pkgs); \
message("All deps: ", toString(deps)); \
deps = intersect(deps, installable); \
message("Installing: ", toString(deps)); \
install.packages(deps); \
'

0 comments on commit 35d468f

Please sign in to comment.