How to interactively examine any R code - 4 ways to not just read the code, but delve into it step-by-step - Jozef's Rblog
In this post, we provide tips on how to interactively debug R code step-by-step and investigate the values of objects in the middle of function execution. We will look at doing this for both exported and non-exported functions from different packages.