Rcpp is great, and I second that suggestion. But you could also explore another route and use something like OpenCPU.
OpenCPU is a framework for embedding R in systems and applications. It exposes a simple HTTP(s) RPC API to call R functions and scripts, and makes it easy to retrieve the resulting object and graphics in various formats. Hence, you can use any c++ http client library to connect to your OpenCPU computation server. This is perhaps a little more work than RInside, but the advantage is that R will run on a separate server, decoupled from your C++ software. In my experience this is often a good idea, because R can be a bit unpredictable and greedy with hardware resources. Furthermore, you don't need to install a copy of R on each of your software deployments: in a client/server design you can maintain a single centralized computation server that all clients connect to. Have a look at opencpu.org :-) -- View this message in context: http://r.789695.n4.nabble.com/About-integrating-R-inside-a-C-software-tp4678712p4678748.html Sent from the R devel mailing list archive at Nabble.com. ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel