mirror of
https://github.com/jupyter/docker-stacks.git
synced 2025-10-17 06:52:56 +00:00

The e1071 R package is a dependency of functions within the caret package. Without it, `caret::train` (for example) cannot be run. This pull request addresses issue #889 (https://github.com/jupyter/docker-stacks/issues/889). note - I first tried installing e1071 in the RUN command started on line 27 but that resulted in e1071 not installing (don't know why) but adding an additional RUN command led to succesful installation... So I just went with it.
54 lines
1.3 KiB
Docker
54 lines
1.3 KiB
Docker
# Copyright (c) Jupyter Development Team.
|
|
# Distributed under the terms of the Modified BSD License.
|
|
ARG BASE_CONTAINER=jupyter/minimal-notebook
|
|
FROM $BASE_CONTAINER
|
|
|
|
LABEL maintainer="Jupyter Project <jupyter@googlegroups.com>"
|
|
|
|
USER root
|
|
|
|
# R pre-requisites
|
|
RUN apt-get update && \
|
|
apt-get install -y --no-install-recommends \
|
|
fonts-dejavu \
|
|
unixodbc \
|
|
unixodbc-dev \
|
|
r-cran-rodbc \
|
|
gfortran \
|
|
gcc && \
|
|
rm -rf /var/lib/apt/lists/*
|
|
|
|
# Fix for devtools https://github.com/conda-forge/r-devtools-feedstock/issues/4
|
|
RUN ln -s /bin/tar /bin/gtar
|
|
|
|
USER $NB_UID
|
|
|
|
# R packages
|
|
RUN conda install --quiet --yes \
|
|
'r-base=3.5.1' \
|
|
'r-rodbc=1.3*' \
|
|
'unixodbc=2.3.*' \
|
|
'r-irkernel=0.8*' \
|
|
'r-plyr=1.8*' \
|
|
'r-devtools=2.0*' \
|
|
'r-tidyverse=1.2*' \
|
|
'r-shiny=1.2*' \
|
|
'r-rmarkdown=1.11*' \
|
|
'r-forecast=8.2*' \
|
|
'r-rsqlite=2.1*' \
|
|
'r-reshape2=1.4*' \
|
|
'r-nycflights13=1.0*' \
|
|
'r-caret=6.0*' \
|
|
'r-rcurl=1.95*' \
|
|
'r-crayon=1.3*' \
|
|
'r-randomforest=4.6*' \
|
|
'r-htmltools=0.3*' \
|
|
'r-sparklyr=0.9*' \
|
|
'r-htmlwidgets=1.2*' \
|
|
'r-hexbin=1.27*' && \
|
|
conda clean --all -f -y && \
|
|
fix-permissions $CONDA_DIR
|
|
|
|
# Install e1071 R package (dependency of the caret R package)
|
|
RUN conda install --quiet --yes r-e1071
|