Debian Codegraph @

man/crandalf_check.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/revcheck.R
3 \name{crandalf_check}
4 \alias{crandalf_check}
5 \alias{crandalf_results}
6 \title{Submit check jobs to crandalf}
7 \usage{
8 crandalf_check(pkg, size = 400, jobs = Inf, which = "all")
9
10 crandalf_results(pkg, repo = NA, limit = 200, wait = 5 * 60)
11 }
12 \arguments{
13 \item{pkg}{The package name of which the reverse dependencies are to be
14 checked.}
15
16 \item{size}{The number of reverse dependencies to be checked in each job.}
17
18 \item{jobs}{The number of jobs to run in GitHub Actions (by default, all jobs
19 are submitted, but you can choose to submit the first few jobs).}
20
21 \item{which}{The type of dependencies (see \code{\link[=rev_check]{rev_check()}}).}
22
23 \item{repo}{The crandalf repo on GitHub (of the form \code{user/repo} such as
24 \code{"yihui/crandalf"}). Usually you do not need to specify it, unless you
25 are not calling this function inside the crandalf project, because
26 \command{gh} should be able to figure out the repo automatically.}
27
28 \item{limit}{The maximum of records for \command{gh run list} to retrieve.
29 You only need a larger number if the check results are very early in the
30 GitHub Action history.}
31
32 \item{wait}{Number of seconds to wait if not all jobs have been completed on
33 GitHub. By default, this function checks the status every 5 minutes until
34 all jobs are completed. Set \code{wait} to 0 to disable waiting (and throw
35 an error immediately when any jobs are not completed).}
36 }
37 \description{
38 Check the reverse dependencies of a package using the crandalf service:
39 \url{https://github.com/yihui/crandalf}. If the number of reverse
40 dependencies is large, they will be split into batches and pushed to crandalf
41 one by one.
42 }
43 \details{
44 Due to the time limit of a single job on GitHub Actions (6 hours), you will
45 have to split the large number of reverse dependencies into batches and check
46 them sequentially on GitHub (at most 5 jobs in parallel). The function
47 \code{crandalf_check()} does this automatically when necessary. It requires
48 the \command{git} command to be available.
49
50 The function \code{crandalf_results()} fetches check results from GitHub
51 after all checks are completed, merge the results, and show a full summary of
52 check results. It requires \code{gh} (GitHub CLI:
53 \url{https://cli.github.com/manual/}) to be installed and you also need to
54 authenticate with your GitHub account beforehand.
55 }