is.R6 {R6} | R Documentation |
Is an object an R6 Class Generator or Object?
Description
Checks for R6 class generators and R6 objects.
Usage
is.R6(x)
is.R6Class(x)
Arguments
x |
An object. |
Value
A logical value.
is.R6Class
returnsTRUE
when the input is an R6 class generator andFALSE
otherwise.is.R6
returnsTRUE
when the input is an R6 object andFALSE
otherwise.
Examples
class_generator <- R6Class()
object <- class_generator$new()
is.R6Class(class_generator)
is.R6(class_generator)
is.R6Class(object)
is.R6(object)
[Package R6 version 2.5.1 Index]