seasonder_check_specs | R Documentation |
This function checks if the provided specifications (specs
) contain entries for all the required fields listed in fields
.
seasonder_check_specs(specs, fields)
specs |
A list containing field specifications. |
fields |
A character vector of field names to be checked in the |
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.
Invisibly returns NULL.
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.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.