Skip to content

Commit 2d4ee85

Browse files
authored
qgis: install geocompkg from r-universe so mlr3 extras come as binaries
1 parent 4231a6e commit 2d4ee85

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

qgis/Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ USER root
6363
# Step 1: Compile key spatial C/C++ packages from source so they link against
6464
# the ubuntugis-unstable GDAL/PROJ/GEOS libraries (no CRAN binary available)
6565
RUN R -e "install.packages(c('sf', 'terra', 'stars', 'lwgeom'), repos = c(CRAN = 'https://cloud.r-project.org'), type = 'source')"
66-
# Step 2: Install everything else from RSPM binaries via pak.
66+
# Step 2: Install everything else from RSPM binaries.
6767
# `dependencies = TRUE` includes Suggests, which geocompkg uses to list the
6868
# book's bridge/companion packages (qgisprocess, Rsagacmd, rgrass, tmap, mlr3*,
6969
# vegan, ...). Without it, the CI/CD that builds geocompr against this image
7070
# fails on `library(qgisprocess)` etc.
71-
RUN R -e "install.packages('pak', repos = 'https://cloud.r-project.org'); pak::pak('geocompx/geocompkg', upgrade = TRUE, dependencies = TRUE)"
71+
RUN R -e "install.packages('geocompx/geocompkg', upgrade = TRUE, dependencies = TRUE, force = TRUE, repos = c('https://geocompx.r-universe.dev', 'https://mlr-org.r-universe.dev', options('repos')))"
7272
# Set the options() for R users:
7373
RUN echo 'options(repos = "https://packagemanager.posit.co/cran/latest")' >> /usr/local/lib/R/etc/Rprofile.site
7474

0 commit comments

Comments
 (0)