file.newest: Identify the Most Recently Edited File

Description Usage Arguments Value

View source: R/file.newest.R

Description

Identify the Most Recently Edited File

Usage

1
file.newest(path = ".", pattern = NULL, invert = F, messagename = F, ...)

Arguments

path

a character vector of full path names; the default corresponds to the working directory, getwd(). Tilde expansion (see 'path.expand“) is performed. Missing values will be ignored.

pattern

an optional regular expression. Only file names which match the regular expression will be returned.

invert

a logical value. If FALSE, returns the most recently modified file. If TRUE, returns the first modified file.

messagename

a logical value determing whether the results should be messaged on the console. Useful in semi-interactive cases when output might not be immediately available, for example, within a dplyr chain.

...

other arguments to pass to list.files

Value

a character string with the full name of the most recently modified file in path


crazybilly/muadc documentation built on March 6, 2021, 4:15 p.m.