Returns a character vector with an file name having the date prepended.

getDatedFilename(filename)

Arguments

filename

character vector with name to use in file name

Value

A character string with a file name prepended with the date and time in YYYY-MM-DD_hh_mm_ss_basename format.

Examples

# \donttest{ library(nprcgenekeepr) getDatedFilename("testName")
#> [1] "2021-03-22_08_57_59_testName"
# }