View source: R/convertScientificLiterature.R
convertScientificLiterature | R Documentation |
Convert input text into scientific literature.
convertScientificLiterature(Model = "gpt-4o-mini", SelectedCode = TRUE)
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. |
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.
Inserts the converted text into the RStudio active document if SelectedCode is TRUE, otherwise writes to the clipboard.
Satoshi Kume
## Not run:
# Option 1
# Select some text in RStudio and then run the rstudio addins
# Option 2
# Copy the text into your clipboard then execute
convertScientificLiterature(SelectedCode = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.