On Fri, 2008-12-12 at 12:51 +0100, mau...@alice.it wrote:
> The following error occurs every now and then by calling a function of wmTSA 
> package:
> 
> Error in `row.names<-.data.frame`(`*tmp*`, value = c("1", "0")) : 
>   invalid 'row.names' length
> 
> I would greatly appreciate some guidelines about how to catch such an error 
> upon its occurrence and have it handled by my own routine 
> rather than letting R stop the currently run script.
> I had a look a the R on-line documentation about errors handler and also ran 
> some provided examples that confused my mind.
> The error is in textual form. I do not know whether I have to pass the whole 
> message to the handler.
> When such an exception occurs the execution control is not transferred to my 
> routine.
> I would like to see a working example.
> 
> Thank you so much,
> Maura 

Maura you can use try to catch error for more information digit: ?try
-- 
Bernardo Rangel Tura, M.D,MPH,Ph.D
National Institute of Cardiology
Brazil

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to