convertBullet2Sentence: convertBullet2Sentence

View source: R/convertBullet2Sentence.R

convertBullet2SentenceR Documentation

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
)

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.

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.

Value

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

Author(s)

Satoshi Kume

Examples

## 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)

chatAI4R documentation built on April 4, 2025, 1:06 a.m.