You can use the file.info()
function in R to get the metadata of a file, including the last modified date. Here's an example code snippet:
main.r237 chars12 lines
The file.info()
function returns a named list of file metadata, where "mtime" represents the last modified date. The last_modified
variable extracts this information and can be printed or used in further calculations as needed.
gistlibby LogSnag