View source: R/RcodeImprovements.R
RcodeImprovements | R Documentation |
This function uses LLM to analyze the R code from the clipboard and suggests improvements. The function can also control the verbosity and speed of the output.
RcodeImprovements(
Summary_nch = 100,
Model = "gpt-4o-mini",
verbose = TRUE,
SlowTone = FALSE
)
Summary_nch |
An integer specifying the maximum number of characters for the summary. Default is 100. |
Model |
A character string specifying the GPT model to be used. Default is "gpt-4o-mini". |
verbose |
A logical value indicating whether to print the result. Default is TRUE. |
SlowTone |
A logical value indicating whether to print the result slowly. Default is FALSE. |
Suggest Improvements for R Code
No return value; the function prints the suggestions for code improvement.
Satoshi Kume
## Not run:
#Copy your function to your clipboard
RcodeImprovements(Summary_nch = 100, Model = "gpt-4o-mini")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.