The R Project SVN R

Rev

Rev 73574 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 73574 Rev 81559
Line 154... Line 154...
154
writeBin(2L, file.path(dir, "file2"))
154
writeBin(2L, file.path(dir, "file2"))
155
dir.create(file.path(dir, "dir"))
155
dir.create(file.path(dir, "dir"))
156
 
156
 
157
# Take a snapshot
157
# Take a snapshot
158
snapshot <- fileSnapshot(dir, timestamp = tempfile("timestamp"), md5sum=TRUE)
158
snapshot <- fileSnapshot(dir, timestamp = tempfile("timestamp"), md5sum=TRUE)
159
 
-
 
-
 
159
\dontshow{Sys.sleep(.01)}  % avoid spurious Rdiff below
160
# Change one of the files.
160
# Change one of the files.
161
writeBin(3L:4L, file.path(dir, "file2"))
161
writeBin(3L:4L, file.path(dir, "file2"))
162
 
162
 
163
# Display the detected changes.  We may or may not see mtime change...
163
# Display the detected changes.  We may or may not see mtime change...
164
changedFiles(snapshot)
164
changedFiles(snapshot)