View source: R/convertBullet2Sentence.R
convertBullet2Sentence | R Documentation |
Convert bullet points to sentences using OpenAI GPT model.
convertBullet2Sentence(
Model = "gpt-4o-mini",
temperature = 1,
verbose = TRUE,
SpeakJA = FALSE,
SelectedCode = TRUE
)
Model |
The OpenAI GPT model to use for text generation. Default is "gpt-4o-mini". |
temperature |
The temperature parameter for text generation. Default is 1. |
verbose |
Logical flag to indicate whether to display progress. Default is TRUE. |
SpeakJA |
Logical flag to indicate whether to use Japanese speech output. Default is FALSE. |
SelectedCode |
Logical flag to indicate whether to use selected text in RStudio. Default is TRUE. |
Convert Bullet Points to Sentences
This function takes bullet points as input and converts them into sentences. The function uses the OpenAI GPT model for text generation to assist in the conversion. The function can either take the selected text from the RStudio environment or from the clipboard.
Inserts the converted sentences into the RStudio editor if 'SelectedCode' is TRUE, otherwise writes to 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
convertBullet2Sentence(Model = "gpt-4o-mini", SelectedCode = FALSE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.