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(...)

Arguments

x

An object of class IssuesTB.

...

Currently not used.

verbose

A boolean indicating whether to print additional information. Default is TRUE.

Value

Integer. The number of issues.

Examples

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