This function tests whether an object is a data library. The data library has a class of "lib".

is.lib(x)

Arguments

x

The object to test.

Value

TRUE or FALSE, depending on whether or not the object is a data library.

Examples

# Create format catalog
libname(dat, tempdir()) 
           
# Test for "lib" class
is.lib(dat) 
# [1] TRUE

is.lib(list())
# [1] FALSE

# Clean up
lib_delete(dat)