Hil*_*ers 26 debugging r rstudio
我已经使用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
Run Code Online (Sandbox Code Playgroud)
我使用的任何函数都会导致调试模式启动 - 这非常烦人,因为它打开了一个源查看器并让您远离代码.有谁知道如何停止这项功能?如果在"首选项"中的"仅在我的代码包含错误时使用调试模式"复选框中并且未选中,则会发生这种情况.
谢谢!
Mae*_*ler 35
我尝试通过放入options(error = NULL)我的问题来解决这个问题.Rprofile,但这不起作用.
做了什么工作去"调试" - >"On Error"菜单并选择"仅消息".这实际上与设置相同options(error = NULL),但它在重新启动时是持久的.

| 归档时间: |
|
| 查看次数: |
4826 次 |
| 最近记录: |