50% off | Unlimited Data & AI Learning
Get 50% off unlimited learning

chatgpt (version 0.2.3)

find_issues_in_code: ChatGPT: Find Issues in Code

Description

ChatGPT: Find Issues in Code

Usage

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

Value

A character value with the response generated by ChatGPT.

Arguments

code

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

Examples

Run this code
if (FALSE) {
cat(find_issues_in_code("i <- 0\nwhile (i < 0) {\n  i <- i - 1\n}"))
}

Run the code above in your browser using DataLab