[Rd] Use of R in C#

Andra andralia.tolbus at gmail.com
Sun May 22 14:31:51 CEST 2011


Jeff Abrams <jeffab <at> microsoft.com> writes:

> 
> I have a C# program that requires the run of a logistic regression.  I have 
downloaded the R 2.11 package, and
> have added the following references to my code:
> 
> STATCONNECTORCLNTLib;
> StatConnectorCommonLib;
> STATCONNECTORSRVLib;
> 
> In my code I have:
> StatConnector scs = new STATCONNECTORSRVLib.StatConnectorClass();
> scs.Init("R");
> 
> The init step returns the below error which seems to indicate a connection 
failure.
> 
> System.Runtime.InteropServices.COMException was unhandled
>   Message="Exception from HRESULT: 0x80040013"
>   Source="Interop.STATCONNECTORSRVLib"
>   ErrorCode=-2147221485
> 
> Any ideas?
> 
> Jeff Abrams
> Research Engineer


Hi,

   I have solved this problem wit R 2.9 by running the com server installation 
in Win 7 Compatibility. Everything went perfectly fine until I have installed 
the latest version of R, 2.13. The problem was back. 
I can see that your post is a couple of weeks old. Have you managed to solve 
this problem?
> Auction Analytics, Microsoft
> 
> 	[[alternative HTML version deleted]]
> 
>



More information about the R-devel mailing list