diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 47ac49b6c..bfa7144e3 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -84,7 +84,9 @@ jobs: - name: Cache R packages uses: actions/cache@v2 with: - path: ${{ env.R_LIBS_USER }} + path: | + ${{ env.R_LIBS_USER }}/* + !${{ env.R_LIBS_USER }}/pak key: ${{ runner.os }}-${{ steps.install-r.outputs.installed-r-version }}-1-${{ hashFiles('.github/r-depends.rds') }} restore-keys: ${{ runner.os }}-${{ steps.install-r.outputs.installed-r-version }}-1-