add_file_timestamp {mark} | R Documentation |
Add file timestamp
Description
Adds a timestamp to a file
Usage
add_file_timestamp(
x,
ts = Sys.time(),
format = "%Y-%m-%d %H%M%S",
sep = " "
)
Arguments
x |
A vector of files |
ts |
A single timestamp or vector of timestamps (default: |
format |
A format to be applied to the times; set to |
sep |
A |
Value
The full name paths with the appended time stamp
Examples
file1 <- tempfile(fileext = ".txt")
file2 <- tempfile()
add_file_timestamp(file1)
add_file_timestamp(file2)
file.remove(file1, file2)
[Package mark version 0.8.0 Index]