Learn R Programming

chevron (version 0.2.7)

assert_valid_type: Check variable is of correct type

Description

Check variable is of correct type

Usage

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

Value

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

Arguments

x

Object to check the type.

types

(character) possible types to check.

label

(string) label.