Skip to content

Commit

Permalink
fix windows 3.6 error in r-cmd-check r-lib/actions#529
Browse files Browse the repository at this point in the history
  • Loading branch information
ygeunkim committed Jun 17, 2024
1 parent 07b5487 commit 5be624c
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,32 @@ jobs:
http-user-agent: ${{ matrix.config.http-user-agent }}
use-public-rspm: true

# - uses: r-lib/actions/setup-r-dependencies@v2
# with:
# extra-packages: any::rcmdcheck
# needs: check
- uses: r-lib/actions/setup-r-dependencies@v2
if: ${{ runner.os == 'Windows' && matrix.config.r == '3.6' }}
with:
extra-packages: any::rcmdcheck
pak-version: rc
needs: check

- uses: r-lib/actions/setup-r-dependencies@v2
if: ${{ runner.os != 'Windows' || matrix.config.r != '3.6' }}
with:
extra-packages: any::rcmdcheck
needs: check

# do not build vignettes in github actions check and ignore warnings
- uses: r-lib/actions/check-r-package@v2
with:
args: 'c("--no-manual", "--as-cran", "--no-build-vignettes", "--no-tests", "--no-examples")'
build_args: '"--no-build-vignettes"'
args: 'c("--no-manual", "--as-cran", "--no-build-vignettes", "--no-examples")'
build_args: 'c("--no-manual", "--no-build-vignettes")'
error-on: '"error"'
# upload-snapshots: true
check-dir: '"check"'
upload-snapshots: false
upload-results: false

# do not upload artifact until changing to public repo
# When public repo -> uncomment below
Expand Down

0 comments on commit 5be624c

Please sign in to comment.