From edd at debian.org  Wed Jan  9 21:40:23 2008
From: edd at debian.org (Dirk Eddelbuettel)
Date: Wed, 9 Jan 2008 14:40:23 -0600
Subject: [Rd] read.table: aborting based on a time constraint
In-Reply-To: <971536df0801091227k7206d511x4d5af52ff54237fc@mail.gmail.com>
References: <d054d5fa0801091101p3a93cd2ey7df35352416d2e6f@mail.gmail.com>
	<971536df0801091227k7206d511x4d5af52ff54237fc@mail.gmail.com>
Message-ID: <20080109204023.GA5436@eddelbuettel.com>

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 <delmeric at gmail.com> 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  1:number.of.datasets)
> > {
> >   X[k]=read.table(?)
> > }
> >
> > The issue is that I cannot find a way to embed logic that will abort
> > the read-in process of a specific dataset without manual intervention.
> > I scanned the help manual and other postings, but no luck based on my
> > search. Any thoughts?
> >
> > Thanks,
> > Derek
> >
> > ______________________________________________
> > R-devel at r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-devel
> >
> 
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel

-- 
Three out of two people have difficulties with fractions.



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