saveFileSum | R Documentation |
Calculates a checksum for a file and saves it to file that by default is named the same, except with an appended extension matching the algorithm.
saveFileSum(
file,
algo = c("md5", "sha1", "crc32", "sha256", "sha512"),
checkFile = NULL,
show = FALSE,
overwrite = FALSE
)
file |
The file to validate |
algo |
The checksum algorithm to use (see |
checkFile |
The name of the checksum file to create.
By default named the same as file, with an additional extension matching
|
show |
Should the checkFiles be visible (i.e. NOT start with a ".")? This is ignored if the checkFile is specified. Note, if the file is hidden, then its default checksum file will be hidden regardless of this setting. |
overwrite |
If the checkFile already exists and does not match, it is an error unless this is set TRUE, in which case the file is just overwritten. If it matches, then done (in this case modify timestamps will not be changed). |
The generated checkFile
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.