From d4528ab4ad202ffe7f690e1a27f1f1a36be96be9 Mon Sep 17 00:00:00 2001 From: Alex Peters <80283343+alexpeters1208@users.noreply.github.com> Date: Tue, 10 Sep 2024 11:28:32 -0500 Subject: [PATCH] fix: Remove dependency on particular repo for package installation (#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. --- R/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/R/build.gradle b/R/build.gradle index 85583260473..7e542cd1597 100644 --- a/R/build.gradle +++ b/R/build.gradle @@ -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," \ @@ -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," \