View source: R/find_latest_file.R
find_latest_file | R Documentation |
This will return the latest created file matching
the criteria. It uses fs::dir_info()
to
find the files then picks the one with the latest
birthtime
find_latest_file(directory, regexp)
directory |
The directory to look in |
regexp |
a regular expression
passed to |
the fs::path()
to the file
## Not run: find_latest_file(get_lookups_dir(), regexp = "Scottish_Postcode_Directory_.+?\\.rds" ) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.