Learn R Programming

rggobi (version 2.1.22)

.GGobiCall: Calling native routines

Description

Wrappers for calling C routines in the R-ggobi library.

Usage

.GGobiCall(.name, ..., .gobi = ggobi_get(), .test=TRUE)

Arguments

.name

the simple name of the C routine to be resolved

...

the arguments that to be passed to the .C or .Call

.gobi

the ggobi instance identifier that is to be passed to the C routine as its last argument

.test

Value

the same result as the corresponding .C and .Call

Details

.GGobiC and .GGobiCall convert the name and then call their C invocation counterparts.

These functions map the simple name of a C routine into the package-specific version of that name. These allow use to hide the use a name mangling scheme of our choosing for the C level routines in the shared library/DLL that provides the glue between R and ggobi. This is useful for avoiding name conflicts with other C code in R or other packages. These are only of relevance to the developers of this package and those working with its C code.

The mapping of the name to its corresponding C routine name is done in conjunction with the pre-processor macro RS_GGOBI. These must be synchronized.

See Also

.C, .Call