Skip to content

Commit

Permalink
Consistently set R_LIBS_USER across steps (#6292)
Browse files Browse the repository at this point in the history
* Need to re-install remotes

* Use R_LIBS_USER instead
  • Loading branch information
MichaelChirico authored Jul 17, 2024
1 parent ebc185e commit 5170452
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/R-CMD-check-occasional.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit 5170452

Please sign in to comment.