R: Backports of wrappers around 'file.info' for R < 3.2.0

file.mode {backports} | R Documentation

## Backports of wrappers around `file.info` for R < 3.2.0

### Description

See the original description in `base::file.size`.

### Usage

    file.mode(...)

    file.mtime(...)

    file.size(...)

### Examples

    # get functions from namespace instead of possibly getting
    # implementations shipped with recent R versions:
    bp_file.size = getFromNamespace("file.size", "backports")
    bp_file.mode = getFromNamespace("file.size", "backports")
    bp_file.mtime = getFromNamespace("file.size", "backports")

    fn = file.path(R.home(), "COPYING")
    bp_file.size(fn)
    bp_file.mode(fn)
    bp_file.size(fn)

[Package backports version 1.1.2 Index]