is_r6_class: Checks if the passed entity is a R6 class.

View source: R/r6.R

is_r6_classR Documentation

Checks if the passed entity is a R6 class.

Description

Checks if the passed entity is a R6 class.

Usage

is_r6_class(value, class_name)

Arguments

value

the value to check

class_name

The name of the class

Examples

## Not run: 
# For assertion
assertthat::assert_that(qscheck::is_r6_class(value, "MyClass"))
# For check
if (qscheck::is_r6_class(value, "MyClass")) {}

## End(Not run)


AstraZeneca/qscheck documentation built on Nov. 1, 2023, 4:45 a.m.