View source: R/search-functions.R
search_site | R Documentation |
Creates an appropriate query string for a search engine and then opens up the resulting page in a web browser.
search_site(
query,
site = c("google", "bing", "duckduckgo", "ddg", "startpage", "sp", "qwant", "rseek",
"brave", "kagi", "posit community", "posit", "twitter", "x", "bluesky", "mastodon",
"stackoverflow", "so", "github", "gh", "grep", "bitbucket", "bb", "chatgpt",
"claude", "perplexity", "mistral", "bing copilot", "copilot", "grok", "meta ai",
"meta"),
rlang = TRUE,
prompt = NULL
)
query |
Contents of string to search. Default is the error message. |
site |
Name of site to search on. Supported options:
|
rlang |
Search for results written in R. Default is |
prompt |
Optional prompt prefix to add before your query to guide how the AI
responds. If |
The generated search URL or an empty string.
# Search in a generic way
search_site("r-project", "google")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.