Skip to content

Commit

Permalink
backpedal on caching
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdutey committed Nov 19, 2023
1 parent 1c28a10 commit e8efe63
Showing 1 changed file with 4 additions and 12 deletions.
16 changes: 4 additions & 12 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -67,13 +67,13 @@ jobs:
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
shell: Rscript {0}

- name: Restore cached R packages
- name: Cache R packages
if: runner.os != 'Windows'
id: restore-r-packages
uses: actions/cache/restore@v3
uses: actions/cache@v2
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-${{ hashFiles('.github/depends.Rds') }}
restore-keys: ${{ runner.os }}-${{ hashFiles('.github/R-version') }}-1-

- name: Install system dependencies
if: runner.os == 'Linux'
Expand All @@ -89,15 +89,7 @@ jobs:
remotes::install_deps(dependencies = TRUE)
remotes::install_cran("rcmdcheck")
shell: Rscript {0}

- name: Cache R packages
if: runner.os != 'Windows'
id: cache-r-packages
uses: actions/cache/save@v3
with:
path: ${{ env.R_LIBS_USER }}
key: ${{ steps.restore-r-packages.outputs.cache-primary-key }}


- name: Check
env:
_R_CHECK_CRAN_INCOMING_REMOTE_: false
Expand Down

0 comments on commit e8efe63

Please sign in to comment.