Is an object an R6 Class Generator or Object? — is.R6 • R6
Description: Checks for R6 class generators and R6 objects.

# Is an object an R6 Class Generator or Object?

Source: `R/is.R`
`is.R6.Rd`

Checks for R6 class generators and R6 objects.

    is.R6(x)

    is.R6Class(x)

## Arguments

x | An object.

## Value

A logical value.

- `is.R6Class` returns `TRUE` when the input is an R6 class generator and `FALSE` otherwise.

- `is.R6` returns `TRUE` when the input is an R6 object and `FALSE` otherwise.

## Examples

    class_generator <- R6Class()
    object <- class_generator$new()

    is.R6Class(class_generator)#> [1] TRUEis.R6(class_generator)#> [1] FALSE
    is.R6Class(object)#> [1] FALSEis.R6(object)#> [1] TRUE