datestampr | R Documentation |
datestampr is used to create the datestamps used to produce unique filenames for the output files.
datestampr( dateonly = FALSE, houronly = FALSE, minuteonly = FALSE, myusername = FALSE )
dateonly |
requests a simplified timestamp with only the date (no time). |
houronly |
requests a simplified timestamp with only the date and the hour (no minutes or seconds). |
minuteonly |
requests a simplified timestamp with only the date, the hour and the minutes (no seconds). |
myusername |
adds the active username to the timestamp. |
datestampr is used internally by the fsm package.
datestring <- datestampr(myusername=TRUE) cat(yellow(paste0("\n \n", "Hello world, have a datestamp: ", datestring, "\n \n")))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.