R: Gets the size of a file

getFileSize.GenericDataFile {R.filesets} | R Documentation

## Gets the size of a file

### Description

Gets the size of a file.

### Usage

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

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

### Value

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

### Author(s)

Henrik Bengtsson

### See Also

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

[Package R.filesets version 2.11.0 Index]