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
2 merge requests!13CRAN v0.2.10.112,!11Resolve "Implement continuous integration"
Pipeline #17916 failed
Showing with 2 additions and 1 deletion
+2 -1
......@@ -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:
......
Supports Markdown
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