hashfiles: Hash Files

View source: R/hashfiles.R

hashfilesR Documentation

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,
  skiptemp = TRUE
)

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.

skiptemp

Skip temporary MS Office files like "~$Simd Loss Eval 2018-06-30.xlsx"

Value

String representing hash of files.

Examples

folder = system.file('extdata', package = 'easyr')
hashfiles(folder)

oliver-wyman-actuarial/easyR documentation built on Jan. 27, 2024, 4:35 a.m.