Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

equals.GenericDataFile

Checks if a file equals another


Description

Checks if a file equals another.

Usage

## S3 method for class 'GenericDataFile'
equals(this, other, ...)

Arguments

other

The other GenericDataFile to be compared to.

...

Not used.

Details

The two files compared are equal if they have the same pathname.

The two files compared are not equal if:

  • Argument other is not a GenericDataFile, or

  • their file sizes differ, or

  • their file checksums differ.

If none of the above occurs, the two files are considered equal.

Note that subclasses use refined rules.

Value

Returns TRUE if the file equals the other, otherwise FALSE. If FALSE, attributes are added specifying the pathnames of the two files compared, and the reason for them being different.

Author(s)

Henrik Bengtsson

See Also

*getFileSize(). *getChecksum(). For more information see GenericDataFile.


R.filesets

Easy Handling of and Access to Files Organized in Structured Directories

v2.14.0
LGPL (>= 2.1)
Authors
Henrik Bengtsson [aut, cre, cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.