complete_code: ChatGPT: Complete Code

View source: R/complete_code.R

complete_codeR Documentation

ChatGPT: Complete Code

Description

ChatGPT: Complete Code

Usage

complete_code(code = clipr::read_clip(allow_non_interactive = TRUE))

Arguments

code

The code to be completed by ChatGPT. If not provided, it will use what's copied on the clipboard.

Value

A character value with the response generated by ChatGPT.

Examples

## Not run: 
cat(complete_code("# A function to square each element of a vector\nsquare_each <- function("))

## End(Not run)


chatgpt documentation built on May 31, 2023, 6:54 p.m.