[Rd] About integrating R inside a C++ software

Dirk Eddelbuettel edd at debian.org
Mon Oct 21 19:31:29 CEST 2013

Tambellini William <william.tambellini <at> galaxysemi.com> writes:
>   We want to integrate R inside our software in order to use mainly the 
> engine (usual stats as mean, sigma, Pearson, outlier detection, CPA, 
> multivariate, ...) and probably later the chart solution.
>   Of course we don't want to temporary write the data to some csv files 
> and then do an ugly system() call : system("RScript.exe myscript.R") for 
> many legitimate reasons.

That is *precisely* the use case for RInside which you already found.

>   We are also using Qt so a Qt to/from R wrapper could be interesting.

The RInside distribution contains *a fully working example* for a Qt-based
C++ main program with an embedded R instance:  RInside.

Hope this helps,  Dirk

More information about the R-devel mailing list