TextSummaryAsBullet: Summarize Text into Bullet Points
Description
This function takes a text input and summarizes it into a specified number of bullet points.
It can either take the selected code from RStudio or read from the clipboard.
The results are output to your clipboard.
Usage
TextSummaryAsBullet(
Model = "gpt-4o-mini",
temperature = 1,
verbose = TRUE,
SelectedCode = TRUE
)
Value
The summarized text in bullet points is returned.
Arguments
Model
A string specifying the machine learning model to use for text summarization. Default is "gpt-4o-mini".
temperature
A numeric value between 0 and 1 indicating the randomness of the text generation. Default is 1.
verbose
A logical value indicating whether to print the summary. Default is FALSE.
SelectedCode
A logical value indicating whether to use the selected code in RStudio. Default is TRUE.
if (FALSE) {
# Option 1# Select some text in RStudio and then run the rstudio addins# Option 2# Copy the text into your clipboard then executeTextSummaryAsBullet()
}