addRoxygenDescription {chatAI4R} | R Documentation |
Add Roxygen Description to R Function
Description
This function adds a Roxygen description to an R function using the GPT-4 model. It can either take the selected code from RStudio or read from the clipboard.
Usage
addRoxygenDescription(
Model = "gpt-4-0613",
SelectedCode = TRUE,
verbose = TRUE
)
Arguments
Model |
A character string specifying the GPT model to be used. Default is "gpt-4-0613". |
SelectedCode |
A logical value indicating whether to use the selected code in RStudio. Default is TRUE. |
verbose |
Logical flag to indicate whether to display the generated text. Default is TRUE. |
Details
Add Roxygen Description to R Function
Value
A message indicating completion if 'SelectedCode' is TRUE, otherwise the Roxygen-annotated code is copied to the clipboard.
Author(s)
Satoshi Kume
Examples
## Not run:
addRoxygenDescription(Model = "gpt-4-0613", SelectedCode = TRUE)
## End(Not run)
[Package chatAI4R version 0.2.10 Index]