View source: R/searchFunction.R
searchFunction | R Documentation |
Searches for an R function related to the provided text either through the RStudio editor selection or clipboard.
searchFunction(
Summary_nch = 100,
Model = "gpt-4o-mini",
SelectedCode = TRUE,
verbose = TRUE,
SlowTone = FALSE
)
Summary_nch |
Numeric, number of characters to limit the function description (default = 100). |
Model |
String, the model used for the search, default is "gpt-4o-mini". |
SelectedCode |
Logical, whether to get text from RStudio selection (default = TRUE). |
verbose |
Logical, whether to print the results verbosely (default = TRUE). |
SlowTone |
Logical, whether to slow down the print speed for readability (default = FALSE). |
Search the R function based on the provided text
This function searches for an R function that corresponds to the text provided either through the RStudio editor selection or the clipboard. It fetches the related R function and outputs its name, package, and a brief description. The function uses GPT-4 for its underlying search.
Console output of the identified R function, its package, and a brief description.
Satoshi Kume
## Not run:
# To search for an R function related to "linear regression"
searchFunction(Summary_nch = 50, SelectedCode = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.