latestFile: latestFile

View source: R/latestFile.r

latestFileR Documentation

latestFile

Description

Find File With Latest Modification Time

Usage

latestFile(pattern, path = ".", verbose = TRUE)

Arguments

pattern

a regular expression; see base::list.files()

path

full path, defaulting to current working directory

verbose

set to FALSE to not report on total number of matching files

Details

Subject to matching on pattern finds the last modified file, and if verbose is TRUE reports on how many total files matched pattern.

Value

the name of the last modified file

Author(s)

Frank Harrell

See Also

base::list.files()


harrelfe/Hmisc documentation built on Nov. 21, 2024, 3:47 p.m.