Generic function to search for a given text pattern in the title, body, or comments of a GitHub Issue object or a collection of Issues.

with_text(x, ...)

# S3 method for class 'IssuesTB'
with_text(x, ..., in_title = TRUE, in_body = TRUE, in_comments = TRUE)

Arguments

x

An object of class IssueTB (a single issue) or IssuesTB (a data.frame or tibble of issues).

...

Additional arguments passed to grepl(), such as pattern and ignore.case.

Value

A logical value (TRUE/FALSE) if x is a single issue, or a logical vector for multiple issues.

Examples

all_issues <- get_issues(
    source = "local",
    dataset_dir = system.file("data_issues", package = "IssueTrackeR"),
    dataset_name = "list_issues.yaml"
)
#> Looking into list_issues.yaml ...
#> The issues will be read from /home/runner/work/_temp/Library/IssueTrackeR/data_issues/list_issues.yaml.
with_text(all_issues, pattern = "Excel")
#> There are 2 issues. 
#> 
#> 
#> ── Issue jdemetra/jdplus-main#236 ──
#> 
#> Title: Fix drag&drop from Excel
#> Text:
#> 
#> 
#> ── Issue jdemetra/jdplus-main#112 ──
#> 
#> Title: JWSACruncher and parameters `fullseriesname` and `refreshall`
#> Text:
#> I tried the following parameters files an a workspace with data created by an Excel file and it has no effect. Are the parameters `fullseriesname` and `refreshall` suppose to work in the JWSACruncher? Am I doing something wrong?

#> ```

#> <?xml version="1.0" encoding="UTF-8" standalone="yes"?>

#> <wsaConfig bundle="10000" cs
#> ...
#>