From 1ee10efc33736f43cb296984f9023039f9620841 Mon Sep 17 00:00:00 2001 From: jannes Date: Mon, 8 Jun 2026 23:54:24 +0200 Subject: [PATCH] qgis: install Suggests too (pak dependencies = TRUE) geocompkg lists the book's bridges (qgisprocess, Rsagacmd, rgrass, tmap, mlr3*, vegan, ...) in Suggests. The prior install.packages call used dependencies = TRUE; pak::pak() in 4728cad does not. Restoring it so the image carries what the geocompr CI/CD needs. --- qgis/Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/qgis/Dockerfile b/qgis/Dockerfile index 76360aa..a13eed6 100644 --- a/qgis/Dockerfile +++ b/qgis/Dockerfile @@ -63,8 +63,12 @@ USER root # Step 1: Compile key spatial C/C++ packages from source so they link against # the ubuntugis-unstable GDAL/PROJ/GEOS libraries (no CRAN binary available) RUN R -e "install.packages(c('sf', 'terra', 'stars', 'lwgeom'), repos = c(CRAN = 'https://cloud.r-project.org'), type = 'source')" -# Step 2: Install everything else from RSPM binaries via pak -RUN R -e "install.packages('pak', repos = 'https://cloud.r-project.org'); pak::pak('geocompx/geocompkg', upgrade = TRUE)" +# Step 2: Install everything else from RSPM binaries via pak. +# `dependencies = TRUE` includes Suggests, which geocompkg uses to list the +# book's bridge/companion packages (qgisprocess, Rsagacmd, rgrass, tmap, mlr3*, +# vegan, ...). Without it, the CI/CD that builds geocompr against this image +# fails on `library(qgisprocess)` etc. +RUN R -e "install.packages('pak', repos = 'https://cloud.r-project.org'); pak::pak('geocompx/geocompkg', upgrade = TRUE, dependencies = TRUE)" # Set the options() for R users: RUN echo 'options(repos = "https://packagemanager.posit.co/cran/latest")' >> /usr/local/lib/R/etc/Rprofile.site