From andralia.tolbus at gmail.com  Sun May 22 14:31:51 2011
From: andralia.tolbus at gmail.com (Andra)
Date: Sun, 22 May 2011 12:31:51 +0000
Subject: [Rd] Use of R in C#
References: <C3D16A4C8BD3F843860C73573C70DD952E255192@TK5EX14MBXC103.redmond.corp.microsoft.com>
Message-ID: <loom.20110522T142600-449@post.gmane.org>


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]]
> 
>



[Rd] Use of R in C#
Andra