A C++ Library to Access R


The R software is a language and environment implementing a diversity of statistical methods in the form of a open source project.

This work implements a way to embed R in other computer programs incorporating the ability to perform statistical analysis.

There are three ways to have access the functions of the R. These options have advantages and disadvantages. The first form is to call it from batch, that is a system call, and has as disadvantage to call the R all time that it has a statistic operation to be executed. The second way is using the Rserve, that is a server TCP/IP, and is necessary a connection for the net. The third option is using the dynamic library libR. The only disadvantage of this option is the implementation of the access interface. Therefore our work focus on the development of this interface.

The functions implemented are: to initialize R, to declare and to liberate variables inside, and to execute R functions. myR has proved steady and robust as an interface with R. Further development consists of using myR in a real program, the TerraLib/TerraView, a GIS free and open source software.


myR Team


This project is partially supported by FPLF, project number 2005.05.066.