Learn R Programming

R.filesets (version 2.15.1)

getChecksum.GenericDataFile: Gets the checksum of a file

Description

Gets the checksum of a file.

Usage

# S3 method for GenericDataFile
getChecksum(this, write=NA, force=FALSE, verbose=FALSE, ...)

Value

Returns a character string, which can be NA if file is missing.

Arguments

write

If TRUE or NA and a checksum file does not exists, then a checksum file is created, iff possible. If NA and the file could not be created, then it falls back to FALSE, but if TRUE an error is thrown. If FALSE and no checksum file exists, the checksum is calculated on the fly.

force

If FALSE, the file exists and has not be modified since, then the cached checksum is returned.

verbose

...

...

Not used.

Author

Henrik Bengtsson

See Also

Internally digest is used. *readChecksum(). *writeChecksum(). *compareChecksum(). For more information see GenericDataFile.