Number of comments of an Issue or set of issues
get_nbr_comments(x)
# S3 method for class 'IssueTB'
get_nbr_comments(x)
# S3 method for class 'IssuesTB'
get_nbr_comments(x)An integer or an integer vector with the number of comments of the
different issues in x.
all_issues <- get_issues(
source = "local",
dataset_dir = system.file("data_issues", package = "IssueTrackeR"),
dataset_name = "open_issues.yaml"
)
#> Looking into open_issues.yaml ...
#> The issues will be read from /home/runner/work/_temp/Library/IssueTrackeR/data_issues/open_issues.yaml.
get_nbr_comments(all_issues)
#> [1] 0 1 2 0 5 0 4 0 0 4 2 0 0 0 0 0 2 0 1 0 0 0 0 0 4 4 0 0 0 0 3 0 0 0 0 0 8 0
#> [39] 3 4 0 0 1 3 2 2 1 0 2 0 0 1 0 2 0 1 2 0 0 0 2 2 5 0 0 0 0 5 2 4 1 0 0 2 1 2
#> [77] 0 1 0 4 0 0 0 1 0 1 2 1 0 7 2 0 1 1 2 0 5
get_nbr_comments(all_issues[1L, ])
#> [1] 0