R/input_validation_functions.R
check_file_size.Rd
Reads in a .txt file for data validation. Checks the file size of files located in each directory supplied via the column file_path. If the total file size exceeds the file_size_error value, the function produces an error. If the total number of files exceeds 50% of the file_number_error value the function produces a warning. Otherwise the function passes.
check_file_size(
filename = "DSbulkUploadR_input.xlsx",
path = getwd(),
sheet_name,
file_size_error = 100
)
NULL (invisibly)
if (FALSE) { # \dontrun{
check_file_size("test_file.txt")
} # }