Inserts the converted text into the RStudio active document if SelectedCode is TRUE, otherwise writes to the clipboard.
Arguments
Model
The OpenAI GPT model to use for text generation. Default is "gpt-4o-mini".
SelectedCode
Logical flag to indicate whether to read the input from RStudio's active document. Default is TRUE.
Author
Satoshi Kume
Details
Convert to Scientific Literature
This function assists in converting the input text into scientific literature.
It uses the OpenAI GPT model for text generation to assist in the conversion process.
The function reads the input either from the RStudio active document or the clipboard.
if (FALSE) {
# Option 1# Select some text in RStudio and then run the rstudio addins# Option 2# Copy the text into your clipboard then executeconvertScientificLiterature(SelectedCode = FALSE)
}