Learn R Programming

scenes (version 0.1.0)

.validate_values: Ensure that an Argument has Certain Values

Description

Ensure that an Argument has Certain Values

Usage

.validate_values(parameter, parameter_name, valid_values)

Value

The parameter.

Arguments

parameter

The argument to test.

parameter_name

The argument's name. Eventually this should be automatically handled through rlang or something, in theory.

valid_values

(optional) Expected values of the parameter.