Skip to content

Commit

Permalink
fix: Remove dependency on particular repo for package installation (#…
Browse files Browse the repository at this point in the history
…6045)

We have run into issues several times in the past with depending on a
particular repo for downloading packages that the R client depends on.
These servers occasionally go down, and then we start failing CI.
Removing these explicit dependencies allows `install.packages` to pick a
working repo from which to download packages.
  • Loading branch information
alexpeters1208 committed Sep 10, 2024
1 parent a0b70a6 commit d4528ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def rClientDoc = Docker.registerDockerTask(project, 'rClientDoc') {
''')
runCommand('''echo "status = tryCatch(" \
" {" \
" install.packages('roxygen2', repos='https://cran.r-project.org'); " \
" install.packages('roxygen2'); " \
" 0" \
" }," \
" error=function(e) 1," \
Expand Down Expand Up @@ -179,7 +179,7 @@ def rClientSite = Docker.registerDockerTask(project, 'rClientSite') {
runCommand("mkdir -p ${prefix}/src/rdeephaven/docs")
runCommand('''echo "status = tryCatch(" \
" {" \
" install.packages('pkgdown', repos='https://cran.r-project.org'); " \
" install.packages('pkgdown'); " \
" 0" \
" }," \
" error=function(e) 1," \
Expand Down

0 comments on commit d4528ab

Please sign in to comment.