rggobi (version 2.1.22)

valid_ggobi: Validity checking

Description

Determines whether a reference to an internal ggobi object is valid

Usage

valid_ggobi(.gobi)

Arguments

.gobi

an object of class ggobi which refers to an internal ggobi instance.

Value

TRUE if real object still exist, FALSE otherwise

Details

One can create multiple, independent ggobi instances within a single R session and one can also remove them either programmatically or via the GUI. To be able to refer to these objects which are actually C-level internal objects, one has a reference or handle from an S object. Since the C level object can be destroyed while the S object still refers to them, this function allows one to check whether the internal object to which R refers is still in existence.

Examples

Run this code
# NOT RUN {
if (interactive()) {
g <- ggobi(mtcars)
valid_ggobi(g)
close(g)
valid_ggobi(g) }
# }

Run the code above in your browser using DataCamp Workspace