Skip to content

Commit

Permalink
show submission progress
Browse files Browse the repository at this point in the history
  • Loading branch information
yihui committed Aug 16, 2024
1 parent a39e036 commit d45b9c1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: xfun
Type: Package
Title: Supporting Functions for Packages Maintained by 'Yihui Xie'
Version: 0.46.8
Version: 0.46.9
Authors@R: c(
person("Yihui", "Xie", role = c("aut", "cre", "cph"), email = "[email protected]", comment = c(ORCID = "0000-0003-0645-5666")),
person("Wush", "Wu", role = "ctb"),
Expand Down
6 changes: 5 additions & 1 deletion R/revcheck.R
Original file line number Diff line number Diff line change
Expand Up @@ -725,6 +725,7 @@ cloud_check = function(pkgs = NULL, batch_size = 200) {
tgz = pkg_build() # tarball
pkg = gsub('_.*$', '', tgz)
if (length(pkgs) == 0) pkgs = setdiff(call_fun('cran_revdeps', pkg, bioc = TRUE), pkg)
N = length(pkgs)
jobs = broken = NULL
rver = format(getRversion())
check = function() {
Expand All @@ -749,9 +750,12 @@ cloud_check = function(pkgs = NULL, batch_size = 200) {
}
))
pkgs <<- tail(pkgs, -batch_size)
message(N - length(pkgs), '... ', appendLF = FALSE)
}
# if there are more than N revdeps, check the first N of them at one time
# if there are more than batch_size revdeps, submit one batch at one time
message('Checking ', N, ' packages: ', appendLF = FALSE)
while (length(pkgs) > 0) check()
message('All jobs submitted.')
for (job in jobs) {
call_fun('cloud_status', job, update_interval = 300, verbose = TRUE)
}
Expand Down

0 comments on commit d45b9c1

Please sign in to comment.