Skip to content

Commit e07e337

Browse files
committed
Move car and sf installation to conda-forge to avoid compilation errors
1 parent ad40ea2 commit e07e337

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

r-notebook/Dockerfile

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ RUN apt-get update && \
1111
wget \
1212
unzip \
1313
tzdata && \
14+
# cmake && \
1415
apt-get clean && \
1516
apt-get autoremove -y
1617

@@ -32,23 +33,24 @@ RUN mamba install --yes -c conda-forge \
3233
r-modelsummary \
3334
r-nsyllable \
3435
r-proxyc \
35-
r-tidytext && \
36+
r-tidytext \
37+
r-car \
38+
r-units \
39+
r-sf && \
3640
mamba clean --all -f -y
3741

3842
# R packages from CRAN (source)
3943
RUN R -e "install.packages(c( \
4044
'ggiraphExtra', \
41-
'sandwich', \
42-
'car', \
43-
'sf' \
45+
'sandwich' \
4446
), repos='https://cloud.r-project.org')" && \
4547
R -e "install.packages('https://cran.r-project.org/src/contrib/Archive/lisp/lisp_0.1.tar.gz', repos=NULL, type='source')" && \
4648
R -e "install.packages('https://cran.r-project.org/src/contrib/Archive/translate/translate_0.1.2.tar.gz', repos=NULL, type='source')"
4749

4850
# Copy and run common install script
4951
USER root
5052
COPY install-common.sh /tmp/install-common.sh
51-
RUN chmod +x /tmp/install-common.sh
53+
RUN chown jovyan:users /tmp/install-common.sh && chmod +x /tmp/install-common.sh
5254
USER ${NB_UID}
5355
RUN /bin/bash -x /tmp/install-common.sh
5456

0 commit comments

Comments
 (0)