From 6e8dc3eedd82ec0c9c0eb9005af80fc6f3e6a331 Mon Sep 17 00:00:00 2001 From: Jeroen Date: Mon, 1 Apr 2024 21:05:37 +0200 Subject: [PATCH] Switch the R Docker file to r2u --- packages.R | 2 +- r.Dockerfile | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packages.R b/packages.R index 115d9de..a256803 100644 --- a/packages.R +++ b/packages.R @@ -1,3 +1,3 @@ #!/usr/bin/env Rscript -install.packages(c("dplyr","data.table","tidyr"), repos="https://cran.r-project.org") +install.packages(c("dplyr","data.table","tidyr"), repos="https://cran.r-project.org", dependencies=TRUE) diff --git a/r.Dockerfile b/r.Dockerfile index 5cbd5d7..5a90f7f 100644 --- a/r.Dockerfile +++ b/r.Dockerfile @@ -1,4 +1,5 @@ -FROM r-base:4.3.3 +FROM rocker/r2u:22.04 + RUN mkdir /app WORKDIR /app