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:
base::Sys.time())- format
A format to be applied to the times; set to
NULLto skip formatting- sep
A
charactervector of length 1 to separate the timestamp from the file name