Re: [R] The try() function with read.delim().

2008-05-14 Thread Martin Maechler
Oops, there where some typos / thinkos in my post, in the "more sophisticated" tryCatch() example. I append the full message with corrected example. -- Martin --- > "RT" == Rolf Turner <[EMAIL PROTECTED]> > on Wed, 14 Ma

Re: [R] The try() function with read.delim().

2008-05-14 Thread Martin Maechler
> "RT" == Rolf Turner <[EMAIL PROTECTED]> > on Wed, 14 May 2008 13:12:02 +1200 writes: RT> I have written a function which reads data from files using read.delim RT> (). RT> The names of these files are complicated and are built using arguments RT> to the wrapper funct

Re: [R] The try() function with read.delim().

2008-05-13 Thread Steven McKinney
> -Original Message- > From: [EMAIL PROTECTED] on behalf of Rolf Turner > Sent: Tue 5/13/2008 6:12 PM > To: R help forum > Subject: [R] The try() function with read.delim(). > > > I have written a function which reads data from files using read.delim > ().

[R] The try() function with read.delim().

2008-05-13 Thread Rolf Turner
I have written a function which reads data from files using read.delim (). The names of these files are complicated and are built using arguments to the wrapper function. Since the files in question may or may not exist, I thought to enclose the read.delim() call in a try(): file <-