genCode {RGtkBindingGenerator}R Documentation

Create the R and C code for a set of defintions

Description

This takes one or more symbolic descriptions of a collection of classes, routines and enumerations and generates the S-language bindings to these entitities. This includes both S-language functions and the associated C code.

Usage

genCode(defs = getDefs(), filePrefix = "gtk", dir = "/tmp", existingDefs = NULL, verbose = FALSE, libName = filePrefix, package = "RGtk")

Arguments

defs
filePrefix
dir the directory in which to write the files containing the generated S and C code.
existingDefs
verbose a logical value indicating whether to ouput intermediate progress messages during the computations
libName
package

Value

The main purpose of this is for its side effects. It generates S- and C-language files describing the enumeration types, the C routines and accessors for the data structure elements.
The different C files contain a directive to include a file named package.h where the value of package is used here. So, for example, the file RGtk.h is included in the different .c files generated for the RGtk package.

Author(s)

Duncan Temple Lang

References

http://www.omegahat.org/RGtk http://www.omegahat.org/GtkAutoBindingGen http://www.gtk.org

See Also

generateCodeFiles getDefs genLoadClassesCode

Examples



[Package RGtkBindingGenerator version 0.3 Index]