hList: Extract checksum value from file

Description Usage Arguments Value Author(s) Examples

Description

Stores, in a data.frame, the filename and its checksum value (computed using the digest).

Usage

1
hList(fList, destfile, quick = FALSE, csalgorithm = "xxhash64")

Arguments

fList

A character vector representing filename.

destfile

A character string giving file to path to file.

quick

Logical. If TRUE, checksum is compiled using the combination of the filename and its size. If FALSE (default), cheksum is compiled using the object.

csalgorithm

A character string representing the algorithms used by the digest function. Default is "xxhash64".

Value

data.frame where filename, checksum value from the object (checksumFile), checksum value from the combination of filename and file size and the algorithm used to compute checksum values are stored.

Author(s)

Melina Houle

Examples

1
2
3
outdir <- tempdir()
file.list <- list.files(outdir)
webDatabases::hList(file.list, destfile = outdir, quick = TRUE)

PredictiveEcology/webDatabases documentation built on May 8, 2019, 3:09 p.m.