assert_valid_type: Check variable is of correct type

View source: R/assertions.R

assert_valid_typeR 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.


chevron documentation built on June 20, 2025, 5:08 p.m.