Commit aaac687c authored by Delaigue Olivier's avatar Delaigue Olivier
Browse files

ci: move the chack script to check the installed packages in the yml file

Refs #29
parent d485a7df
Pipeline #17916 failed
......@@ -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:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment