When debugging a function (which has been marked debug using debug("f"), the debugger gives you the Browser prompt which also tells you at what line number in the program you are. If run a couple of test statements at the prompt (to check variables, etc.) the screen scrolls and I no longer know what line number I am at (using SecureCRT so it scrolls past the buffer). The command where only tells you what function you are in. Does anyone know how to get the actual line number and next statement to be executed?

I'm not sure of the mechanics behind it. Why not give it a shot?
–
jbaumsFeb 24 '12 at 6:39

Do you have access to the source? Why not just step through the function by yourself by invoking browser() where you want the function to pause and then just send line by line to R manually.
–
Roman LuštrikFeb 24 '12 at 8:52