如何在控制台窗口中保留 R 浏览器()模式?

我之前试图使用 browser()命令进行调试。

现在,我在控制台输入窗口中不断看到以下内容:

Browse[13]>

有没有可能摆脱这种情况,回到正常的控制台窗口?

85002 次浏览

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.

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.

Turn off global debugging

debuggingState(on=FALSE)