seasonder_check_specs {SeaSondeR}R Documentation

Validate Field Specifications

Description

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.

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.

Value

Invisibly returns NULL.

Condition Management

This function utilizes the rlang package to manage conditions, and provide detailed and structured condition messages:

Condition Classes:

Condition Cases:


[Package SeaSondeR version 0.2.8 Index]