在RI中可以通过激活调试模式options(error=recover).我怎么能把它关掉?我试着options()和options(NULL)和options(default=NULL),但他们都不把通过激活功能options(error=recover).
Jos*_*ien 27
试试这个 :
options(error=NULL)
Run Code Online (Sandbox Code Playgroud)
为了表明它的工作原理:
options(error=recover)
rnorm("k")
# Error in rnorm("k") : invalid arguments
# In addition: Warning message:
# In rnorm("k") : NAs introduced by coercion
#
# Enter a frame number, or 0 to exit
#
# 1: rnorm("k")
#
Selection: 0
options(error=NULL)
rnorm("k")
# Error in rnorm("k") : invalid arguments
# In addition: Warning message:
# In rnorm("k") : NAs introduced by coercion
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
8515 次 |
| 最近记录: |