digest_if_exists: Calculate the file digest if the file exists

Description Usage Arguments Value See Also

View source: R/digest.R

Description

digest_if_file_exists returns a character vector with the hashed digest of the file, or NA if the file does not exist.

Usage

1

Arguments

file

A string containing the path to a file.

alg

A string containing the name of the digest algorithm to use. Set the algorithm with 'options(blogdown.digest = <algorithm>)'. If no option was set, use crc32.

Value

A string: if the file exists return the digest. Otherwise, return NA.

See Also

digest for details about available algorithms.


jonathan-g/blogdownDigest documentation built on Jan. 23, 2021, 10:52 p.m.