I use Splus 6.1 on XP. I have written a routine that compares
file names and timestamps in identical directory structures on
my desktop and laptop. object.summary provides the timestamp
info. Of the paired objects in the two databases, I update whichever
is older to agree with the more recent using objcopy.
objcopy assigns the current time as the time stamp, rather than
copying the time stamp from the object being copied, which for
my purposes would be preferable. (The next time I compare the
two directories, the routine concludes that the copy is newer
because of the time stamp and copies it back. No errors result,
but it would be nice to retain the original time stamp.)
Is there an Splus command that copies objects by name but
retains the original time stamp?
The notes on the help page for objcopy say:
"This function is unrelated to the copy function in the S-PLUS
library section external."
but I have neither a library section named "external" nor any
documentation on a function "copy".
Thanks in advance,
Pete
____________________________________________
Peter M. Meyer, PhD
Visiting Scholar, Johns Hopkins School of Public Health
Assistant Professor and Director, Section of Biostatistics
Department of Preventive Medicine
Rush-Presbyterian-St. Luke's Medical Center
Rush University
1700 W. Van Buren, Suite 470
Chicago, Illinois 60612-3244
Phone 312-942-2337
Fax 312-942-7224
|