Mandatory columns for the data.table entered in function are checked like this:
`# check input
dt.check <- length(dt.req[dt.req %in% dt.cols]) == 29
check type of dt
checkmate::assert_true(dt.check) If required columns are missing this results in the error message: Error in OBIC::obic_field_dt(obiin) :
Assertion on 'dt.check' failed: Must be TRUE.`
The error message is more usefull if it tells the user which column name is missing
Mandatory columns for the data.table entered in function are checked like this: `# check input dt.check <- length(dt.req[dt.req %in% dt.cols]) == 29
check type of dt
checkmate::assert_true(dt.check)
If required columns are missing this results in the error message:
Error in OBIC::obic_field_dt(obiin) : Assertion on 'dt.check' failed: Must be TRUE.`The error message is more usefull if it tells the user which column name is missing