Skip to content

Commit ed9b83d

Browse files
Tidy up, and stop running on every push
1 parent 2844884 commit ed9b83d

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

.github/workflows/R-CMD-check-occasional.yaml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
on:
2-
push:
32
schedule:
43
- cron: '17 13 23 * *' # 23rd of month at 13:17 UTC
54
workflow_dispatch:
@@ -126,14 +125,13 @@ jobs:
126125
127126
has_other_pkg = sapply(other_pkgs, requireNamespace, quietly=TRUE)
128127
run_other = all(has_other_pkg)
129-
if (!run_other) {
130-
message(sprintf("Skipping other.Rraw since some required packages are not available: %s\n", toString(other_pkgs[!has_other_pkg])))
131-
}
132-
message("Will try and set TEST_DATA_TABLE_WITH_OTHER_PACKAGES=", as.character(run_other), " in R CMD check.")
133128
if (run_other) {
134129
desc = read.dcf("DESCRIPTION")
135130
desc[1L, "Suggests"] = toString(unique(c(desc[1, "Suggests"], other_pkgs)))
136131
write.dcf(desc, "DESCRIPTION")
132+
message("Setting TEST_DATA_TABLE_WITH_OTHER_PACKAGES=TRUE to run other.Rraw")
133+
} else {
134+
message(sprintf("Skipping other.Rraw since some required packages are not available: %s\n", toString(other_pkgs[!has_other_pkg])))
137135
}
138136
# IINM rcmdcheck isolates its env from the calling process', besides what's passed to env=
139137
env = c(

0 commit comments

Comments
 (0)