Skip to content
Snippets Groups Projects

Fix CI check libs issue

Merged Facundo Muñoz requested to merge fix-ci-check-libs-issue into main

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().

Merge request reports

Pipeline #43677 passed

Pipeline passed for bc1dc49f on fix-ci-check-libs-issue

Merged by Facundo MuñozFacundo Muñoz 3 years ago (Oct 30, 2021 12:39pm UTC)

Loading

Pipeline #43678 failed

Pipeline failed for 9195313d on main

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
Please register or sign in to reply
Loading