Skip to content
Back to formatted view

Raw Message

Message-ID: <4332DF91.8040607@jhsph.edu>
Date: 2005-09-22T16:45:05Z
From: Roger D. Peng
Subject: warning.expression?
In-Reply-To: <200509221814.12666.thomas.friedrichsmeier@ruhr-uni-bochum.de>

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
> 
> ______________________________________________
> R-help at stat.math.ethz.ch 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/