From 901af2322e537dd0a25b07d40c7eca8718841b42 Mon Sep 17 00:00:00 2001 From: Diamond Bryant Date: Tue, 6 Feb 2024 10:45:46 -0500 Subject: [PATCH] Option to install R core package in R-Studio Build --- rstudio/c9s-python-3.9/Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/rstudio/c9s-python-3.9/Dockerfile b/rstudio/c9s-python-3.9/Dockerfile index 300a25ed0..103f45630 100644 --- a/rstudio/c9s-python-3.9/Dockerfile +++ b/rstudio/c9s-python-3.9/Dockerfile @@ -50,6 +50,7 @@ COPY rsession.conf /etc/rstudio/rsession.conf # package installation RUN dnf install -y libsodium-devel.x86_64 libgit2-devel.x86_64 libcurl-devel harfbuzz-devel.x86_64 fribidi-devel.x86_64 cmake "flexiblas-*" RUN R -e "install.packages('Rcpp')" +RUN if [-n = $NEEDPACKAGE]; then R -e "install.packages(c('tidyverse', 'tidymodels', 'plumber', 'vetiver', 'devtools'))" ; else exit 0 # Install NGINX to proxy RStudio and pass probes check ENV NGINX_VERSION=1.22 \