diff --git a/DESCRIPTION b/DESCRIPTION index a406e81..52f618d 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,8 +1,8 @@ Package: gDRstyle Type: Package Title: A package with style requirements for the gDR suite -Version: 1.7.2 -Date: 2025-05-26 +Version: 1.7.3 +Date: 2025-08-03 Authors@R: c( person("Allison", "Vuong", role=c("aut")), person("Dariusz", "Scigocki", role=c("aut")), diff --git a/NEWS.md b/NEWS.md index 0221547..e8f1b47 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,6 @@ +## gDRstyle 1.7.3 - 2025-08-04 +* added support for skipping vignette building in `run_tests.sh` + ## gDRstyle 1.7.2 - 2025-05-26 * add check for `pkgdown` in the `checkPackage` function diff --git a/R/check.R b/R/check.R index 2ce4119..8c01291 100644 --- a/R/check.R +++ b/R/check.R @@ -156,6 +156,7 @@ rcmd_check_with_notes <- function(pkgDir, `no-check-unit-tests` = TRUE, # unit tests are called in previous step `no-check-formatting` = TRUE, # follow gDR style guides `no-check-CRAN` = TRUE, # may cause random error in CI + `no-check-description` = TRUE, # to prevent missing `fnd` NOTE `no-check-version-num` = TRUE, `no-check-R-ver` = TRUE ) @@ -250,7 +251,7 @@ checkPackage <- function(pkgName, if (!skip_pkgdown) { message("Pkgdown") - pkgdown::build_site( + pkgdown::build_reference( pkg = pkgDir, override = list(destination = tempfile()), preview = FALSE diff --git a/inst/scripts/run_tests.R b/inst/scripts/run_tests.R index eb5b2fb..8f5de98 100644 --- a/inst/scripts/run_tests.R +++ b/inst/scripts/run_tests.R @@ -7,6 +7,7 @@ LIB_DIR <- args[4] FAIL_ON <- args[5] BIOC_CHECK <- args[6] RUN_EXAMPLES <- as.logical(args[7]) +CHECK_VIGNETTES <- as.logical(args[8]) # Load libraries stopifnot(dir.exists(LIB_DIR)) @@ -20,10 +21,12 @@ invisible( # Check package gDRstyle::checkPackage( - PKG_NAME, - REPO_DIR, - PKG_SUBDIR, - FAIL_ON, - BIOC_CHECK, - RUN_EXAMPLES + pkgName = PKG_NAME, + repoDir = REPO_DIR, + subdir = PKG_SUBDIR, + fail_on = FAIL_ON, + bioc_check = BIOC_CHECK, + run_examples = RUN_EXAMPLES, + build_vignettes = CHECK_VIGNETTES, + check_vignettes = CHECK_VIGNETTES )