Capturing warning messages within R

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Capturing warning messages within R

Kylie-anne Richards
Hi,

 

Just wondering, how do you capture "warning messege"s from R? I'm using Rpy
(the python plug-in for R). I guess those
are not python exception so I couldn't use the "try" block.
 
For example:

Ran out of iterations and did not converge in: fitter(X, Y, strats, offset,
init, control, weights = weights, MPR

 

 

Regards,

Kylie-Anne Richards



 


        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Reply | Threaded
Open this post in threaded view
|

Re: Capturing warning messages within R

Prof Brian Ripley
They are written to stderr, so you can capture stderr (which is only used
by R itself for messages).

Beyond that, I suggest you need to ask on an Rpy list about Rpy, rather
than on R-help.

On Tue, 28 Feb 2006, Kylie-anne Richards wrote:

> Just wondering, how do you capture "warning messege"s from R? I'm using Rpy
> (the python plug-in for R). I guess those
> are not python exception so I couldn't use the "try" block.
>
> For example:
>
> Ran out of iterations and did not converge in: fitter(X, Y, strats, offset,
> init, control, weights = weights, MPR
>
> Regards,
>
> Kylie-Anne Richards
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

PLEASE do, including not sending HTML mail.

--
Brian D. Ripley,                  [hidden email]
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
[hidden email] mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html