Last active
January 7, 2021 01:59
-
-
Save krlmlr/33ec72d196b1542b9c4f9497d981de49 to your computer and use it in GitHub Desktop.
Pretty stack traces in R
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Add this to your .Rprofile | |
options( | |
error = quote(rlang::entrace()), | |
rlang__backtrace_on_error = "collapse" # or "branch" or "full" | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi Kirill, this is fantastic!
I'd like to demo this to my team, but I'm having trouble having the trace show in a
reprex
... likely the errorHandlers are intercepted somewhere withinreprex
differently than in the console. Any ideas?