Fix the CRAN source installer.

This commit is contained in:
Andrea Dell'Amico 2023-04-10 13:51:50 +02:00
parent 15f88a66b3
commit d0cec11a5d
Signed by: andrea.dellamico
GPG Key ID: 147ABE6CEB9E20FF
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
FROM rocker/r-ver:4.2.3
LABEL org.d4science.image.licenses="EUPL-1.2" \
org.d4science.image.source="https://code-repo.d4science.org/gCubeSystem/r-full-4.2" \
org.d4science.image.source="https://code-repo.d4science.org/gCubeSystem/r-full" \
org.d4science.image.vendor="D4Science <https://www.d4science.org>" \
org.d4science.image.authors="Andrea Dell'Amico <andrea.dellamico@isti.cnr.it>"
@ -49,8 +49,8 @@ RUN for l in `cat /tmp/r_non_cran_pkgs.txt` ; do \
# Install some CRAN packages from source
ADD https://code-repo.d4science.org/gCubeSystem/r-packages-list/raw/branch/master/jupyter-image-r-cran-pkgs.txt /tmp
RUN for cr in `cat /tmp/r_non_cran_pkgs.txt` ; do \
pkg='$cr' ; \
RUN for cr in `cat /tmp/jupyter-image-r-cran-pkgs.txt` ; do \
pkg=`echo $cr` ; \
mirror='https://cloud.r-project.org' ; \
Rscript --slave --no-site-file --no-init-file --no-save --no-restore-history \
-e "install.packages(pkgs='$pkg', repos=c('$mirror/'));" ; done