Skip to content
/ chad Public

CHat Assisted Debugging (CHAD)

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
Notifications You must be signed in to change notification settings

n8layman/chad

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

38 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The CHatGPT Assisted Debugging (CHAD) package is an attempt to make debugging in R more user-friendly. It works by submitting error and stack trace messages to OpenAI to provide human-readable error interpretation, context, and debugging advice. It depends on the cli, rlang, jsonlite and OpenAI packages as well as an active OpenAI API key.

To install the package run:

library(devtools)
install_github("n8layman/chad")

To use:

  1. Add your OpenAI API key to the global environment using Sys.setenv(OPENAI_API_KEY = "sk-xxxx") where "sk-xxx" is your OpenAI API key.
  2. Run rlang::global_entrace() before running the code that you suspect will generate an error.
  3. After encountering an error run explain_last_error(). The ChatGPT enhanced error will be displayed as a message and returned invisibly for manual printing.

About

CHat Assisted Debugging (CHAD)

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages