check_class: Check class for arguments

View source: R/check_class.R

check_classR Documentation

Check class for arguments

Description

Check class for arguments

Usage

check_class(argument, target, arg_name)

Arguments

argument

the argument to evaluate.

target

string with the allowed class.

arg_name

string with argument name to print (just for error message)

Value

An error message if argument does not fit the target requirements


hydrotoolbox documentation built on Oct. 25, 2022, 1:05 a.m.