This package provides rich facilities for extracting meta-data about C/C++ code to get a description of variables, routines, data structures, classes and methods. We use these to programmatically explore and summarize native code and importantly, to generate R bindings to it (or for other languages). This differs from SWIG in that a) it makes the information available to R programmers directly and so the analysis of the code and binding generation can be done entirely within R, and b) it provides more information than SWIG does, e.g. allowing us to examine the bodies of routines/methods and so compute call graphs, analyze the use of global variables. This holds some promise for helping to automate the conversion of C code in R packages to thread-safe code for use with in-process concurrent threads, and general refactoring.
Package details |
|
---|---|
Author | Duncan Temple Lang <duncan@wald.ucdavis.edu> |
Maintainer | Duncan Temple Lang <duncan@wald.ucdavis.edu> |
License | GPL |
Version | 0.6-0 |
URL | http://www.omegahat.org/RGCCTranslationUnit |
Package repository | View on GitHub |
Installation |
Install the latest version of this package by entering the following in R:
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.