R/wrangling_issues.R
extraction-issues.RdExtraction 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[[...]] <- valueAn object of class IssuesTB.
Integer. Indices of the issues to extract.
Optional. Indices or names for column selection.
Boolean. If TRUE, drop IssuesTB structure. Default: TRUE.
Other parameters passed to extraction method
Replacement value. According to the column selected, it can be
a numeric, a character, an integer or a timestamp (POSIXct).
Information inside the IssuesTB object
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"]])