powered by
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 )
No return value; the function prints the suggestions for code improvement.
An integer specifying the maximum number of characters for the summary. Default is 100.
A character string specifying the GPT model to be used. Default is "gpt-4o-mini".
A logical value indicating whether to print the result. Default is TRUE.
A logical value indicating whether to print the result slowly. Default is FALSE.
Satoshi Kume
Suggest Improvements for R Code
if (FALSE) { #Copy your function to your clipboard RcodeImprovements(Summary_nch = 100, Model = "gpt-4o-mini") }
Run the code above in your browser using DataLab