complete_code {chatgpt} | R Documentation |
ChatGPT: Complete Code
complete_code(code = clipr::read_clip(allow_non_interactive = TRUE))
code |
The code to be completed by ChatGPT. If not provided, it will use what's copied on the clipboard. |
A character value with the response generated by ChatGPT.
## Not run:
cat(complete_code("# A function to square each element of a vector\nsquare_each <- function("))
## End(Not run)