check_class: Check class for arguments

Description Usage Arguments Value

View source: R/check_class.R

Description

Check class for arguments

Usage

1
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 July 9, 2021, 1:06 a.m.