Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

act on last error #37

Open
moodymudskipper opened this issue Nov 2, 2022 · 0 comments
Open

act on last error #37

moodymudskipper opened this issue Nov 2, 2022 · 0 comments

Comments

@moodymudskipper
Copy link
Owner

Get info on last error using :

geterrmessage()
.traceback()
rlang::last_error() # when relevant

Set an active binding to e that will create a list of actions relevant to error.

These might be suggestions to fix, calls to rstudioapi to go at the right place in the right script, suggestions for good practice, filter the call stack to show only the relevant error, add test for this behaviour (creating a reprex at the chosen level from the inputs), suggestions on typos or common mistakes (e.g. if (length(x ==1))...), with action to fix automatically.

unlike fcuk we don't use options(error=) so we don't conflict with any package.

rules can be defined a bit like in tricks, in fact this could be part of {tricks}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant