rpeng@jhsph.edu
2004-Mar-12 17:45 UTC
[Rd] Re: [R] No traceback available when using try(...) (PR#6668)
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") This is on > version _ platform i686-pc-linux-gnu arch i686 os linux-gnu system i686, linux-gnu status Patched major 1 minor 8.1 year 2004 month 02 day 26 language R -roger Duncan Murdoch wrote:> On Fri, 12 Mar 2004 12:28:48 +0100, Edouard DUCHESNAY > <duchesnay@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 > > ______________________________________________ > R-help@stat.math.ethz.ch 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 >
Possibly Parallel Threads
- Re: [R] No traceback available when using try(...) (PR#6667)
- No traceback available when using try(...)
- [Bug 379] difficult to find the openssh code signing key on openssh.org.
- Re: [R] No traceback available when using try(...) (PR#6669)
- Re: [PATCH nbdkit] python: Try harder to print the full traceback on error.