View source: R/get_latest_file.R
get_latest_file | R Documentation |
Get latest file
get_latest_file(path, pattern = NULL, full.names = TRUE, ...)
path |
Path to a directory to search within |
pattern |
Pattern of files to look for |
full.names |
Should the complete paths be returned? |
... |
Other arguments for |
I have a habit of putting the YYYYMMDD date into the files that I save in order to keep old versions. This function helps find the last version of a file by extracting those 8 digit strings, finding a maximumn, and returning the file(s) that have that max in their name. Note that this will totally crash and burn if the dates are in another format or there are other 8+ digit sequences in the file names.
a character representation of a path
Sven Halvorson (svenpubmail@gmail.com)
list.files
get_latest_file(
path = '//psi-svr-filer.uoregon.edu/P50/radx_latinx_collection/data/external/site_info',
pattern = 'cleaned_schedule'
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.