check_file: Handle file operations with proper error messages

View source: R/error-utils.r

check_fileR Documentation

Handle file operations with proper error messages

Description

Enhanced file validation with comprehensive checks and better error messages

Usage

check_file(path, operation = "read", must_exist = TRUE)

Arguments

path

File path

operation

Operation being performed (read, write, etc.)

must_exist

Whether the file must exist

Value

Invisible TRUE if operation can proceed, throws error otherwise

See Also

Other validate-utils: check_directory(), check_input(), check_packages(), check_range()


yulab.utils documentation built on Feb. 5, 2026, 9:10 a.m.