[R] error handling

2013-09-26 Thread Michael Meyer
Greetings,   Error handling does not seem to work as expected. When a handler for general conditions is provided in first position in the handler list it will be called regardless of what condition has been signalled.   See sample code, move  "condition = function(c){...}" to first position in h

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

[R] Error Handling

2008-06-24 Thread Sit Yee Kong
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 the data frame "m1" manually and reset "j" in the for-loop every time error returned. I’m wo

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

[R] Error handling in nlme call

2008-01-31 Thread Rob Forsyth
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 file to simply move on to another simulation

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

[R] Error handling

2007-09-12 Thread Christian Schäfer
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) For example: It's quite annoying to run a script for hours only to detect an abortion of the script because of an "subscript out of bound