[Rd] read.table: aborting based on a time constraint

2008-01-09 Thread Derek Stephen Elmerick
Hello – I am trying to write code that will read in multiple datasets; however, I would like to skip any dataset where the read-in process takes longer than some fixed cutoff. A generic version of the function is the following: for(k in 1:number.of.datasets) { X[k]=read.table(…) } The issue

Re: [Rd] read.table: aborting based on a time constraint

2008-01-09 Thread Sean Davis
On Jan 9, 2008 2:01 PM, Derek Stephen Elmerick [EMAIL PROTECTED] wrote: Hello – I am trying to write code that will read in multiple datasets; however, I would like to skip any dataset where the read-in process takes longer than some fixed cutoff. A generic version of the function is the

Re: [Rd] read.table: aborting based on a time constraint

2008-01-09 Thread Gabor Grothendieck
That was supposed to be file.info()$size On Jan 9, 2008 3:27 PM, Gabor Grothendieck [EMAIL PROTECTED] wrote: Use file.file()$size to find out how large the file is and skip files larger than some cutoff. On Jan 9, 2008 2:01 PM, Derek Stephen Elmerick [EMAIL PROTECTED] wrote: Hello – I

Re: [Rd] read.table: aborting based on a time constraint

2008-01-09 Thread Bill Dunlap
On Wed, 9 Jan 2008, Derek Stephen Elmerick wrote: Hello ? I am trying to write code that will read in multiple datasets; however, I would like to skip any dataset where the read-in process takes longer than some fixed cutoff. A generic version of the function is the following: for(k in

Re: [Rd] read.table: aborting based on a time constraint

2008-01-09 Thread Dirk Eddelbuettel
On Wed, Jan 09, 2008 at 03:27:31PM -0500, Gabor Grothendieck wrote: Use file.file()$size to find out how large the file is and skip files larger than some cutoff. You presumably meant file.info()$size Dirk On Jan 9, 2008 2:01 PM, Derek Stephen Elmerick [EMAIL PROTECTED] wrote: Hello –