Checks for R6 class generators and R6 objects.
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)
#> [1] TRUE
is.R6(class_generator)
#> [1] FALSE
is.R6Class(object)
#> [1] FALSE
is.R6(object)
#> [1] TRUE