powered by
touch
Creating a file or ensuring a file's modification time changes.
touch(path)
Path to the file to be touched
The return value of file.copy.
file.copy
# 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