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