| goose_explain_error | R Documentation |
Get AI-powered explanation and solution for R errors.
goose_explain_error(error = NULL, code = NULL, context = NULL)
error |
The error object or error message |
code |
Optional code that caused the error |
context |
Optional context about what you were trying to do |
List with explanation and suggested solutions
## Not run:
# Explain last error
tryCatch({
data.frame(x = 1:3, y = 1:4)
}, error = function(e) {
explanation <- goose_explain_error(e)
print(explanation)
})
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.