Extraction and replacement of information in issues

# S3 method for class 'IssuesTB'
x[i, j, drop = TRUE]

# S3 method for class 'IssuesTB'
x[...] <- value

# S3 method for class 'IssuesTB'
x[[...]] <- value

Arguments

x

An object of class IssuesTB.

i

Integer. Indices of the issues to extract.

j

Optional. Indices or names for column selection.

drop

Boolean. If TRUE, drop IssuesTB structure. Default: TRUE.

...

Other parameters passed to extraction method

value

Replacement value. According to the column selected, it can be a numeric, a character, an integer or a timestamp (POSIXct).

Value

Information inside the IssuesTB object

Examples

issues_selector <- init_selector(
    source = "Local",
    dataset_dir = system.file("data_issues", package = "IssueTrackeR"),
    dataset_name = NULL
)
open_issues <- get_issues(selector = issues_selector)
#> The issues will be read from /home/runner/work/_temp/Library/IssueTrackeR/data_issues/list_issues.yaml.

first_issue <- open_issues[1, ]
number <- open_issues[1, 1]
state <- open_issues[1, "state"]
open_issues[1, "state"] <- "closed"
open_issues[["number"]] <- seq_along(open_issues[["number"]])