Skip to content

Commit

Permalink
3.3.0 needs repos= set, can't use remotes
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico committed Oct 21, 2024
1 parent 67f070c commit dd41920
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .devcontainer/r-330/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,12 @@ RUN apt-get -qq update && \

COPY DESCRIPTION .

RUN Rscript -e ' \
install.packages("remotes"); \
remotes::install_deps(dependencies = c( \
"Depends", \
"Imports", \
"Config/needs/development" \
)) \
RUN Rscript -e ' \
options(repos = "https://cloud.r-project.org"); \
dcf = read.dcf("DESCRIPTION", c("Imports", "Suggests")); \
deps = names(tools:::.split_dependencies(dcf)); \
standard_pkgs = tools:::.get_standard_package_names(); \
deps = intersect(deps, rownames(available.packages())); \
install.packages(setdiff(deps, standard_pkgs$base)); \
'

0 comments on commit dd41920

Please sign in to comment.