Learn R Programming

chatAI4R (version 0.3.6)

convertScientificLiterature: convertScientificLiterature

Description

Convert input text into scientific literature.

Usage

convertScientificLiterature(Model = "gpt-4o-mini", SelectedCode = TRUE)

Value

Inserts the converted text into the RStudio active document if SelectedCode is TRUE, otherwise writes to the clipboard.

Arguments

Model

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

SelectedCode

Logical flag to indicate whether to read the input from RStudio's active document. Default is TRUE.

Author

Satoshi Kume

Details

Convert to Scientific Literature

This function assists in converting the input text into scientific literature. It uses the OpenAI GPT model for text generation to assist in the conversion process. The function reads the input either from the RStudio active document or 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
convertScientificLiterature(SelectedCode = FALSE)
}

Run the code above in your browser using DataLab