checkMD5sums {tools}R Documentation

Check and Create ‘MD5’ Checksum Files

Description

checkMD5sums checks the files against a file ‘MD5’.

Usage

checkMD5sums(package, dir)

Arguments

package

the name of an installed package

dir

the path to the top-level directory of an installed package.

Details

The file ‘MD5’ which is created is in a format which can be checked by md5sum -c MD5 if a suitable command-line version of md5sum is available. (For Windows, one is supplied in the bundle at https://cran.r-project.org/bin/windows/Rtools/.)

If dir is missing, an installed package of name package is searched for.

The private function tools:::.installMD5sums is used to create ‘MD5’ files.

Value

checkMD5sums returns a logical, NA if there is no ‘MD5’ file to be checked.

Note

As from R 4.6.0, the use of ‘MD5’ files has been deprecated in favor of ‘SHA256’ files checked by checkSHA256sums, since MD5 hashes are susceptible to hash-collision and length-extension attacks and therefore are only suitable for integrity checks and not for verification of authenticity.

See Also

md5sum, checkSHA256sums


[Package tools version 4.6.0 Index]