Skip to contents

Non-throwing predicate for any of the S7 class descendants (MemoryDaf, FilesDaf, ReadOnlyChainDaf, WriteChainDaf, ViewDaf, ContractDaf, ...).

Usage

is_daf(x)

Arguments

x

Any R object.

Value

TRUE if x inherits from DafReader, else FALSE.

Examples

is_daf(memory_daf())
#> [1] TRUE
is_daf(NULL)
#> [1] FALSE