Learn R Programming

chatAI4R (version 0.3.6)

convertBullet2Sentence: convertBullet2Sentence

Description

Convert bullet points to sentences using OpenAI GPT model.

Usage

convertBullet2Sentence(
  Model = "gpt-4o-mini",
  temperature = 1,
  verbose = TRUE,
  SpeakJA = FALSE,
  SelectedCode = TRUE
)

Value

Inserts the converted sentences into the RStudio editor if `SelectedCode` is TRUE, otherwise writes to clipboard.

Arguments

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.

Author

Satoshi Kume

Details

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.

Examples

Run this code
if (FALSE) {
# 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)
}

Run the code above in your browser using DataLab