From 517045206de1cb892f989f38b9be27abf2c321e5 Mon Sep 17 00:00:00 2001 From: Michael Chirico Date: Wed, 17 Jul 2024 07:15:46 -0700 Subject: [PATCH] Consistently set R_LIBS_USER across steps (#6292) * Need to re-install remotes * Use R_LIBS_USER instead --- .github/workflows/R-CMD-check-occasional.yaml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/R-CMD-check-occasional.yaml b/.github/workflows/R-CMD-check-occasional.yaml index 9efe7bbf4..fe7f3a163 100644 --- a/.github/workflows/R-CMD-check-occasional.yaml +++ b/.github/workflows/R-CMD-check-occasional.yaml @@ -1,6 +1,6 @@ on: schedule: - - cron: '17 13 17 * *' # 17th of month at 13:17 UTC + - cron: '17 13 18 * *' # 18th of month at 13:17 UTC # A more complete suite of checks to run monthly; each PR/merge need not pass all these, but they should pass before CRAN release name: R-CMD-check-occasional @@ -83,11 +83,15 @@ jobs: run: brew install gdal proj - name: Install remotes + env: + R_LIBS_USER: /home/runner/work/r-lib run: install.packages("remotes") shell: Rscript {0} - name: Install system dependencies if: runner.os == 'Linux' + env: + R_LIBS_USER: /home/runner/work/r-lib run: | while read -r cmd do @@ -103,6 +107,7 @@ jobs: R_LIBS_USER: /home/runner/work/r-lib run: | options(crayon.enabled = TRUE) + install.packages("remotes") # different R_LIBS_USER now... remotes::install_deps(dependencies=TRUE, force=TRUE) # we define this in data.table namespace, but it appears to be exec