Verify if expression regarding data is TRUESource:
The function checks whether all the logical values returned by the expression are TRUE. The function is meant for handling all the cases that cannot be reached by using validate_cols and validate_rows functions.
A data.frame or tibble to test
A Logical expression to test for, e.g.
var_name > 0
A character string with description of assertion. The description is then displayed in the validation report
If TRUE and assertion failed the data is marked as defective. For defective data, all the following rules are handled by defect_fun function
While wrapping data with validate function,
error_funparameters are rewritten with
error_appendrespectively. In order to use parameters assigned to the function directly set skip_chain_opts to TRUE
Function that is called when the validation pass
Function that is called when the validation fails
Function that is called when the data is marked as defective