R/hash.R

Defines functions hash

Documented in hash

#' Compute md5sum hash for a file
#'
#' Currently just wraps tools::md5sum for convenience.
#'
#' Perhaps in the future it will also hash R objects perhaps by writing them to
#' a file and then hashing the file.
#'
#' @param files path and names of files to calculate md5sum
#'
#' @return md5sum of file
#'
#' @importFrom tools md5sum
#'
hash <- function(files){
  return(tools::md5sum(files))
}
jarad/WEPPR documentation built on Nov. 3, 2023, 5:42 a.m.