check_return_class: check that toolkit object return the right class

Description Usage Arguments Value

View source: R/misc.R

Description

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

Usage

1
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


jverzani/gWidgets2 documentation built on May 20, 2019, 5:17 a.m.