Learn R Programming

test.assessr (version 1.1.1)

check_elements_simple: Check Which Elements Exist in a List

Description

This internal function checks whether specified elements exist in a given list and returns two vectors: elements that exist and elements that do not.

Usage

check_elements_simple(x, elems)

Value

A list with:

present

Character vector of elements that exist in the list.

missing

Character vector of elements that do not exist in the list.

Arguments

x

A list object to check (e.g., `test_results`).

elems

A character vector of element names to check.