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

From: Dirk Eddelbuettel <edd_at_debian.org>
Date: Wed, 9 Jan 2008 14:40:23 -0600

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@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.

______________________________________________
R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Wed 09 Jan 2008 - 20:41:43 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 10 Jan 2008 - 14:00:08 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive