This function checks if the provided specifications (specs
) contain entries for all the required fields listed in fields
.
Details
The function iterates over each field in the fields
vector and checks if there is an associated entry in the specs
list.
If any field is missing, an error is thrown using seasonder_logAndAbort
indicating the missing field specification.
Condition Management
This function utilizes the rlang
package to manage conditions, and provide detailed and structured condition messages:
Condition Classes:
spsr_field_specification_missing_error
: This error is thrown when a required field specification is missing from thespecs
list.
Condition Cases:
Required field specification is missing.