Merge pull request #11 from DavisVaughan/feature/remove-raw-and-invoke #272
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| on: [push, pull_request] | |
| name: R-CMD-check | |
| jobs: | |
| R-CMD-check: | |
| if: "! contains(github.event.head_commit.message, '[ci skip]')" | |
| timeout-minutes: 45 | |
| runs-on: ${{ matrix.config.os }} | |
| name: ${{ matrix.config.os }} (${{ matrix.config.r }}) ${{ matrix.config.label }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| config: | |
| - {os: windows-latest, r: 'release' } | |
| - {os: windows-latest, r: 'oldrel' } | |
| - {os: macOS-latest, r: 'release' } | |
| - {os: ubuntu-latest, r: 'devel' } | |
| - {os: ubuntu-latest, r: 'release', label = "w/ all suggests" } | |
| - {os: ubuntu-latest, r: 'release', without_suggests: true, label: 'w/out suggests' } | |
| - {os: ubuntu-latest, r: 'oldrel' } | |
| # - {os: ubuntu-latest, r: '4.1' } | |
| env: | |
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | |
| R_KEEP_PKG_SOURCE: yes | |
| R_REMOTES_NO_ERRORS_FROM_WARNINGS: true | |
| ## R (>= 4.4.0) Note, no trailing underscore (sic!) | |
| _R_COMPARE_LANG_OBJECTS: eqonly | |
| ## R CMD check | |
| _R_CHECK_CRAN_INCOMING_: false | |
| _R_CHECK_MATRIX_DATA_: true | |
| _R_CHECK_SUGGESTS_ONLY_: ${{ matrix.config.without_suggests && 'true' || 'false' }} | |
| _R_CHECK_FORCE_SUGGESTS_: ${{ matrix.config.without_suggests && 'false' || 'true' }} | |
| _R_CHECK_THINGS_IN_TEMP_DIR_: true | |
| _R_CHECK_TESTS_NLINES_: 300 | |
| _R_CHECK_TESTS_ELAPSED_THRESHOLD_: 0 | |
| RCMDCHECK_ERROR_ON: note | |
| NOT_CRAN: true | |
| ## Specific to futures | |
| # R_FUTURE_CONNECTIONS_ONMISUSE: "error[details=TRUE]" | |
| R_FUTURE_GLOBALENV_ONMISUSE: "error" | |
| R_FUTURE_GLOBALS_ONREFERENCE: "warning" | |
| R_FUTURE_RNG_ONMISUSE: error | |
| R_FUTURE_FUTURE_EARLYSIGNAL: defunct | |
| R_FUTURE_FUTURE_LOCAL: defunct | |
| R_FUTURE_FUTURE_GC: defunct | |
| R_FUTURE_PLAN_EARLYSIGNAL: defunct | |
| R_FUTURE_RESOLVED_RUN: defunct | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: r-lib/actions/setup-pandoc@v2 | |
| - uses: r-lib/actions/setup-r@v2 | |
| with: | |
| r-version: ${{ matrix.config.r }} | |
| use-public-rspm: true | |
| - name: Remove Suggests that require a newer version of R | |
| if: matrix.config.r == 'oldrel' | |
| run: | | |
| ## Bioc package 'scater' depends on CRAN package 'ggrepel', | |
| ## which requires R (>= 4.5.0) as of ggrepel 0.9.7 (2026-02-25) | |
| sed -i '/scater,/d' DESCRIPTION | |
| shell: bash {0} | |
| - uses: r-lib/actions/setup-r-dependencies@v2 | |
| with: | |
| extra-packages: | | |
| any::rcmdcheck | |
| any::remotes | |
| needs: check | |
| - name: Install package itself (special case) | |
| run: | | |
| install.packages(".", repos = NULL, type = "source") ## needed by vignettes | |
| shell: Rscript {0} | |
| - name: Session info | |
| run: | | |
| options(width = 100) | |
| parallelly::availableCores(which = "all") | |
| sapply(c(physical_cores = FALSE, logical_cores = TRUE), parallel::detectCores) | |
| if (require(RhpcBLASctl, quietly=TRUE)) c(get_num_procs = get_num_procs(), get_num_cores = get_num_cores(), blas_get_num_procs = blas_get_num_procs(), omp_get_num_procs = omp_get_num_procs(), omp_get_max_threads = omp_get_max_threads()) | |
| capabilities() | |
| pkgs <- installed.packages()[, "Package"] | |
| sessioninfo::session_info(pkgs, include_base = TRUE) | |
| ## Verify LANGUAGE settings by generating a translatable error | |
| cat(sprintf("LANGUAGE=%s\n", sQuote(Sys.getenv("LANGUAGE")))) | |
| cat(sprintf("locales: %s\n", sQuote(Sys.getlocale()))) | |
| tryCatch(log("a"), error = conditionMessage) | |
| shell: Rscript {0} | |
| - name: Check | |
| if: runner.os != 'Windows' | |
| run: | | |
| rcmdcheck::rcmdcheck( | |
| args = c("--no-manual", "--as-cran"), | |
| check_dir = "check" | |
| ) | |
| shell: Rscript {0} | |
| - name: Check (Windows) | |
| if: runner.os == 'Windows' | |
| run: | | |
| rcmdcheck::rcmdcheck( | |
| args = c("--no-manual", "--as-cran", if (getRversion() >= "4.2.0") "--no-multiarch"), | |
| check_dir = "check" | |
| ) | |
| shell: Rscript {0} | |
| - name: Upload check results | |
| if: failure() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: ${{ runner.os }}-r${{ matrix.config.r }}-results | |
| path: check |