From 3fed43d15d0964b0a541200ad6821ee58f7b82f3 Mon Sep 17 00:00:00 2001 From: Dirk Eddelbuettel Date: Sat, 6 Jun 2026 06:58:03 -0500 Subject: [PATCH] Use run_tests with build and check arguments to enable vignette --- .github/workflows/ci.yaml | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 9581c4f..f481570 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -69,12 +69,9 @@ jobs: - name: Install vignette builder run: Rscript -e 'if (!requireNamespace("simplermarkdown", quietly = TRUE)) install.packages("simplermarkdown")' - # Build and check explicitly rather than ./run.sh run_tests: r-ci's - # run_tests passes --no-build-vignettes, which leaves inst/doc empty - # and makes R CMD check warn about the orphaned vignettes/ directory. - # We want the vignette built and its code run as part of the check. - - name: Build - run: R CMD build . - - - name: Check - run: R CMD check rotio_*.tar.gz --no-manual --as-cran --install-args=--install-tests + # Alter build and check args to exclude --no-build-vignettes + - name: Test + run: ./run.sh run_tests + env: + R_BUILD_ARGS: "--no-manual" + R_CHECK_ARGS: "--no-manual --as-cran"