newestFile {jamba} | R Documentation |
Return the newest file from a vector of files
Description
Return the newest file from a vector of files
Usage
newestFile(x, timecol = "mtime", n = 1, ...)
Arguments
x |
|
timecol |
|
n |
|
... |
additional parameters are ignored. |
Details
This function returns the newest file, defined by the most
recently modified time obtained from base::file.info()
.
Value
character
vector length=1
of the most recently modified file
from the input vector x
. Note that any files not found are removed,
using base::file.exists()
, which means invalid symlinks will be ignored.
See Also
Other jam practical functions:
breakDensity()
,
call_fn_ellipsis()
,
checkLightMode()
,
check_pkg_installed()
,
colNum2excelName()
,
color_dither()
,
exp2signed()
,
getAxisLabel()
,
isFALSEV()
,
isTRUEV()
,
jargs()
,
kable_coloring()
,
lldf()
,
log2signed()
,
middle()
,
minorLogTicks()
,
printDebug()
,
reload_rmarkdown_cache()
,
renameColumn()
,
rmInfinite()
,
rmNA()
,
rmNAs()
,
rmNULL()
,
setPrompt()
Examples
newestFile(list.files());