Assert ParamUty Custom Checks for a data.table Column
Source: R/utils_objective.R
assert_param_uty_custom_check.RdApplies a ParamUty parameter's custom_check to each non-special entry of
a column and raises an informative error for the first failing row.
Arguments
- col
Column values to validate.
- param_id
(
character(1))
Parameter identifier used in error messages.- custom_check
(
function)
Custom validation function stored on theParamUty.- special_vals
(
list())
Special values that bypass the custom check.- .dt_name
(
character(1))
Name of thedata.tablefor error messages.