How to leave the R browser() mode in the console window?
RDebuggingR Problem Overview
I was trying to use the browser()
command to debug earlier.
Right now, I kept getting the following in the console input window:
Browse[13]>
Is it possible to get out of this situation and just get back to the normal console window?
R Solutions
Solution 1 - R
The help page ?browser
says that typing c
and hitting enter will get you out of the browser and let the function continue to run or typing Q
and hitting enter will exit the browser and the function and take you back to the top-level prompt.
Solution 2 - R
You will actually need to first enter f press enter and then enter Q. The order is finish and then quit. Otherwise you might not leave the browsing.
Solution 3 - R
Turn off global debugging
debuggingState(on=FALSE)