[Rd] Re: [R] No traceback available when using try(...) (PR#6667)

Peter Dalgaard p.dalgaard at biostat.ku.dk
Fri Mar 12 19:50:13 MET 2004


dmurdoch at pair.com writes:

> Edouard is right, I still see the error in a current 1.9.0 alpha
> build:
> 
> > 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()
> No traceback available

Now that's odd:

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

and that's with an alpha version from this Tuesday:

R : Copyright 2004, The R Foundation for Statistical Computing
Version 1.9.0 alpha (2004-03-08), ISBN 3-900051-00-3

did we accidentally revert something or what's up?

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907



More information about the R-devel mailing list