Learn R Programming

chatAI4R (version 0.3.6)

createSpecifications4R: Create Specifications for R Function

Description

This function generates specifications for an R function from your selected text or clipboard. It takes in a text input, model name, verbosity, and tone speed to generate the specifications.

Usage

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

Value

The function prints the generated specifications to the console.

Arguments

Model

A character string specifying the GPT model to be used. Default is "gpt-4o-mini".

SelectedCode

A logical flag to indicate whether to read from RStudio's selected text. Default is TRUE.

verbose

A logical value indicating whether to print the output. Default is TRUE.

SlowTone

A logical value indicating whether to print the output slowly. Default is FALSE.

Author

Satoshi Kume

Details

Create Specifications for R Function

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
createSpecifications4R(input = "Your R function specification")
}

Run the code above in your browser using DataLab