You might be interested in 'tryCatch' to catch warnings.

-roger

Thomas Friedrichsmeier wrote:
> Hi!
> 
> I'm trying to catch all warning-messages for special handling. It seems 
> options (warning.expression=myfunc ()) can be used for that. However, the 
> question is: How can I get at the actual warning in myfunc ()? Apparently in 
> S, you can use .C("get_last_message") for that. Is there a similar mechanism 
> in R?
> 
> Thanks for your help!
> Thomas
> 
> ______________________________________________
> [email protected] mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
> 

-- 
Roger D. Peng
http://www.biostat.jhsph.edu/~rpeng/

______________________________________________
[email protected] 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 via email to