Return path to the most recent version (based on date)

most_recent(dir, pattern = NULL)

Arguments

dir

Directory where files are stored

pattern

The leading file name, fill be preceded by an "_" followed by the date the file was created.

Value

file path as character string