powered by
ChatGPT: Document Code (in roxygen2 format)
document_code(code = clipr::read_clip(allow_non_interactive = TRUE))
A character value with the response generated by ChatGPT.
The code to be documented by ChatGPT. If not provided, it will use what's copied on the clipboard.
if (FALSE) { cat(document_code("square_numbers <- function(numbers) numbers ** 2")) }
Run the code above in your browser using DataLab