Learn R Programming

chatAI4R (version 0.3.6)

supportIdeaGeneration: supportIdeaGeneration: Support Idea Generation from Selected Text or Clipboard.

Description

Assist in generating ideas or concepts.

Usage

supportIdeaGeneration(
  Model = "gpt-4o-mini",
  SelectedCode = TRUE,
  verbose = TRUE,
  SlowTone = FALSE
)

Value

Prints the generated ideas or concepts based on the verbosity and tone speed settings.

Arguments

Model

The OpenAI GPT model to use for text generation. Default is "gpt-4o-mini".

SelectedCode

Logical flag to indicate whether to use the selected text in RStudio editor. Default is TRUE.

verbose

Logical flag to indicate whether to display the generated text. Default is TRUE.

SlowTone

Logical flag to indicate whether to print the text slowly. Default is FALSE.

Author

Satoshi Kume

Details

Support Idea Generation from Selected Text or Clipboard Input

This feature helps you generate ideas or concepts based on input from your selected text or clipboard. It uses the OpenAI GPT model for text generation to assist in the idea generation process. The function reads the input 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
supportIdeaGeneration()
}

Run the code above in your browser using DataLab