Learn R Programming

easyr (version 0.3-1)

hashfiles: Hash Files

Description

Get a hash value representing a list of files. Useful for determining if files have changed in order to reset dependent caches.

Usage

hashfiles(x, skip.missing = FALSE, full.hash = FALSE, verbose = FALSE)

Arguments

x

Input which specifies which files to hash. This can be a vector mix of paths and files.

skip.missing

Skip missing files. Default is to throw an error if a file isn't found.

full.hash

By default we just hash the file info (name, size, created/modified time). Set this to TRUE to read the file and hash the contents.

verbose

Print helpful messages from code.

Value

String representing hash of files.

Examples

Run this code
# NOT RUN {
hashfiles( '.' )
# }

Run the code above in your browser using DataLab