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 1947853 commit f30c69f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions development/vscode/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ COPY --from=rstudio /rocker_scripts/setup_R.sh /rocker_scripts/setup_R.sh
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"])))
EOF

RUN /rocker_scripts/install_rstudio.sh
RUN /rocker_scripts/install_pandoc.sh
RUN /rocker_scripts/install_quarto.sh
Expand Down

0 comments on commit f30c69f

Please sign in to comment.