R/all_files_exist.R

Defines functions all_files_exist

Documented in all_files_exist

#' Do all the files listed actually exist?
#'
#' @param file_list A list of files
#'
#' @return TRUE/FALSE do all files exist?
#' @export
all_files_exist = function( file_list ) {
  return( all( unlist( lapply( unlist( lapply( file_list, get ) ), file.exists ) ) ) )
}
LisaHopcroft/CTutils documentation built on Oct. 7, 2021, 11:08 p.m.