From p.dalgaard at biostat.ku.dk  Fri Mar 12 19:50:13 2004
From: p.dalgaard at biostat.ku.dk (Peter Dalgaard)
Date: Fri Mar 12 19:50:12 2004
Subject: [Rd] Re: [R] No traceback available when using try(...) (PR#6667)
In-Reply-To: <20040312140809.451F3EFC4@slim.kubism.ku.dk>
References: <20040312140809.451F3EFC4@slim.kubism.ku.dk>
Message-ID: <x2u10tvr16.fsf@biostat.ku.dk>

dmurdoch@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@biostat.ku.dk)             FAX: (+45) 35327907


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