Skip to content

Commit 6c17ed0

Browse files
Gemini: --as-cran always does the sandbox thing, so edit DESCRIPTION instead
1 parent 4f683dd commit 6c17ed0

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

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

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,6 @@ jobs:
8686
_R_CHECK_FORCE_SUGGESTS_: false
8787
_R_CHECK_CRAN_INCOMING_REMOTE_: false
8888
_R_CHECK_TESTS_NLINES_: 0
89-
_R_CHECK_DEPENDS_ONLY_: false
9089
run: |
9190
options(crayon.enabled = TRUE)
9291
message("*** Using the following repos for installation ***")
@@ -108,10 +107,14 @@ jobs:
108107
message(sprintf("Skipping other.Rraw since some required packages are not available: %s\n", toString(other_pkgs[!has_other_pkg])))
109108
}
110109
message("Will try and set TEST_DATA_TABLE_WITH_OTHER_PACKAGES=", as.character(run_other), " in R CMD check.")
110+
if (run_other) {
111+
desc = read.dcf("DESCRIPTION")
112+
desc[1, "Suggests"] = paste(c(desc[1, "Suggests"], other_pkgs), collapse = ", ")
113+
write.dcf(desc, "DESCRIPTION")
114+
}
111115
# IINM rcmdcheck isolates its env from the calling process', besides what's passed to env=
112116
env = c(
113-
TEST_DATA_TABLE_WITH_OTHER_PACKAGES=as.character(run_other),
114-
`_R_CHECK_DEPENDS_ONLY_`="false"
117+
TEST_DATA_TABLE_WITH_OTHER_PACKAGES=as.character(run_other)
115118
)
116119
117120
do_vignettes = requireNamespace("litedown", quietly=TRUE)

0 commit comments

Comments
 (0)