【发布时间】:2015-05-15 03:28:22
【问题描述】:
我已经使用 RStudio 多年了,这在我之前从未发生过。出于某种原因,每次函数抛出错误时,RStudio 都会进入调试模式(我不希望这样)。即使在单个函数上使用了 undebug()。
> undebug(http.get)
Warning message:
In undebug(fun) : argument is not being debugged
> x = http.get(country = 'KE')
http --timeout=60 get "http://foo@bar.com/observation?country=KE" > freshobs.json </dev/null
Error in fromJSON(file = "freshobs.json") : unexpected character 'O'
Error in el[["product_name"]] : subscript out of bounds
Called from: grepl(el[["product_name"]], pattern = "json:", fixed = T)
Browse[1]> Q
我使用的任何中断功能都会导致调试模式启动 - 这很烦人,因为它会打开源代码查看器并让您远离代码。有人知道如何停止此功能吗? 当首选项中的“仅当我的代码包含错误时使用调试模式”复选框被选中和未被选中时,就会发生这种情况。
谢谢!
【问题讨论】: