| writeMD5LM | R Documentation |
Write the standard R ‘MD5’ manifest into an installed package directory so that
checkMD5sums (and IQLM) can verify file integrity.
The manifest records the md5 checksum of every installed file. It is the same
‘MD5’ file that CRAN ships and that R's own installer writes; packages installed
from CRAN already contain it, but a local source install usually does not (which is
why the IQ integrity check then reports WARN). Run writeMD5LM() once,
immediately after installing the package, to record the trusted baseline; thereafter
checkMD5sums() detects any later modification of the installed files.
writeMD5LM(pkg = "sasLM", lib.loc = NULL)
pkg |
name of the installed package whose ‘MD5’ manifest should be written. |
lib.loc |
character vector of library paths to search for |
The manifest is written in the format used by checkMD5sums: one line per file,
<md5sum> *<relative-path>. The ‘MD5’ file itself is excluded. The
function uses only the exported md5sum. The installed package
directory must be writable.
Invisibly, the path to the ‘MD5’ file that was written. Called for its side effect.
Kyun-Seop Bae <k@acr.kr>
IQLM, checkMD5sums, md5sum
#writeMD5LM("sasLM")
#sasLM::IQLM() # the file-integrity check now reports PASS
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.