Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions qgis/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
Loading