You can use the file.info()
function in R to get the metadata of a file, which includes the last accessed date. Here's an example code snippet that shows how to get the last accessed date of a CSV file:
main.r364 chars12 lines
This code snippet will print the last accessed date of the CSV file in the format "YYYY-MM-DD HH:MM:SS".
gistlibby LogSnag