proofreadText {chatAI4R}R Documentation

proofreadText

Description

Proofreads text during the development of an R package.

Usage

proofreadText(Model = "gpt-4-0613", SelectedCode = TRUE, verbose = TRUE)

Arguments

Model

The Large Language Model to be used for proofreading. Default is "gpt-4-0613".

SelectedCode

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

verbose

Logical flag to print the progress. Default is TRUE.

Details

Proofread Text During R Package Development Through the RStudio API

This function offers a feature for proofreading text while developing an R package. It can either use the text selected in the RStudio editor or read from the clipboard, perform the proofreading, and then either replace the selected text or return the result to the user's clipboard. The language of the output will match the language of the input text. Using GPT-4 for execution is recommended.

Value

NULL if 'SelectedCode' is TRUE, otherwise returns the proofread text to the clipboard.

Author(s)

Satoshi Kume

Examples

## Not run: 
# Proofread text from clipboard
proofreadText(SelectedCode = FALSE)

## End(Not run)

[Package chatAI4R version 0.2.10 Index]