createMD5Sums {Revobase} | R Documentation |
Create, Read, or Compare MD5 Checksums
Description
Utility functions to create, read, or compare MD5 checksums.
Usage
createMD5Sums(files, path, out=NULL, recursive=FALSE, full.names=FALSE,
NA.remove=TRUE)
readMD5Sums(file)
compareMD5Sums(src, target, target.file=NULL, ignoreAdditionalFiles=FALSE,
verbose=FALSE)
Arguments
files |
character vector of files to be checksummed, either absolute
paths or paths relative to path |
path |
path to files to be checksummed |
out |
character string naming output file, if desired |
recursive |
logical flag specifying whether directories should be
checked recursively |
full.names |
logical flag specifying whether to use full path names as
checksum labels |
NA.remove |
logical flag specifying whether to remove NAs from the
returned data frame |
file |
character string naming file containing md5 checksums |
src |
character string naming file containing reference md5 checksums |
target |
data frame containing md5 checksums to be verified by reference to src |
target.file |
character string naming file containing md5 checksums to be verified by reference to src |
ignoreAdditionalFiles |
logical flag specifying whether extra files in
target not in src should be ignored |
verbose |
logical flag specifying whether to print verbose output |
Examples
src <- createMD5Sums(path=R.home())
## Not run:
tgt <- readMD5Sums(file.path(R.home(), "R.md5"))
compareMD5Sums(src, tgt)
## End(Not run)
[Package
Revobase version 0.2-1
Index]