Skip to content

Commit

Permalink
Docker CRAN mirror setting issue (#446)
Browse files Browse the repository at this point in the history
* Docker CRAN issue

* Delete ocsdata test install
  • Loading branch information
cansavvy authored Feb 10, 2022
1 parent 4b62478 commit 80af9ed
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ RUN apt-get -y --no-install-recommends install \
python3-pip python3-dev

# Commonly used R packages
RUN Rscript -e "install.packages( \
RUN Rscript -e "options(warn = 2);install.packages( \
c('bookdown', \
'here', \
'leanpubr', \
Expand All @@ -56,7 +56,8 @@ RUN Rscript -e "install.packages( \
'servr', \
'spelling', \
'styler', \
'reticulate'))"
'reticulate'), \
repos = 'https://cloud.r-project.org/')"

# cow needs this dependency:
RUN Rscript -e "devtools::install_version('gitcreds', version = '0.1.1', repos = 'http://cran.us.r-project.org')"
Expand Down
5 changes: 3 additions & 2 deletions resources/TEMPLATE_Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ LABEL maintainer="your_email.com"
# package_name

# Install a package from CRAN
# RUN Rscript -e "install.packages( \
# c('package_name'))"
# RUN Rscript -e "options(warn = 2);install.packages( \
# c('package_name'), \
# repos = 'https://cloud.r-project.org/')"

# Install a package from Bioconductor
# RUN Rscript -e "options(warn = 2); BiocManager::install( \
Expand Down

0 comments on commit 80af9ed

Please sign in to comment.