Skip to contents

Generate checksum from file

Usage

md5(file)

sha256(file)

Arguments

file

character(1). File path.

Details

Requires digest package to be installed.

Note

Updated 2023-09-14.

See also

Examples

file <- system.file("extdata/example.csv", package = "pipette")
md5(file)
#> [1] "353f59b13802bfe02a0eafe571ef96be"
sha256(file)
#> [1] "cea10726844a7df48a173b80054195ec9b59084431c99511727c12dcbd510b10"