From 393e951e50d272b545705f3438f01bd51119a166 Mon Sep 17 00:00:00 2001 From: David Dorchies <david.dorchies@inrae.fr> Date: Thu, 19 Oct 2023 14:36:01 +0000 Subject: [PATCH] ci: speedup dependencies installations by using binaries Using the Posit Public Package Manager Refs #175 --- .gitignore | 1 + .gitlab-ci.yml | 8 +------- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index b9e05842..8c73f0da 100644 --- a/.gitignore +++ b/.gitignore @@ -58,6 +58,7 @@ vignettes/*.pdf # R Environment Variables .Renviron +.Rprofile # pkgdown site docs/ diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 89c774d0..eda2dc5c 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -17,6 +17,7 @@ cache: before_script: - mkdir -p $R_LIBS_USER - echo "R_LIBS='$R_LIBS_USER'" > .Renviron + - echo 'options(repos = c(CRAN = "https://packagemanager.posit.co/cran/__linux__/focal/latest"))' > .Rprofile - apt-get update && apt-get install -y libstdc++6 - R -q -e 'remotes::install_deps(dependencies = TRUE)' @@ -42,13 +43,6 @@ before_script: image: rocker/geospatial:4.1 variables: R_VERSION: oldrel - before_script: - - mkdir -p $R_LIBS_USER - - echo "R_LIBS='$R_LIBS_USER'" > .Renviron - - apt-get update && apt-get install -y tk libstdc++6 - - R -q -e 'remotes::update_packages("sm")' - - R -q -e 'install.packages("vioplot")' - - R -q -e 'remotes::install_deps(dependencies = TRUE)' .scheduled_tests: only: -- GitLab