From 0d5ce96a25394cfd9216017517c4c51168b76174 Mon Sep 17 00:00:00 2001
From: Moritz Maxeiner <mm@ucw.sh>
Date: Mon, 9 Nov 2020 14:10:41 +0100
Subject: [PATCH] [jupyterhub] add R and IRkernel

---
 jupyterhub/base/Dockerfile | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

diff --git a/jupyterhub/base/Dockerfile b/jupyterhub/base/Dockerfile
index b5d5d16..f535f76 100755
--- a/jupyterhub/base/Dockerfile
+++ b/jupyterhub/base/Dockerfile
@@ -92,7 +92,17 @@ RUN apt-get update && \
     apt-get clean && \
     python${PYTHON_VERSION} -m pip install jupyterlab_latex && \
     jupyter labextension install @jupyterlab/latex
-    
+
+RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 && \
+    add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu/ bionic-cran40/' && \
+    apt-get update && \
+    apt-get install -y  r-base r-base-html && \
+    apt-get clean
+
+RUN R -e "install.packages('IRkernel')" && \
+    R -e "IRkernel::installspec(user = FALSE)" && \
+    jupyter labextension install @techrah/text-shortcuts
+
 RUN chmod -x /etc/update-motd.d/*
 
 WORKDIR "${HOME}"
-- 
GitLab