getChecksum.GenericDataFile: Gets the checksum of a file

getChecksum.GenericDataFileR Documentation

Gets the checksum of a file

Description

Gets the checksum of a file.

Usage

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

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.

Value

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

Author(s)

Henrik Bengtsson

See Also

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


R.filesets documentation built on May 29, 2024, 9:10 a.m.