powered by
Prefix file name with a date-stamp.
date.stamp.file.name(file.name, date = Sys.Date(), separator = "_")
File name to be date-stamped
Date to be added. Defaults to current date.
String that should separate the date from the file name. Defaults to a single underscore.
String giving the datestamped file name
# NOT RUN { date.stamp.file.name('plot.png'); date.stamp.file.name('yesterdays_plot.png', date = Sys.Date() - 1); # }
Run the code above in your browser using DataLab