The goal of buggy is to help users understand and address error messages using LLMs. With the tool enabled, errors raised to the user are accompanied by clickable links to “explain” or “fix” the issue. Explanations are printed to the console while fixes implement changes directly; in both cases, the model is supplied context about the files you’re working in and the functions you’re working with.
Installation
You can install the development version of buggy like so:
pak::pak("simonpcouch/buggy")
To enable buggy, call buggy::buggy_enable()
. To always have buggy enabled every time you start R, you could add buggy::buggy_enable()
to your .Rprofile
, perhaps with usethis::edit_r_profile()
.