[R] Check whether size(file) > 0

Roger Bivand Roger.Bivand at nhh.no
Thu Jun 19 15:50:54 CEST 2003


On Thu, 19 Jun 2003, R A F wrote:

> Hi all, what's the way to check for this?  I know of "file.exists," but that 
> does not
> preclude the possibility of an empty file.
> 

file.info("file")$size

> Thanks very much!
> 
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://www.stat.math.ethz.ch/mailman/listinfo/r-help
> 

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Breiviksveien 40, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 93 93
e-mail: Roger.Bivand at nhh.no




More information about the R-help mailing list