has_required_types_or_classes {ForestElementsR}R Documentation

Check Required Type or Class for a List of Objects

Description

Check Required Type or Class for a List of Objects

Usage

has_required_types_or_classes(x, names_and_rqmts)

Arguments

x

a list of objects to be checked

names_and_rqmts

a tibble that relates object names and the names of the types and classes they are required to have. Must have two character columns, name (i.e. the object name), and required (i.e. the name of the required type or class)

Value

A list with two elements: 1) rqmt_ok which is TRUE if the requirement is met and FALSE otherwise; 2) err_message, the body of an error message to be used by the calling function (mentions all problematic elements)


[Package ForestElementsR version 2.1.0 Index]