gitlab pkg cache

This commit is contained in:
dr. M.S. (Matthijs) Berends 2019-01-05 09:55:37 +01:00
parent b48e609afe
commit 9da3fcfb7a
2 changed files with 4 additions and 3 deletions

View File

@ -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)
}

View File

@ -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)'