daroczig / logger

A lightweight, modern and flexible, log4j and futile.logger inspired logging utility for R
https://daroczig.github.io/logger
Other
288 stars 42 forks source link

Use rlang for error wrapping, if available #204

Open hadley opened 2 months ago

hadley commented 2 months ago

This includes some general improvements to the erorr handling, e.g. using conditionMessage() instead of $message and withCallingHandlers() instead of tryCatch().

I also made the hint conditional, since I've seen it a couple of times when it wasn't appropriate, and it's better not to send the user off chasing a red herring.