Skip to content
Prev 181954 / 398513 Next

'options=utils::recover' not working in .Rprofile or within R

You are wiping out all of the default options with that approach.

Try (after restarting R to get the other options back to what they  
should be):

op=options()                   # so you can reset back to baseline
options(error=utils::recover)  # do not think the "utils::" is needed
  my.func <- function(x){
   y <- x + 12
   nonsense
   y
   }

  my.func(14)
Error in my.func(14) : object "nonsense" not found

Enter a frame number, or 0 to exit

1: my.func(14)

Selection:
On May 30, 2009, at 10:24 PM, Mark Kimpel wrote:

            
Not what the examples look like on my machine.
David Winsemius, MD
Heritage Laboratories
West Hartford, CT