Generic function to count the number of issues in a list of issues.
count_issues(x, ...)
# S3 method for class 'IssuesTB'
count_issues(x, verbose = TRUE, ...)
# Default S3 method
count_issues(...)Integer. The number of issues.
issues_selector <- init_selector(
source = "Local",
file = file.path(
system.file("data_issues", package = "IssueTrackeR"),
"list_issues.yaml"
)
)
all_issues <- get_issues(selector = issues_selector)
#> The issues will be read from /home/runner/work/_temp/Library/IssueTrackeR/data_issues/list_issues.yaml.
count_issues(all_issues)
#> [1] 286