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