is.R6: Is an object an R6 Class Generator or Object?

Description Usage Arguments Value Examples

View source: R/is.R

Description

Checks for R6 class generators and R6 objects.

Usage

1
2
3

Arguments

x

An object.

Value

A logical value.

Examples

1
2
3
4
5
6
7
8
class_generator <- R6Class()
object <- class_generator$new()

is.R6Class(class_generator)
is.R6(class_generator)

is.R6Class(object)
is.R6(object)

Example output

[1] TRUE
[1] FALSE
[1] FALSE
[1] TRUE

R6 documentation built on Aug. 19, 2021, 5:05 p.m.

Related to is.R6 in R6...