is.lib: Class test for a data library

Description Usage Arguments Value See Also Examples

View source: R/utilities.R

Description

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

Usage

1
is.lib(x)

Arguments

x

The object to test.

Value

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

See Also

Other lib: lib_add(), lib_copy(), lib_delete(), lib_info(), lib_load(), lib_path(), lib_remove(), lib_replace(), lib_size(), lib_sync(), lib_unload(), lib_write(), libname(), print.lib()

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
# 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)

libr documentation built on Oct. 10, 2021, 1:07 a.m.