Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: gDRstyle
Type: Package
Title: A package with style requirements for the gDR suite
Version: 1.7.1
Date: 2025-04-16
Version: 1.7.2
Date: 2025-05-26
Authors@R: c(
person("Allison", "Vuong", role=c("aut")),
person("Dariusz", "Scigocki", role=c("aut")),
Expand Down Expand Up @@ -36,6 +36,7 @@ Imports:
withr
Suggests:
knitr,
pkgdown,
testthat (>= 3.0.0)
URL: https://github.com/gdrplatform/gDRstyle, https://gdrplatform.github.io/gDRstyle/
BugReports: https://github.com/gdrplatform/gDRstyle/issues
Expand Down
3 changes: 3 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
## gDRstyle 1.7.2 - 2025-05-26
* add check for `pkgdown` in the `checkPackage` function

## gDRstyle 1.7.1 - 2025-04-16
* synchronize Bioconductor and GitHub versioning

Expand Down
11 changes: 11 additions & 0 deletions R/check.R
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ rcmd_check_with_notes <- function(pkgDir,
#' @param run_examples Logical whether examples check should be performed
#' @param skip_lint skip lint checks
#' @param skip_tests skip tests
#' @param skip_pkgdown skip pkgdown build
#' @param build_vignettes build vignettes
#' @param check_vignettes check vignettes
#' @param as_cran run with as_cran flag
Expand All @@ -208,6 +209,7 @@ checkPackage <- function(pkgName,
run_examples = TRUE,
skip_lint = FALSE,
skip_tests = FALSE,
skip_pkgdown = FALSE,
build_vignettes = TRUE,
check_vignettes = TRUE,
as_cran = FALSE) {
Expand Down Expand Up @@ -246,6 +248,15 @@ checkPackage <- function(pkgName,
message("Tests skipped")
}

if (!skip_pkgdown) {
message("Pkgdown")
pkgdown::build_site(
pkg = pkgDir,
override = list(destination = tempfile()),
preview = FALSE
)
}

message("Check")
utils::timestamp()
rcmd_check_with_notes(
Expand Down
3 changes: 3 additions & 0 deletions man/checkPackage.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading