backports (version 1.1.4)

file.mode: 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(...)

Arguments

Examples

Run this code
# NOT RUN {
# 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)
# }

Run the code above in your browser using DataLab