Determine and write MD5 sum

.updateMD5(x)

Arguments

x

registry(1)
registry for which to determine the MD5 checksum.

Value

this function is called for its side-effect of storing the MD5 checksum in the md5 slot of the registry.

Details

This function follows the following algorithm:

  • set the current MD5 checksum to NA_character_,

  • write the registry into the temporary directory,

  • calculate the checksum of this file and finally

  • store the checksum in the md5 slot of the registry.

This means that when comparing the MD5 checksum in this slot, one first has to set that value also to NULL, otherwise the two values won't coincide.