bench icon indicating copy to clipboard operation
bench copied to clipboard

Support error handling

Open multimeric opened this issue 2 years ago • 0 comments

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.

multimeric avatar Nov 27 '23 06:11 multimeric