Skip to content

Commit

Permalink
Dockerfile code add CRAN mirror
Browse files Browse the repository at this point in the history
  • Loading branch information
jwijffels committed Dec 19, 2024
1 parent f30c69f commit 566c798
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions development/vscode/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@ RUN /rocker_scripts/install_R_source.sh
#RUN /rocker_scripts/setup_R.sh

## Add a default CRAN mirror
echo "options(repos = c(CRAN = '${CRAN}'), download.file.method = 'libcurl')" >>"${R_HOME}/etc/Rprofile.site"
cat <<EOF >>"${R_HOME}/etc/Rprofile.site"
options(HTTPUserAgent = sprintf("R/%s R (%s)", getRversion(), paste(getRversion(), R.version["platform"], R.version["arch"], R.version["os"])))
RUN echo "options(repos = c(CRAN = '${CRAN}'), download.file.method = 'libcurl')" >>"${R_HOME}/etc/Rprofile.site"
RUN cat <<EOF >>"${R_HOME}/etc/Rprofile.site" \
options(HTTPUserAgent = sprintf("R/%s R (%s)", getRversion(), paste(getRversion(), R.version["platform"], R.version["arch"], R.version["os"]))) \
EOF

RUN /rocker_scripts/install_rstudio.sh
Expand Down

0 comments on commit 566c798

Please # to comment.