hash.obj: Create the md5 hash of an object

Description Usage Arguments Value Author(s) Examples

View source: R/package.management.R

Description

R's tools only allow one to create the md5 hash of a file. This function takes an R object, creates a file, calculates the hash, deletes the file and returns the result.

Usage

1
hash.obj(obj)

Arguments

obj

Any R object that can be saved with the save command.

Value

The md5 hash of an object

Author(s)

Alex

Examples

1
2
3
4
5
6
7
## BENCHMARK
set.seed(1)
r <- rnorm(1e5)
r.md5 <- hash.obj(r)
names(r.md5) <- NULL
r.md5
## END BENCHMARK

NorskRegnesentral/NRTools documentation built on Sept. 4, 2017, 4:09 p.m.