diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index bd2fd9a3ac06f55ca179d4a8e31f6535eaa45ec5..4a5ea1e207575a01c6b8d18ce07d346c7b83bed1 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -8,6 +8,7 @@ default: - echo "setwd(\"$(pwd)\")" > .Rprofile - PATH=~/R/sources/R-${R_VERSION}/bin:$PATH - rename "s/${R_VERSION}.airGRteaching/airGRteaching/" *.tar.gz + - R -e 'chooseCRANmirror(graphics = F, ind = 1); pkg <- c("dygraphs", "plotrix", "shiny", "shinyjs"); pkgInst <- installed.packages()[, "Package"]; pkgMiss <- setdiff(pkg, pkgInst); if (length(pkgMiss) > 0) install.packages(pkgMiss)' .update_packages: stage: update_packages @@ -16,7 +17,7 @@ default: - tags - schedules script: - - Rscript -e 'pkg <- c("dygraphs", "plotrix", "shiny", "shinyjs");pkgInst <- installed.packages()[, "Package"];pkgMiss <- setdiff(pkg, pkgInst);if (length(pkgMiss) > 0) install.packages(pkgMiss)' + - - Rscript -e "update.packages(ask=FALSE, repos=\"http://cran.r-project.org\")" .build: