From jeroenooms at gmail.com  Tue Oct 22 00:29:50 2013
From: jeroenooms at gmail.com (Jeroen Ooms)
Date: Mon, 21 Oct 2013 15:29:50 -0700 (PDT)
Subject: [Rd] About integrating R inside a C++ software
In-Reply-To: <52655FC6.7030700@galaxysemi.com>
References: <52655FC6.7030700@galaxysemi.com>
Message-ID: <1382394590413-4678748.post@n4.nabble.com>

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.



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