Learn R Programming

R.filesets (version 2.15.1)

getFileSize.GenericDataFile: Gets the size of a file

Description

Gets the size of a file.

Usage

# S3 method for GenericDataFile
getFileSize(this, what=c("numeric", "units"), sep="", ...)

Value

Returns a numeric or a character string. A missing value (NA) is returned if the file does not exist.

Arguments

what

A character string specifying the data type returned. If "numeric", then a numeric value is returned. If "units", then a human-readable character string is returned.

sep

A character string.

...

Not used.

Author

Henrik Bengtsson

See Also

file.info(). For more information see GenericDataFile.