.stop_invalid_column_values generates an error condition of class "invalid_column_names". This function should be used within the .checkColumnValues function.

.stop_invalid_column_values(col, n_rows, dat_name = NULL, values = NULL, ...)

Arguments

col

Character string containing a single column name.

n_rows

Integer of length 1; number of rows with invalid values.

dat_name

Character string indicating the dataset name.

values

Optional. Invalid values in column. Only the first three will be printed.

...

Any other argument useful to identify the source of the error and/or how to fix it.

Value

Error condition. Object of class "invalid_column_names", "error", "condition".