Can R Studio show me which line number in my code was called last when an error occurs?

Can you provide sample code that replicates this issue? (FAQ: What's a reproducible example (`reprex`) and how do I do one?). The RStudio IDE team would like to know if this is a bug, but need more info to replicate and diagnose the issue.