checkMD5sums2: Check and Create MD5 Checksum Files

checkMD5sums2R Documentation

Check and Create MD5 Checksum Files

Description

checkMD5sums checks the files against a file 'MD5'. This extends the default checkMD5sums from package tools by adding a new parameter "md5file"

Usage

checkMD5sums2(package, dir, md5file, omit_files, ...)

Arguments

package

the name of an installed package

dir

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

md5file

the exact path of the md5file to compare the dir with

omit_files

a character vector with the files or file directories to not include in the checksums

...

not used. (but good for future backward compatibility)

Value

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

See Also

checkMD5sums

Examples

## Not run: 
checkMD5sums2(dir=R.home()) # doesn't work for R 3.0.0 or R 3.0.1
checkMD5sums2(dir=R.home(), omit_files = c("etc/Rconsole", "etc/Rprofile.site")) # will work!
# tools::md5sum(file.path(R.home(), "MD5"))


## End(Not run)

installr documentation built on Nov. 13, 2022, 1:06 a.m.