Learn R Programming

fakemake (version 1.9.0)

touch: Mock the Unix touch utility

Description

Creating a file or ensuring a file's modification time changes.

Usage

touch(path)

Arguments

path

Path to the file to be touched

Value

The return value of file.copy.

Examples

Run this code
# NOT RUN {
file <- tempfile()
touch(file)
t1 <- file.mtime(file)
touch(file)
t2 <- file.mtime(file)
t1 < t2
# }

Run the code above in your browser using DataLab