Learn R Programming

IssueTrackeR (version 1.3.0)

with_text: Check for text in GitHub Issues

Description

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.

Usage

with_text(x, ...)

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

Value

An object IssuesTB with issues that satisfy the condition.

Arguments

x

An object of class IssuesTB.

...

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

in_title

Boolean. Does the function search for text in the title? (Default TRUE)

in_body

Boolean. Does the function search for text in the body? (Default TRUE)

in_comments

Boolean. Does the function search for text in the comments? (Default TRUE)

Examples

Run this code
all_issues <- get_issues(
    source = "local",
    dataset_dir = system.file("data_issues", package = "IssueTrackeR"),
    dataset_name = "open_issues.yaml"
)
with_text(all_issues, pattern = "Excel")

Run the code above in your browser using DataLab