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

Dirk Eddelbuettel
Mon, 21 Oct 2013 17:31:29 -0000

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