Re: [R] a question on the use of 'solve'

From: Carl Witthoft <>
Date: Tue, 12 Apr 2011 17:09:10 -0400

Check out ?try and ?trycatch .
THose are specifically designed to allow you to take note of an error condition while still running your function/script.

From: Laura Antolini <> Date: Tue, 12 Apr 2011 19:23:44 +0200

Dear R users,

I am in trouble using the function


in a loop.

When it happens that I have a singular matrix, I get an error message saying so and the loop stops.

My question is if there in any way to keep on going in the loop.

Thank you in advance,



Laura Antolini, PhD

Department of Clinical Medicine and Prevention

University Milano-Bicocca

Monza - Italy mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Tue 12 Apr 2011 - 21:12:00 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 12 Apr 2011 - 21:20:32 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive