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

Support error handling #139

Open
multimeric opened this issue Nov 27, 2023 · 0 comments
Open

Support error handling #139

multimeric opened this issue Nov 27, 2023 · 0 comments

Comments

@multimeric
Copy link

multimeric commented Nov 27, 2023

One feature that I find myself often wanting in bench is the ability to run benchmarks that may fail.

It's actually not trivial to implement this in the current framework, because handling errors would involve returning the error objects which would fail the equality check. Then if you ever set check=FALSE then results are not captured at all.

What I would love to see is automatic error handling, whereby any error is caught by bench, and added to a new column called errors, which might be a list of error objects, which are NULL if the expression succeeded. Then the result column can work as normal.

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