assert_valid_type {chevron}R Documentation

Check variable is of correct type

Description

Check variable is of correct type

Usage

assert_valid_type(x, types, label = deparse(substitute(x)))

Arguments

x

Object to check the type.

types

(character) possible types to check.

label

(string) label.

Value

invisible NULL or an error message if the criteria are not fulfilled.


[Package chevron version 0.2.6 Index]