How to leave the R browser() mode in the console window?

RDebugging

R 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)

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser1769197View Question on Stackoverflow
Solution 1 - RGreg SnowView Answer on Stackoverflow
Solution 2 - RMAecView Answer on Stackoverflow
Solution 3 - RmlworkerView Answer on Stackoverflow