.stop_required_columns_misplaced generates an error condition of class "required_columns_misplaced". The order of the required columns can be printed with the .requiredColumns function. This function should be used within the .checkRequiredColumns function.

.stop_required_columns_misplaced(cols, dat_name = NULL, df, ...)

Arguments

cols

A character vector containing the names of the missing columns.

df

A data frame with information about the expected and actual positions of the required columns in a bugphyzz dataset. See .checkRequiredColumns.

...

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

dataset_name

A character string indicating the name of the dataset.

Value

Error condition. Object of class: "required_columns_misplaced", "error", "condition".