Validates directory existence and accessibility with options to create if missing
check_directory(
path,
create_if_missing = FALSE,
check_write_permission = TRUE,
arg_name = "directory"
)Invisible TRUE if valid, throws error otherwise
Directory path
Whether to create directory if it doesn't exist
Whether to verify write permissions
Name of the argument for error messages