Read File with Required Hash Match
Arguments
- file_path
path to file with data you want to read
- hash
hash you expect the file to have
- ...
additional arguments for digest or read_csv, parquet, sas, or
reader- algo
hashing algorithm to use, default is "blake3"
- reader
optional function used to read the file, called as
reader(file_path, ...)once the hash check passes. Required for file extensions this function doesn't know how to read. For a known extension (csv, parquet, sas7bdat, xpt, pzfx, xlsx/xls/xlsm),readeris ignored unlessforce = TRUE.- force
if
TRUE, usereadereven for a known extension instead of the built-in reader. Must beFALSE(the default) whenreaderis not supplied.
See also
Other file_io:
read_file_with_hash(),
write_file_with_hash()
