diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c18620a708e9a28bfd52f2384ebd6ff6dd8c8888..205d5b3672108f72d03f47c6c1a7f04a66ef4b46 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -3,4 +3,4 @@ job_R:
     - echo $HOME
     - Rscript -e 'getwd(); .libPaths(); sessionInfo()'
     - Rscript -e 'library(devtools); check()'
-    - Rscript -e 'library(devtools); install(local = FALSE)'
+    - Rscript -e 'library(devtools); install(local = FALSE, lib = path.expand("~/R-tests/legTools"))'