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
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
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
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)
{
4 matches
Mail list logo