From 35d468f0f172ae7aa6d2ca73c2365e06235c1263 Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Mon, 21 Oct 2024 10:08:21 -0700 Subject: [PATCH] More debugging --- .devcontainer/r-330/Dockerfile | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/.devcontainer/r-330/Dockerfile b/.devcontainer/r-330/Dockerfile index 136fda6..3cb34e9 100644 --- a/.devcontainer/r-330/Dockerfile +++ b/.devcontainer/r-330/Dockerfile @@ -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); \ ' - \ No newline at end of file