From ddf8ca6c92dce97676e9543d579a0b2a2375a0bb Mon Sep 17 00:00:00 2001 From: Andrea Dell'Amico Date: Mon, 30 Jul 2018 20:14:08 +0200 Subject: [PATCH] Install some R packages that are required before putting the Rprofile.site in place. --- Dockerfile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Dockerfile b/Dockerfile index 351d2f5..e98b569 100644 --- a/Dockerfile +++ b/Dockerfile @@ -57,6 +57,16 @@ RUN apt-get update && apt-get install -y \ r-cran-matrix \ jags + +# Install some R packages that are required by the custom Rprofile.site +RUN Rscript --slave --no-save --no-restore-history -e "install.packages(pkgs='jsonlite', repos=c('https://cran.mirror.garr.it/mirrors/CRAN/'));" +RUN Rscript --slave --no-save --no-restore-history -e "install.packages(pkgs='googleVis', repos=c('https://cran.mirror.garr.it/mirrors/CRAN/'));" +RUN Rscript --slave --no-save --no-restore-history -e "install.packages(pkgs='httr', repos=c('https://cran.mirror.garr.it/mirrors/CRAN/'));" +RUN Rscript --slave --no-save --no-restore-history -e "install.packages(pkgs='XML', repos=c('https://cran.mirror.garr.it/mirrors/CRAN/'));" +RUN Rscript --slave --no-save --no-restore-history -e "install.packages(pkgs='DBI', repos=c('https://cran.mirror.garr.it/mirrors/CRAN/'));" +RUN Rscript --slave --no-save --no-restore-history -e "install.packages(pkgs='RPostgreSQL', repos=c('https://cran.mirror.garr.it/mirrors/CRAN/'));" +RUN Rscript --slave --no-save --no-restore-history -e "install.packages(pkgs='knitr', repos=c('https://cran.mirror.garr.it/mirrors/CRAN/'));" + RUN cd srv ; wget https://github.com/jgm/pandoc/releases/download/2.2.2.1/pandoc-2.2.2.1-1-amd64.deb RUN dpkg -i /srv/pandoc-2.2.2.1-1-amd64.deb