Re: [R] How to catch warnings

2010-11-18 Thread Rainer M Krug
he rkward windows while the prompt is shown. Cheers, Rainer > > Regards > Alex > > --- On *Thu, 11/18/10, Rainer M Krug //* wrote: > > > From: Rainer M Krug > Subject: Re: [R] How to catch warnings > To: "Alaios" > Cc: "Michael Be

Re: [R] How to catch warnings

2010-11-18 Thread Alaios
st(good=2:5, bad=3:5) for (yy in y) {   tryCatch( x <- cbind(x, yy),       warning=browser   ) } Cheers, Rainer > > Best REgards > > Alex > > --- On Thu, 11/18/10, Michael Bedward wrote: > > From: Michael Bedward > Subject: Re: [R] How to catch warnings > To

Re: [R] How to catch warnings

2010-11-18 Thread Rainer M Krug
; > Best REgards > > Alex > > --- On Thu, 11/18/10, Michael Bedward wrote: > > From: Michael Bedward > Subject: Re: [R] How to catch warnings > To: "Alaios" > Cc: "Rhelp" > Date: Thursday, November 18, 2010, 1:26 AM > > Hi Alex, >

Re: [R] How to catch warnings

2010-11-18 Thread Michael Bedward
e execution at the point it was and let your write commands in console > to check what was going on. > > Is that possible? > Regards > Alex > > --- On Thu, 11/18/10, Michael Bedward wrote: > > From: Michael Bedward > Subject: Re: [R] How to catch warnings > To: "

Re: [R] How to catch warnings

2010-11-18 Thread Michael Bedward
On Thu, 11/18/10, Michael Bedward wrote: > > From: Michael Bedward > Subject: Re: [R] How to catch warnings > To: "Alaios" > Cc: "Rhelp" > 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
. Best REgards Alex --- On Thu, 11/18/10, Michael Bedward wrote: From: Michael Bedward Subject: Re: [R] How to catch warnings To: "Alaios" Cc: "Rhelp" Date: Thursday, November 18, 2010, 1:26 AM Hi Alex, Something like this ? x <- 1:4 y <- list(good=2:5, bad=3:5) f

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 wrote: > Hello when my code executes I receive the message tha

[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 Rkwar