Skip to content
Snippets Groups Projects
Commit 510299da authored by Peng Lian's avatar Peng Lian
Browse files

Update R/3.6.1

parent ac8cccf9
No related merge requests found
...@@ -14,9 +14,8 @@ ENV http_proxy="${http_proxy}" \ ...@@ -14,9 +14,8 @@ ENV http_proxy="${http_proxy}" \
no_proxy="${no_proxy}" no_proxy="${no_proxy}"
# Configure default locale # Configure default locale
ENV LC_ALL=en_US.UTF-8 \ ENV LC_ALL=en_US.UTF-8
LANG=en_US.UTF-8 \ ENV LANG=en_US.UTF-8
R_VERSION=3.6.1
# Enable EPEL and install dependencies for building R packages # Enable EPEL and install dependencies for building R packages
RUN mkdir /astrocyte /apps /home1 /home2 /work /project /archive /cm /programs && \ RUN mkdir /astrocyte /apps /home1 /home2 /work /project /archive /cm /programs && \
...@@ -49,7 +48,7 @@ RUN mkdir /astrocyte /apps /home1 /home2 /work /project /archive /cm /programs & ...@@ -49,7 +48,7 @@ RUN mkdir /astrocyte /apps /home1 /home2 /work /project /archive /cm /programs &
libtiff-devel \ libtiff-devel \
fftw-devel \ fftw-devel \
freetype-devel \ freetype-devel \
cmake \ cmake3 \
librsvg2-devel \ librsvg2-devel \
mariadb-devel \ mariadb-devel \
pandoc \ pandoc \
...@@ -64,14 +63,28 @@ RUN mkdir /astrocyte /apps /home1 /home2 /work /project /archive /cm /programs & ...@@ -64,14 +63,28 @@ RUN mkdir /astrocyte /apps /home1 /home2 /work /project /archive /cm /programs &
libjpeg-turbo-devel \ libjpeg-turbo-devel \
&& \ && \
\ \
ln -s /usr/bin/cmake3 /usr/bin/cmake && \
yum clean all
# Install R
ENV R_VERSION=3.6.1
# Enable EPEL and install dependencies for building R packages
RUN yum -y update && \
yum install -y epel-release && \
yum -y install R && \
rpm -e --nodeps R && \
# Install R and packages # Install R and packages
yum -y install https://cdn.rstudio.com/r/centos-7/pkgs/R-${R_VERSION}-1-1.x86_64.rpm && \ yum -y install https://cdn.rstudio.com/r/centos-7/pkgs/R-${R_VERSION}-1-1.x86_64.rpm && \
yum clean all && \ yum clean all && \
ln -s /opt/R/${R_VERSION}/bin/R /usr/local/bin/R && \ ln -s /opt/R/${R_VERSION}/bin/R /usr/local/bin/R && \
ln -s /opt/R/${R_VERSION}/bin/Rscript /usr/local/bin/Rscript && \ ln -s /opt/R/${R_VERSION}/bin/Rscript /usr/local/bin/Rscript && \
/usr/local/bin/R -e "install.packages(c('BiocManager', 'shiny', 'shinyFiles', 'devtools'), repos='https://cloud.r-project.org')" && \
R --version R --version
# Install R libraries and list the installed
RUN R -e "install.packages(c('BiocManager', 'shiny', 'shinyFiles', 'devtools'), repos='https://cloud.r-project.org')" && \
R -e "as.data.frame(installed.packages()[,c(1,3:4)])"
# set default CRAN mirror # set default CRAN mirror
COPY Rprofile.site /opt/R/${R_VERSION}/lib/R/etc/ COPY Rprofile.site /opt/R/${R_VERSION}/lib/R/etc/
......
options(repos = c(CRAN = 'https://cloud.r-project.org'), download.file.method = 'libcurl') options(repos = c(CRAN = 'https://cloud.r-project.org'), download.file.method = 'libcurl')
options(repos = c(CRAN = 'https://cran.rstudio.com/'), download.file.method = 'libcurl') options(repos = c(CRAN = 'https://cran.rstudio.com/'), download.file.method = 'libcurl')
\ No newline at end of file options(Ncpus = 6)
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment