diff --git a/development/vscode/Dockerfile b/development/vscode/Dockerfile index 60b8a98..39f1d65 100644 --- a/development/vscode/Dockerfile +++ b/development/vscode/Dockerfile @@ -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 <>"${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