Learn R Programming

sotkanet (version 0.10.1)

sotkanet_fixity: Calculate fixity checksum for an object

Description

Uses a hash function (md5) on a sotkanet dataset and calculates a digest of the dataset as a character string.

Usage

sotkanet_fixity(data, algorithm = "md5")

Value

A character string

Arguments

data

A sotkanet dataset.

algorithm

Algorithm used for calculating the checksum. Default is `md5`, but supports all the algorithms in digest function.

Details

Fixity can be used to make sure that the file has not changed. This is done by calculating a checksum for the dataset that will change if the dataset changes. The default algorithm used to calculate the checksum is md5 hash, but all the algorithms supported by imported digest function are applicable. See the digest function documentation for more details.

This function takes the whole dataset as an input. This means that everything to do with the data is used when calculating the fixity checksum, so for example, if you change the language of the output the checksum will also change.

See Also

[digest::digest()]

For more info on fixity checksum see: https://www.dpconline.org/handbook/technical-solutions-and-tools/fixity-and-checksums