Skip to content

Commit

Permalink
switch cran stuff to R install instead of apt
Browse files Browse the repository at this point in the history
  • Loading branch information
dpark01 committed Dec 8, 2023
1 parent da3576b commit 0a32319
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,20 @@ RUN apt-get -y -qq install \
imagemagick libmagick++-dev \
texlive-base texlive-latex-recommended texlive texlive-latex-extra texlive-extra-utils texlive-fonts-extra \
fonts-roboto \
r-base r-base-dev r-cran-devtools r-cran-tidyverse r-cran-extradistr \
r-cran-rcpp r-cran-rcppgsl r-cran-rcppparallel \
r-cran-segmented r-cran-pixmap r-cran-ape r-cran-seqinr r-cran-ade4 \
r-base r-base-dev r-cran-devtools \
&& apt-get clean

# r-cran-tidyverse r-cran-extradistr \
# r-cran-rcpp r-cran-rcppgsl r-cran-rcppparallel \
# r-cran-segmented r-cran-pixmap r-cran-ape r-cran-seqinr r-cran-ade4 \


# Set default locale to en_US.UTF-8
RUN locale-gen en_US.UTF-8
ENV LANG="en_US.UTF-8" LANGUAGE="en_US:en" LC_ALL="en_US.UTF-8"

# Install necessary R dependencies
RUN R -e "for (lib in c( 'Rfast', 'LaplacesDemon', 'kmer', 'phylogram', 'aphid', 'insect' )) { install.packages(lib, dependencies=TRUE); library(lib, character.only=TRUE) }"
RUN R -e "for (lib in c( 'tidyverse', 'extradistr', 'Rfast', 'istr', 'LaplacesDemon', 'ade4', 'kmer', 'phylogram', 'aphid', 'insect' )) { install.packages(lib, dependencies=TRUE); library(lib, character.only=TRUE) }"

# Install reconstructR R package -- invalidate cache any time github main branch updates
ADD https://api.github.com/repos/broadinstitute/reconstructR/git/refs/heads/main version.json
Expand Down

0 comments on commit 0a32319

Please sign in to comment.