Jonathan Carroll leaves breadcrumbs:
Print debugging has its place. Sure, it’s not always the best way to debug something, but it can often be the fastest. In this post I describe a useful way to do this in Rust and how we can get similar behaviour in R.
Read on to see how the dbg!
macro works in Rust and how to emulate it in R, both by hand and using a library called icecream
. H/T R-Bloggers.