# NOT RUN {
# name of most recently modified file
.findFile() # current directory
.findFile("..") # one directory up
.findFile(tempdir()) # temp directory
# list of files and common attributes in temp directory
.findFile(folder=tempdir(), file="*.*", n=2, fileNameOnly=FALSE) #two most recent files
.findFile(folder=tempdir(), file="*.*", n="all", fileNameOnly=FALSE) #all files
# }
Run the code above in your browser using DataLab