latestFile
Find File With Latest Modification Time
latestFile(pattern, path = ".", verbose = TRUE)
pattern
: a regular expression; see base::list.files()
path
: full path, defaulting to current working directoryverbose
: set to FALSE
to not report on total number of matching filesthe name of the last modified file
Subject to matching on pattern
finds the last modified file, and if verbose
is TRUE
reports on how many total files matched pattern
.
base::list.files()
Frank Harrell