[R] Determining which file is newer
Dennis Fisher
fisher at plessthan.com
Fri Oct 23 18:02:24 CEST 2009
Colleagues,
I wish to execute a task only if a particular file is newer than a
second file. I can access the file modification dates using
file.info()$mtime.
This yields a time object (? POSIX).
size isdir mode mtime ctime
Testfile 4421 FALSE 755 2009-10-23 08:59:09 2009-10-23 08:59:09
What is the simplest means to compare these two objects?
R2.9.1 in OSX, Windows, Linux
Dennis
Dennis Fisher MD
P < (The "P Less Than" Company)
Phone: 1-866-PLessThan (1-866-753-7784)
Fax: 1-866-PLessThan (1-866-753-7784)
www.PLessThan.com
More information about the R-help
mailing list