Fix CI check libs issue
Compare changes
+ 4
− 1
@@ -24,7 +24,10 @@ building:
Opération de maintenance au data center INRAE de Toulouse du jeudi 20 mars à 15h00 au lundi 24 Mars 2025 à 13h
Les services ForgeMia et Mattermost seront donc inaccessibles pendant cette période (plus de détails)
13/03/2025 : Forgemia et Mattermost seront inaccessibles ce soir de 19h30 à 21h30 pour mise à jour de sécurité.
Package check()ing was failing with an error about not finding dependencies that were actually correctly installed in the previous steps in the library at the environment variable R_LIBS_USER.
The problem was that the library at R_LIBS_USER appeared last in .libPaths()
just after .Library
and .Library.site
. The order in .libPaths()
is determined at startup from the environment variables R_LIBS
and R_LIBS_USER
, in that order.
By default, R_LIBS
is unset, causing R_LIBS_USER
to appear first in .libPaths()
.
However, the docker images rocker/verse
set R_LIBS
within $R_HOME/etc/Renviron.site
.
The current solution prevents reading this file at start up using --no-environ
, only for check()
.