valid_ggobi {rggobi}R Documentation

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.

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.

Value

TRUE if real object still exist, FALSE otherwise

Author(s)

Hadley Wickham <h.wickham@gmail.com>

Examples

g <- ggobi(mtcars)
valid_ggobi(g)
close(g)
valid_ggobi(g) 

[Package rggobi version 2.1.9 Index]