powered by
ChatGPT: Explain Code
explain_code(code = clipr::read_clip(allow_non_interactive = TRUE))
A character value with the response generated by ChatGPT.
The code to be explained by ChatGPT. If not provided, it will use what's copied on the clipboard.
if (FALSE) { cat(explain_code("for (i in 1:10) {\n print(i ** 2)\n}")) }
Run the code above in your browser using DataLab