I just debugged a ‘non-numeric argument error’ being thrown by this beastie in under 5 minutes with #rstats’ options(error = recover).
A strength of recover over other methods for stuff like this is that all 4(!) loop indices will be set to the values they were on failure. Chef’s kiss
IMHO, contrary to Jenny Bryan’s ranking in her incredible object of type closure is not subsettable talk, this makes recover the apex R debugging method.
Error turned about to be from line 12 due to sticky
sf geometry btw. 🥳
edit: I accidentally wrote
recover = TRUE when I first posted this, a typo I often make due to wishful thinking perhaps.