|
1 | 1 | on: |
2 | 2 | schedule: |
3 | | - - cron: '17 13 19 * *' # 18th of month at 13:17 UTC |
| 3 | + - cron: '17 13 21 * *' # 18th of month at 13:17 UTC |
4 | 4 |
|
5 | 5 | # A more complete suite of checks to run monthly; each PR/merge need not pass all these, but they should pass before CRAN release |
6 | 6 | name: R-CMD-check-occasional |
@@ -135,12 +135,15 @@ jobs: |
135 | 135 | Sys.unsetenv("TEST_DATA_TABLE_WITH_OTHER_PACKAGES") |
136 | 136 | } |
137 | 137 |
|
138 | | - args <- c("--no-manual", "--as-cran") |
| 138 | + do_vignettes <- requireNamespace("knitr", quietly=TRUE) |
| 139 | +
|
| 140 | + vignette_args <- if (!do_vignettes) "--no-build-vignettes" |
| 141 | + args <- c("--no-manual", "--as-cran", vignette_args) |
139 | 142 | if (requireNamespace("rcmdcheck", quietly=TRUE)) { |
140 | 143 | rcmdcheck::rcmdcheck(args = args, error_on = "warning", check_dir = "check") |
141 | 144 | } else { |
142 | 145 | Rbin = if (.Platform$OS.type == "windows") "R.exe" else "R" |
143 | | - system2(Rbin, c("CMD", "build", ".")) |
| 146 | + system2(Rbin, c("CMD", "build", ".", vignette_args)) |
144 | 147 | dt_tar <- list.files(pattern = "^data[.]table_.*[.]tar[.]gz$") |
145 | 148 | if (!length(dt_tar)) stop("Built tar.gz not found among: ", toString(list.files())) |
146 | 149 | res = system2(Rbin, c("CMD", "check", dt_tar[1L], args), stdout=TRUE) |
|
0 commit comments