Is a wrapper around get_recent_file_date_filename_ymd en get_recent_file_date_modified and retrieves the most recent version of a file based on naming or date modified.

get_recent_file(path, match, date_type = "modified")

Arguments

path

The path to search for the file

match

The search term matched in the file name

date_type

The way to find the recent file date_type = "modified" is based on customization, date_type = "filename_ymd" is based on file name.

Value

The most recent file.