Re: [R] tryCatch question

2008-09-12 Thread Henrik Bengtsson
On Fri, Sep 12, 2008 at 6:02 AM, Antje <[EMAIL PROTECTED]> wrote: > Hi there, > > I have a nested call of lapply in which I do a tryCatch statement like this > > lapply(1:length(p_names), function(w_idx) { >r <- as.numeric(pos_r[[w_idx]][1]) >c <- as.numeric(pos_c[[w_idx]][1]) >

[R] tryCatch question

2008-09-12 Thread Antje
Hi there, I have a nested call of lapply in which I do a tryCatch statement like this lapply(1:length(p_names), function(w_idx) { r <- as.numeric(pos_r[[w_idx]][1]) c <- as.numeric(pos_c[[w_idx]][1]) pos <- c(r,c) lapply(1:length(p_names[[w_idx]]), function(p_idx,

Re: [R] tryCatch question

2008-08-14 Thread Stephen Tucker
:35 AM Subject: Re: [R] tryCatch question Read the argment descriptions and Look at the examples in ?tryCatch. The `expr' argument (i.e. the code to try) and the `finally' argument are expressions that are evaluated (via standard lazy evaluation of arguments). The error condition handlers,

Re: [R] tryCatch question

2008-08-14 Thread Luke Tierney
Read the argment descriptions and Look at the examples in ?tryCatch. The `expr' argument (i.e. the code to try) and the `finally' argument are expressions that are evaluated (via standard lazy evaluation of arguments). The error condition handlers, provided as the `...' argument in errorClass = h

[R] tryCatch question

2008-08-14 Thread rkevinburton
I would like to use the 'tryCatch' function but am having a hard time getting my head around it. In 'C' like languages try/catch/finally means try a block of statements and if any throw an error then do the statements in the catch block and then error or not always do the staements in the finall