From 9da3fcfb7af7618d66fab91ccbdbbafe22cc057d Mon Sep 17 00:00:00 2001 From: "Matthijs S. Berends" Date: Sat, 5 Jan 2019 09:55:37 +0100 Subject: [PATCH] gitlab pkg cache --- .gitlab-ci.R | 2 +- .gitlab-ci.yml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.gitlab-ci.R b/.gitlab-ci.R index 6993de43..a1f2f16c 100644 --- a/.gitlab-ci.R +++ b/.gitlab-ci.R @@ -31,7 +31,7 @@ gl_update_pkg_all <- function(repos = "https://cran.rstudio.com", update.packages(ask = FALSE, repos = repos, quiet = quiet) install_if_needed(pkg = "devtools", repos = repos, quiet = quiet) - if (install_pkgdown = TRUE) { + if (install_pkgdown == TRUE) { install_if_needed(pkg = "pkgdown", repos = repos, quiet = quiet) } diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 12e62691..323bfb12 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -29,7 +29,8 @@ stages: - test - deploy -image: debian:stretch-slim +# stretch only contains R 3.3 +image: debian:buster-slim before_script: - apt-get update @@ -40,7 +41,7 @@ before_script: - echo 'R_LIBS="installed_deps"' > .Renviron - echo 'R_LIBS_USER="installed_deps"' >> .Renviron - echo 'R_LIBS_SITE="installed_deps"' >> .Renviron - - Rscript -e '.libPaths()' + #- Rscript -e '.libPaths()' # install missing and outdated packages - Rscript -e 'source(".gitlab-ci.R")' - Rscript -e 'gl_update_pkg_all(repos = "https://cran.rstudio.com", quiet = TRUE, install_pkgdown = TRUE)'