Skip to content
Snippets Groups Projects
Commit 7245f8fa authored by Carl Boettiger's avatar Carl Boettiger
Browse files

fix littler install2.r use

parent e0689005
No related branches found
No related tags found
No related merge requests found
......@@ -59,9 +59,6 @@ RUN apt-get update \
\n exec /usr/lib/rstudio-server/bin/rserver --server-daemonize 0' \
> /etc/services.d/rstudio/run
## Temp measure for RStudio bug(?) https://support.rstudio.com/hc/en-us/community/posts/245035627-RStudio-erroneously-asks-to-install-build-tools-when-they-are-already-installed
RUN rm -rf /etc/R/*.site && DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get -y install --no-install-recommends r-base-core
COPY userconf.sh /etc/cont-init.d/conf
EXPOSE 8787
......
......@@ -7,17 +7,16 @@ RUN apt-get update -qq && apt-get -y --no-install-recommends install \
libmariadbd-dev \
libmariadb-client-lgpl-dev \
libpq-dev \
liblzma-dev \
libpcre3-dev \
libbz2-dev \
## install these packages from date-locked MRAN snapshot of CRAN
&& [ -z "$BUILD_DATE" ] && BUILD_DATE=$(date -I --date='TZ="America/Los_Angeles"') || true \
## use an install script so installation failures are errors, not warnings.
## In this script, REPOS and DEPS arguments are set via env vars, package names given as arguments
&& wget https://raw.githubusercontent.com/rocker-org/rocker-versioned/master/tidyverse/install.r -O /usr/local/bin/install.r \
&& chmod +x /usr/local/bin/install.r \
## grab a devtools dependency which is not on CRAN:
&& export REPOS=http://www.bioconductor.org/packages/release/bioc \
&& install.r BiocInstaller \
## Keep track of the MRAN version, so downstream Dockerfiles can build from this snapshot too
&& echo "REPOS=https://mran.microsoft.com/snapshot/$BUILD_DATE" >> /usr/local/lib/R/etc/Renviron \
&& export INCLUDE_SUGGESTS="TRUE" \
&& install.r tidyverse devtools profvis
&& MRAN=https://mran.microsoft.com/snapshot/${BUILD_DATE} \
&& echo MRAN=$MRAN >> /etc/environment \
&& Rscript -e "install.packages(c('littler', 'docopt'), repo = '$MRAN')" \
&& ln -s /usr/local/lib/R/site-library/littler/examples/install2.r /usr/local/bin/install2.r \
&& ln -s /usr/local/lib/R/site-library/littler/bin/r /usr/local/bin/r \
&& install2.r --error --repos $MRAN --deps "TRUE" \
&& tidyverse devtools profvis
......@@ -27,7 +27,8 @@ RUN apt-get update \
&& updmap-sys \
## And some nice R packages for publishing-related stuff
&& export INCLUDE_SUGGESTS="TRUE" \
&& install.r bookdown rticles rmdshower
&& install2.r --error --repos $MRAN --deps "TRUE" \
&& bookdown rticles rmdshower
## Consider: yihui/printr when released
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment