Thomas Lumley <[EMAIL PROTECTED]> writes:

> On Fri, 12 Mar 2004, Roger D. Peng wrote:
> 
> > Funny, it works for me on R-patched
> >
> >  > f <- function(a) { return(log(a)) }
> >  > f("A")
> > Error in log(x) : Non-numeric argument to mathematical function
> >  > traceback()
> > 2: log(a)
> > 1: f("A")
> >  > try(f("A"))
> > Error in log(x) : Non-numeric argument to mathematical function
> >  > traceback()
> > 2: log(a)
> > 1: f("A")
> >
> 
> No, it doesn't.  The second traceback() call is printing the *previous*
> trace information, which in this case is the same.

Right, same thing here.
 
> The bug in 1.8.1, which *is* fixed, is that you didn't get traceback
> information anywhere, rather than not getting it with try()

(Is is obvious that you *should* get a traceback from inside try()?)

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - ([EMAIL PROTECTED])             FAX: (+45) 35327907

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to