Re: [R] Remove warnings.

2008-10-14 Thread Mark Lyman
charter.net> writes: > > The problem is that I am interested in all the warnings but after they have been reported using the > 'warnings()' command I am no longer interested in those warnings but similar warnings (of the same type) > may occur with subsequent invocations and I am interested i

Re: [R] Remove warnings.

2008-10-14 Thread rkevinburton
The problem is that I am interested in all the warnings but after they have been reported using the 'warnings()' command I am no longer interested in those warnings but similar warnings (of the same type) may occur with subsequent invocations and I am interested in these "new" warnings not the o

Re: [R] Remove warnings.

2008-10-14 Thread hadley wickham
Why don't you just suppress the warning messages you are not interested in? ?suppressWarnings Hadley On Tue, Oct 14, 2008 at 7:59 AM, <[EMAIL PROTECTED]> wrote: > I have a function that could possibly generate warnings in a loop. What I > want is to report the warnings (warnings()) then clear

[R] Remove warnings.

2008-10-14 Thread rkevinburton
I have a function that could possibly generate warnings in a loop. What I want is to report the warnings (warnings()) then clear out the last.warning object so that if there is a call without warnings I will not see the previous warning. Some example code: generatewarning <- function(s) {