Re: [R] checking whether a file is empty

From: Faheem Mitha <faheem_at_email.unc.edu>
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
>> file.info("foo")$size
> [1] 0
>> file.remove("foo")

>
> ?

Thanks, that works for me.

> I really wonder what searches you did: help.search("file") come up with
> file.info.

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 help.search("empty"). Probably not the best search term. It didn't occur to me to search for "file".

                                                                   Faheem.

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html 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 https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive