diff --git a/.github/workflows/check-standard.yaml b/.github/workflows/check-standard.yaml index d6a1494f..9c090707 100644 --- a/.github/workflows/check-standard.yaml +++ b/.github/workflows/check-standard.yaml @@ -30,6 +30,14 @@ jobs: http-user-agent: ${{ matrix.config.http-user-agent }} use-public-rspm: true extra-repositories: https://inla.r-inla-download.org/R/stable + - name: Install INLA + uses: actions/cache@v3 + with: + path: | + ${{ env.R_LIBS_USER }}/* + key: ${{ runner.os }}-INLA_cache + run: install.packages("INLA",repos=c(getOption("repos"),INLA="https://inla.r-inla-download.org/R/stable"), dep=TRUE) + shell: Rscript {0} - uses: r-lib/actions/setup-r-dependencies@v2 with: extra-packages: any::rcmdcheck diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index f8ce774f..42b8d4b7 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -28,6 +28,14 @@ jobs: with: use-public-rspm: true extra-repositories: https://inla.r-inla-download.org/R/stable + - name: Install INLA + uses: actions/cache@v3 + with: + path: | + ${{ env.R_LIBS_USER }}/* + key: ${{ runner.os }}-INLA_cache + run: install.packages("INLA",repos=c(getOption("repos"),INLA="https://inla.r-inla-download.org/R/stable"), dep=TRUE) + shell: Rscript {0} - uses: r-lib/actions/setup-r-dependencies@v2 with: extra-packages: |