search_stackoverflow: Search StackOverflow

search_stackoverflowR Documentation

Search StackOverflow

Description

The search_stackoverflow() and search_so() functions both search StackOverflow using: ⁠https://stackoverflow.com/search?q=\%5Br\%5D+<query>⁠

Usage

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

search_so(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

Details

For additional details regarding StackOverflow's search interface please see:

https://stackoverflow.com/help/searching

Value

The generated search URL or an empty string.

See Also

Other community sites: search_bluesky(), search_mastodon(), search_posit_community(), search_twitter()

Examples

# Search StackOverflow for Convolutions in the r tag
search_stackoverflow("convolutions")

# Search all languages on StackOverflow for convolutions
search_stackoverflow("convolutions", rlang = FALSE)

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