check_return_class: check that toolkit object return the right class

View source: R/misc.R

check_return_classR Documentation

check that toolkit object return the right class

Description

The S3 dispatch assumes naming conventions in the class names. This offers some check.

Usage

check_return_class(obj, ret_class)

Arguments

obj

object with expected return class

ret_class

character string of class expected

Value

throws error if a mismatch


gWidgets2 documentation built on April 3, 2025, 6:18 p.m.