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
1 file
+ 4
8
Compare changes
  • Side-by-side
  • Inline
+ 4
8
@@ -23,15 +23,11 @@ building:
- mkdir -p $R_LIBS_USER $BUILD_LOGS_DIR
- Rscript -e "remotes::install_deps(dependencies = TRUE, lib = Sys.getenv('R_LIBS_USER'))"
# Install packages required by covr and pkgdown
- export # list value of all environmental variables
- ls -l $R_LIBS_USER
- Rscript -e "install.packages(c('DT', 'pkgdown'), lib = Sys.getenv('R_LIBS_USER'))"
- Rscript -e ".libPaths()"
- Rscript -e "rownames(installed.packages())"
- Rscript -e "library(dm)"
- Rscript -e "devtools::install()"
- Rscript -e "devtools::r_env_vars()"
- Rscript -e "devtools::check(check_dir = Sys.getenv('CHECK_DIR'), env_vars = c(NOT_CRAN = 'true', R_LIBS_USER = Sys.getenv('R_LIBS_USER')))"
# Use --no-environ to prevent setting the environment variable R_LIBS from Rprofile.site
# which caused R_LIBS_USER to appear last in .libPaths(), which in turn prevented check()
# to find the packages installed in R_LIBS_USER, leading to a installation error.
- Rscript --no-environ -e "devtools::check(check_dir = Sys.getenv('CHECK_DIR'))"
cache:
key: default_3
paths:
Loading