Re: [R] Error Handling

2008-06-24 Thread jim holtman
?try On Tue, Jun 24, 2008 at 1:59 PM, Sit Yee Kong <[EMAIL PROTECTED]> wrote: > > Hi All, > > The for-loop below stopped when error("Cannot get confidence intervals on > var-cov components: Non-positive definite approximate variance-covariance") > occurred. > I assigned a row of NA values > to t

Re: [R] Error handling in nlme call

2008-01-31 Thread Prof Brian Ripley
On Thu, 31 Jan 2008, Rob Forsyth wrote: > In some trial simulation work I need to create batch files that will > repeatedly generate pseudoreplicate datasets and then create non- > linear mixed effects models using nlme. Inevitably these models > sometimes fail to converge but I need the batch fil

Re: [R] Error handling

2007-09-12 Thread Duncan Murdoch
On 12/09/2007 5:08 AM, Christian Schäfer wrote: > Hi, > > is there a possibility to catch an occurring error and do an appropriate > error handling? (like the "try-catch"-statement in other programming > languages) You could use the tryCatch() function (or try(), a simplified wrapper). Duncan