loadC()loadC() launches an interactive GUI that can be used
to manage the construction of C functions intended to be called from R. The
GUI provides tools to edit, compile, load, and run C functions in the R
environment.
The loadC GUI also includes a tool for comparison between the running times
and return values of R and C functions. It is assumed that the R and C
functions are named prefix.r and prefix.c, respectively, where
prefix can be any user-chosen prefix. If an initialization function
prefix.init exists, it is called before the start of the comparison.The GUI controls:
| File Prefix |
Prefix for .c and .r files. |
| Lib Prefix |
| Prefix for shared library object. |
| Set WD |
| Set the working directory. |
| Open Log |
| Open the log file. |
| Open.c File |
Open the file prefix.c from the working directory. |
| Open .r File |
Open the file prefix.r from the working directory. |
| COMPILE |
Compile prefix.c into a shared library object. |
| LOAD |
| Load the shared library object. |
| SOURCE R |
Source the file prefix.r. |
| UNLOAD |
| Unload the shared library object. |
| Options |
| Editor |
| Text editor to use. |
| Update |
| Commit option changes. |
| Browse |
| Browse for a text editor. |
| Clean Options |
| Select All |
| Select all check boxes specifying file types. |
| Select None |
| Select none of the check boxes. |
| Clean Proj |
| Clean the project of selected file types. |
| Clean All |
| Clean the directory of selected file types. |
| Comparison |
| Times to Run |
| Number of times to run the R and C functions. |
| RUN |
| Run the comparison between R and C functions. |
| R Time |
| Computing time to run the R function multiple times. |
| C Time |
| Computing time to run the C function multiple times. |
| Ratio |
| Ratio of R/C run times. |
compileC