Reputation: 5088
In R I can activate debugging mode through options(error=recover)
. How can I turn it off? I tried options()
and options(NULL)
and options(default=NULL)
but none of them seem to turn of the functionality activated by options(error=recover)
.
Upvotes: 30
Views: 16230
Reputation: 162371
Try this :
options(error=NULL)
To show that it works:
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
Upvotes: 41