isValid.ggobi {Rggobi}R Documentation

Determines whether a reference to an internal ggobi object is valid

Description

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 S ggobi object refers is still in existence.

Usage

isValid.ggobi(.gobi)

Arguments

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

Value

A logical value with TRUE indicating that the reference identifies a real object that currently exists within the ggobi engine, or FALSE that the C level object to which the S object refers no longer exists.

Author(s)

Duncan Temple Lang

References

http://www.ggobi.org

See Also

ggobi close.ggobi

Examples

  g <- ggobi(system.file("data", "flea.xml", package="Rggobi"), args="-noinit")

   # still valid
  isValid.ggobi(g)  

  close(g)

   # no longer valid.
  isValid.ggobi(g)  

[Package Rggobi version 1.1-2 Index]