Skip to content

Commit bbe7563

Browse files
Combine deps install step (#6260)
* Combine deps install step * try again tomorrow
1 parent b9f0211 commit bbe7563

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

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

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
on:
22
schedule:
3-
- cron: '17 13 13 * *' # 13th of month at 13:17 UTC
3+
- cron: '17 13 14 * *' # 14th of month at 13:17 UTC
44

55
# A more complete suite of checks to run monthly; each PR/merge need not pass all these, but they should pass before CRAN release
66
name: R-CMD-check-occasional
@@ -42,7 +42,6 @@ jobs:
4242
r: '4.1'
4343

4444
env:
45-
R_LIBS_USER: /home/runner/work/r-lib
4645
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
4746
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
4847

@@ -95,16 +94,6 @@ jobs:
9594
eval sudo $cmd
9695
done < <(Rscript -e 'writeLines(remotes::system_requirements("ubuntu", "20.04"))')
9796
98-
- name: Install dependencies
99-
run: |
100-
remotes::install_deps(dependencies=TRUE, force=TRUE)
101-
other_deps_expr = parse('inst/tests/other.Rraw', n=1L)
102-
eval(other_deps_expr)
103-
pkgs <- get(as.character(other_deps_expr[[1L]][[2L]]))
104-
# May not install on oldest R versions
105-
try(remotes::install_cran(c(pkgs, "rcmdcheck"), force=TRUE))
106-
shell: Rscript {0}
107-
10897
- name: Check
10998
env:
11099
# several Suggests dependencies have R dependencies more recent than ours
@@ -114,22 +103,26 @@ jobs:
114103
run: |
115104
options(crayon.enabled = TRUE)
116105
106+
remotes::install_deps(dependencies=TRUE, force=TRUE)
107+
other_deps_expr = parse('inst/tests/other.Rraw', n=1L)
108+
eval(other_deps_expr)
109+
pkgs <- get(as.character(other_deps_expr[[1L]][[2L]]))
110+
# Many will not install on oldest R versions
111+
try(remotes::install_cran(c(pkgs, "rcmdcheck"), force=TRUE))
112+
117113
# we define this in data.table namespace, but it appears to be exec
118114
if (!exists("isFALSE", "package:base")) {
119115
if (!exists("isFALSE", asNamespace("data.table"))) {
120-
cat("isFALSE not found in base, but data.table did not define it either!\n")
116+
message("isFALSE not found in base, but data.table did not define it either!\n")
121117
}
122118
# attempt defining it here as a workaround...
123119
isFALSE = function(x) is.logical(x) && length(x) == 1L && !is.na(x) && !x
124120
}
125121
126-
other_deps_expr = parse('inst/tests/other.Rraw', n=1L)
127-
eval(other_deps_expr)
128-
pkgs = get(as.character(other_deps_expr[[1L]][[2L]]))
129122
has_pkg = sapply(pkgs, requireNamespace, quietly=TRUE)
130123
run_other = all(has_pkg)
131124
if (!run_other) {
132-
cat(sprintf("Skipping other.Rraw since some required packages are not available: %s\n", toString(pkgs[!has_pkg])))
125+
message(sprintf("Skipping other.Rraw since some required packages are not available: %s\n", toString(pkgs[!has_pkg])))
133126
}
134127
Sys.setenv(TEST_DATA_TABLE_WITH_OTHER_PACKAGES=as.character(run_other))
135128

0 commit comments

Comments
 (0)