@@ -17,10 +17,12 @@ The goal of `searcher` is to provide a search interface directly inside
1717of * R* . For example, to look up ` rcpp example numeric vector ` or
1818` ggplot2 fix axis labels ` call one of the ` search_*() ` functions to
1919automatically have a web browser open, go to a search site, and type the
20- query. ` searcher ` also provides direct integration with AI assistants,
21- allowing you to send queries to ChatGPT, Claude, and other AI services
22- with R-optimized prompts. By default, the search functions will attempt
23- to search the last error on call if no query is specified.
20+ query. ` searcher ` also provides direct integration with AI assistants
21+ through ` ask_*() ` functions, allowing you to send queries to ChatGPT,
22+ Claude, and other AI services with R-optimized prompts.
23+
24+ By default, the search and ask functions will attempt to search the last
25+ error on call if no query is specified.
2426
2527<figure >
2628<img src="https://i.imgur.com/Zq2rg6G.gif "
@@ -125,9 +127,15 @@ search_bitbucket("assertions", rlang = FALSE) # or search_bb(...)
125127## AI Assistants
126128
127129The package also provides functions to query AI assistants directly from
128- R. These functions open a browser with your query pre-filled, using
129- customizable prompts that help the AI give more effective responses for
130- R programming:
130+ R. The following AI Assistant platforms are supported: OpenAI’s
131+ [ ChatGPT] ( https://chatgpt.com/ ) , Anthropic’s
132+ [ Claude] ( https://claude.ai/ ) , [ Perplexity] ( https://www.perplexity.ai/ ) ,
133+ Microsoft (Bing)’s [ Copilot] ( https://copilot.microsoft.com/ ) , Mistral’s
134+ [ le Chat] ( https://chat.mistral.ai/chat ) , xAI’s
135+ [ Grok] ( https://grok.com/ ) , and [ Meta.ai] ( https://www.meta.ai/ ) . These
136+ functions open a browser with your query pre-filled, using customizable
137+ prompts that help the AI give more effective responses for R
138+ programming:
131139
132140``` r
133141# Get coding help from AI assistants
@@ -136,6 +144,7 @@ ask_claude("Explain what purrr::map_df does")
136144ask_perplexity(" Compare dplyr vs data.table performance" )
137145ask_mistral(" How to handle missing data in R?" )
138146ask_bing_copilot(" Write a function to calculate the median" )
147+ ask_grok(" What is better base R or tidyverse for research?" )
139148ask_meta_ai(" What are the best R packages for time series analysis?" )
140149
141150# Search with an error message
0 commit comments