search_grep: Search Grep.app

search_grepR Documentation

Search Grep.app

Description

The search_grep() function searches all public code on GitHub using grep.app by querying: ⁠https://grep.app/search?q=<query-here>&filter[lang][0]=R⁠

Usage

search_grep(query = geterrmessage(), rlang = TRUE)

Arguments

query

Contents of string to search. Default is the error message.

rlang

Search for results written in R. Default is TRUE

Value

The generated search URL or an empty string.

See Also

Other code repositories: search_bitbucket(), search_github()

Examples

# Search R code on GitHub for numerical optimization
search_grep("optim")

# Search all code on GitHub for numerical optimization
search_grep("optim", rlang = FALSE)

coatless/searcher documentation built on June 2, 2025, 10:37 a.m.