Re: [R] checking whether a file is empty

From: Faheem Mitha <>
Date: Wed, 30 Apr 2008 11:53:07 -0400 (EDT)

On Wed, 30 Apr 2008, Prof Brian Ripley wrote:

> What is wrong with

>> file.create("foo")

> [1] TRUE
> [1] 0
>> file.remove("foo")

> ?

Thanks, that works for me.

> I really wonder what searches you did:"file") come up with

I did a Google search for "R check file empty", "R check file size" and similar. Then I tried one of those R specific searches you can find on the web.

Then I did a"empty"). Probably not the best search term. It didn't occur to me to search for "file".


______________________________________________ mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Wed 30 Apr 2008 - 16:15:53 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 Wed 30 Apr 2008 - 17:30:33 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive