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

Boolean indicating whether to print additional information.

Value

Integer. The number of issues.

Examples

issues_selector <- init_selector(
    source = "Local",
    dataset_dir = system.file("data_issues", package = "IssueTrackeR"),
    dataset_name = NULL
)
my_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(my_issues)
#> [1] 286