Digest: Digest files from (digest package)

Description Usage Arguments Details Value Examples

Description

Compute file hash without checking file.access

Usage

1
2
3
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

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.

Value

The filehash

Examples

1
2
3
4
5
6
## Not run: 
 file0 <- file.path(pullSourceInfo("adaprHome")$project.path,
 project.directory.tree$analysis,"read_data.R")
 Digest(file=file0)

## End(Not run) 

adapr documentation built on May 1, 2019, 7:05 p.m.