checkUnexpectedFields: Check for unexpected fields in data and warn if any are found

View source: R/misc.R

checkUnexpectedFieldsR Documentation

Check for unexpected fields in data and warn if any are found

Description

This function compares the fields in the data with a list of expected fields and warns if there are any unexpected fields.

Usage

checkUnexpectedFields(data, expected_fields, class_name, context = NULL)

Arguments

data

The data structure to check

expected_fields

A character vector of expected field names

class_name

The name of the class being populated

context

Optional context information for the warning message

Value

Invisibly returns a character vector of unexpected field names


rmzqc documentation built on June 8, 2025, 1:59 p.m.