install pak from source on rhel

This commit is contained in:
Patrick Schratz 2024-09-23 22:58:15 +02:00
commit 6710eb3d36
Signed by: pat-s
GPG key ID: 3C6318841EF78925

View file

@ -30,7 +30,8 @@ RUN curl -q -L -O https://sourceforge.net/projects/mcmc-jags/files/JAGS/4.x/Sour
### INSTALL R
RUN curl -O "https://devxy-r-builds.s3.eu-central-2.amazonaws.com/el8/R-${R_VERSION}-1-1.$(arch).rpm"
RUN dnf install -q -y "R-${R_VERSION}-1-1.$(arch).rpm" && rm "R-${R_VERSION}-1-1.$(arch).rpm"
RUN R -q -e 'install.packages("pak", repos = sprintf("https://r-lib.github.io/p/pak/devel/%s/%s/%s", .Platform$pkgType, R.Version()$os, R.Version()$arch))'
# we can't install pak on rhel as the bundled curl has the wrong CURL_CA_BUNDLE set (as it is only built on Ubuntu)
RUN R -q -e 'install.packages("remotes", repos = "cloud.r-project.org"); remotes::install_github("r-lib/pak")'
### Makevars
# dbarts: CFLAGS += -flax-vector-conversions (https://github.com/vdorie/dbarts/issues/66)