Skip to content
Prev 6089 / 10988 Next

[Rcpp-devel] RCOM

On 18 June 2013 at 11:08, David Silkworth wrote:
You can use Rcpp with MSVC but in a very limited way by exporting 
symbols to a .def file, and you have to use regular C types via extern 
"C" calls. If you just need to pass integral types and simple arrays and 
require Rembedded for performance reasons, this may work for you.

I found this SVN repo a while back which calls into starts Rembedded via 
RInside indirectly from a MSVC compiled DLL, and includes some simple 
Rcpp functions - I think just Rcpp::List::create(...):

http://apsrunet.apsim.info/svn/apsim/trunk/Model/RLink/

Hopefully someday MSVC will be supported for building R...
I would personally stay away from RCOM and anything else which requires 
statconnDCOM due to restrictive licensing and closed source. I think it 
even displays a splash screen advertisement each time you call its 
"init" function.

As Dirk mentioned, if you can send your R objects over TCP without a 
significant performance penalty, Rserve is the way to go. Also see the 
"RServeCLI" and "RServeCLI2" projects for .NET interop.

If you are using .NET and need to directly call into R.dll - still using 
Cdecl calls (via P/Invoke) and R SEXPs, no C++ classes - I think that 
R.NET is still the best way to go, but I am not sure how active 
development is: http://rdotnet.codeplex.com/

Best,
John
Message-ID: <00F9E64B563E7C45818C85C1B7FCC7262C874776@SFMB02.exponent.com>
In-Reply-To: <01EAFA83F326C74A9FDA63CECD54CAC4410D6175@SN2PRD0710MB394.namprd07.prod.outlook.com>