From f546a980d9b590c7c1c41aca4342db1eb67b4612 Mon Sep 17 00:00:00 2001 From: mtwesley Date: Mon, 25 Nov 2024 11:48:13 -0500 Subject: [PATCH] improvements to r-cmd checks --- .github/workflows/R-CMD-check.yaml | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index 5dc6345..92e1692 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -18,16 +18,16 @@ defaults: jobs: R-CMD-check: - name: ${{ matrix.os }}, R-${{ matrix.r}} + name: ${{ matrix.config.os }} (${{ matrix.config.r }}) timeout-minutes: 30 strategy: fail-fast: false matrix: config: - - {os: macOS-latest, r: 'release'} - - {os: ubuntu-latest, r: 'release'} + - {os: 'ubuntu-latest', r: 'release'} + - {os: macOS-latest, r: 'release'} - {os: windows-latest, r: 'release'} - + - {os: windows-latest, r: 'oldrel'} runs-on: ${{ matrix.config.os }} env: R_REMOTES_NO_ERRORS_FROM_WARNINGS: 'true' @@ -66,10 +66,12 @@ jobs: sudo $cmd done < <(Rscript -e "writeLines(remotes::system_requirements('$ID-$VERSION_ID'))") - - name: Install greta dependencies + - name: Install greta and dependencies shell: Rscript {0} run: | - install.packages("greta", repos = c("https://greta-dev.r-universe.dev", "https://cloud.r-project.org")) + install.packages("remotes", repos = "https://cloud.r-project.org") + install.packages("rcmdcheck", repos = "https://cloud.r-project.org") + install.packages("sessioninfo", repos = "https://cloud.r-project.org") library(greta) install_greta_deps(timeout = 120) @@ -80,7 +82,9 @@ jobs: shell: Rscript {0} - name: Install package + deps - run: remotes::install_local(dependencies = TRUE, force = TRUE) + run: | + + remotes::install_local(dependencies = TRUE, force = TRUE) - name: R CMD check run: rcmdcheck::rcmdcheck(args = '--no-manual', error_on = 'warning', check_dir = 'check')