file.newest: Identify the Most Recently Edited File

View source: R/file.newest.R

file.newestR Documentation

Identify the Most Recently Edited File

Description

Identify the Most Recently Edited File

Usage

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/ucbudar documentation built on July 15, 2024, 5:03 p.m.