A MD5 ‘hash’ or ‘checksum’ or ‘message digest’ is
a 128-bit summary of the file contents represented by 32 hexadecimal
digits. Files with different MD5 sums are different: only very
exceptionally (and usually with the intent to deceive) are those with
the same sums different.
On Windows all files are read in binary mode (as the md5sum
utilities there do): on other OSes the files are read in the default
mode (almost always text mode where there is more than one).
MD5 sums are used as a check that R packages have been unpacked
correctly and not subsequently modified.