stop with a clear, actionable error message if any of `cols` is missing from `dat_raw_anon`, instead of letting the caller fail downstream with a confusing low-level error (e.g. base R's "replacement has 0 rows, data has NNN" from indexing a non-existent column with `[[`, which gives no hint about which column name was actually wrong).
Source:R/score.R
check_raw_anon_columns_exist.Rdstop with a clear, actionable error message if any of `cols` is missing from `dat_raw_anon`, instead of letting the caller fail downstream with a confusing low-level error (e.g. base R's "replacement has 0 rows, data has NNN" from indexing a non-existent column with `[[`, which gives no hint about which column name was actually wrong).