[R] Detect the Warning Message

2010-11-05 Thread Yen Lee
Dear all, I've written a function and repeated it for 5000 times with loops with different value, and the messages returned are the output I set and 15 warnings. I would like to trace the warnings by stopping the loop when warning came out. Does anyone know how to make it? Thanks a lot

Re: [R] Detect the Warning Message

2010-11-05 Thread jim holtman
?options and then you will find the following: warn: sets the handling of warning messages. If warn is negative all warnings are ignored. If warn is zero (the default) warnings are stored until the top–level function returns. If fewer than 10 warnings were signalled they will be printed