From d712248fb34650865848c0183c02a9f82af9e3d4 Mon Sep 17 00:00:00 2001
From: Dorchies David <david.dorchies@inrae.fr>
Date: Tue, 6 Apr 2021 16:59:49 +0200
Subject: [PATCH] ci: dependencies issue with package 'usethis'

Refs #86
---
 .gitlab-ci.yml | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index 5769a6eb..98b052e4 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -13,13 +13,14 @@ default:
     - echo "setwd(\"$(pwd)\")" > .Rprofile
     - PATH=~/R/sources/R-${R_VERSION}/bin:$PATH
     - rename "s/${R_VERSION}.airGR/airGR/" *.tar.gz
-    - R -e 'remotes::install_deps(dep = T)'
 
 .build:
   stage: build
   script:
     - cd ..
     - echo "setwd(\"$(pwd)\")" > .Rprofile
+    - R -e 'utils::install.packages("usethis")'
+    - R -e 'remotes::install_deps(dep = T)'
     - R CMD build airgr
     - rename "s/airGR/${R_VERSION}.airGR/" airGR_*.tar.gz
     - mv *.tar.gz airgr/
-- 
GitLab