R/error-utils.r
check_file.Rd
Handle file operations with proper error messages
check_file(path, operation = "read", must_exist = TRUE)
File path
Operation being performed (read, write, etc.)
Whether the file must exist
Invisible TRUE if operation can proceed, throws error otherwise