R/valid_file_info.R

Defines functions valid_file_info

#' @importFrom assertthat assert_that
#' @importFrom fs is_file
#' @keywords  internal
valid_file_info <- function(file) {
  assertthat::assert_that(
    fs::is_file(file),
    msg =  paste0("file='", file, "' is not a file. ")
  )
  
  file.info(file)
}
antaldaniel/retroharmonize documentation built on Dec. 31, 2024, 9:52 p.m.