Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Turning off the options() debugging mode in R

Tags:

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).

like image 853
histelheim Avatar asked May 29 '13 21:05

histelheim


1 Answers

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 
like image 199
Josh O'Brien Avatar answered Sep 20 '22 16:09

Josh O'Brien