Learn R Programming

adapr (version 1.0.1)

Digest: Digest files from (digest package)

Description

Compute file hash without checking file.access

Usage

Digest(object = NULL, algo = checkAdaprHashAlgo(), serialize = FALSE, file = TRUE, length = Inf, skip = "auto", ascii = FALSE, raw = FALSE)

Arguments

object
R object or file
algo
digest hash algorithm
serialize
FALSE allows hash comparison of known output
file
logical TRUE iff object is file
length
Size of object/file to hash
skip
How many input bytes to skip for computing hash
ascii
ASCII or binary compression
raw
logical digest output in binary form

Value

The filehash

Details

Uses digest from package "digest". Authors Dirk Eddelbuettel edd@debian.org for the R interface; Antoine Lucas for the integration of crc32; Jarek Tuszynski for the file-based operations; Henrik Bengtsson and Simon Urbanek for improved serialization patches; Christophe Devine for the hash function implementations for sha-1, sha-256 and md5; Jean-loup Gailly and Mark Adler for crc32; Hannes Muehleisen for the integration of sha-512; Jim Hester for the integration of xxhash32, xxhash64 and murmur32.

Examples

Run this code
## Not run: 
#  file0 <- file.path(pull_source_info("adaprHome")$project.path,
#  project.directory.tree$analysis,"read_data.R")
#  Digest(file=file0)
# ## End(Not run) 

Run the code above in your browser using DataLab