[R] No traceback available when using try(...)
Duncan Murdoch
dmurdoch at pair.com
Fri Mar 12 15:07:20 CET 2004
On Fri, 12 Mar 2004 12:28:48 +0100, Edouard DUCHESNAY
<duchesnay at shfj.cea.fr> wrote :
>> > 1. The Situation :
>> > ------------------------
>> > The stack traceback is not available when error ouccured in a try(....)
>>
>> It's a bug in 1.8.1. It has been fixed.
>>
>> -thomas
>I have patched R (Version 1.8.1 Patched (2004-03-11)) and It stills not working.
>- R was compiled without any option (only a --prefix=)
>- I use a Linux RedHat 9
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
Duncan Murdoch
More information about the R-help
mailing list