Skip to contents

This function checks if the provided specifications (specs) contain entries for all the required fields listed in fields.

Usage

seasonder_check_specs(specs, fields)

Arguments

specs

A list containing field specifications.

fields

A character vector of field names to be checked in the specs.

Value

Invisibly returns NULL.

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 the specs list.

Condition Cases:

  • Required field specification is missing.