Re: [R] How to catch warnings

2010-11-18 Thread Alaios
. Best REgards Alex --- On Thu, 11/18/10, Michael Bedward michael.bedw...@gmail.com wrote: From: Michael Bedward michael.bedw...@gmail.com Subject: Re: [R] How to catch warnings To: Alaios ala...@yahoo.com Cc: Rhelp r-help@r-project.org Date: Thursday, November 18, 2010, 1:26 AM Hi Alex, Something

Re: [R] How to catch warnings

2010-11-18 Thread Michael Bedward
...@gmail.com wrote: From: Michael Bedward michael.bedw...@gmail.com Subject: Re: [R] How to catch warnings To: Alaios ala...@yahoo.com Cc: Rhelp r-help@r-project.org Date: Thursday, November 18, 2010, 1:26 AM Hi Alex, Something like this ? x - 1:4 y - list(good=2:5, bad=3:5) for (yy in y

Re: [R] How to catch warnings

2010-11-18 Thread Michael Bedward
commands in console to check what was going on. Is that possible? Regards Alex --- On Thu, 11/18/10, Michael Bedward michael.bedw...@gmail.com wrote: From: Michael Bedward michael.bedw...@gmail.com Subject: Re: [R] How to catch warnings To: Alaios ala...@yahoo.com Cc: Rhelp r-help@r

Re: [R] How to catch warnings

2010-11-18 Thread Rainer M Krug
/10, Michael Bedward michael.bedw...@gmail.com wrote: From: Michael Bedward michael.bedw...@gmail.com Subject: Re: [R] How to catch warnings To: Alaios ala...@yahoo.com Cc: Rhelp r-help@r-project.org Date: Thursday, November 18, 2010, 1:26 AM Hi Alex, Something like this ? x - 1:4

Re: [R] How to catch warnings

2010-11-18 Thread Alaios
...@gmail.com Subject: Re: [R] How to catch warnings To: Alaios ala...@yahoo.com Cc: Michael Bedward michael.bedw...@gmail.com, Rhelp r-help@r-project.org Date: Thursday, November 18, 2010, 11:37 AM -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 11/18/2010 11:11 AM, Alaios wrote: Dear Michael, I would

Re: [R] How to catch warnings

2010-11-18 Thread Rainer M Krug
while the prompt is shown. Cheers, Rainer Regards Alex --- On *Thu, 11/18/10, Rainer M Krug /r.m.k...@gmail.com/* wrote: From: Rainer M Krug r.m.k...@gmail.com Subject: Re: [R] How to catch warnings To: Alaios ala...@yahoo.com Cc: Michael Bedward michael.bedw

[R] How to catch warnings

2010-11-17 Thread Alaios
Hello when my code executes I receive the message that were some warnings. I want to catch warning messages at run time so to print some local variables and try to understand why this warning happens. I searched on internet and I tried withCallingHandlers( which seems to work but as I used

Re: [R] How to catch warnings

2010-11-17 Thread Michael Bedward
Hi Alex, Something like this ? x - 1:4 y - list(good=2:5, bad=3:5) for (yy in y) { tryCatch( x - cbind(x, yy), warning=function(w) cat(problem values: , yy, \n) ) } Michael On 18 November 2010 03:19, Alaios ala...@yahoo.com wrote: Hello when my code executes I receive the