title: Using R(D)COM for integrating R with C#
body: <p>I am trying to use R(D)Com interface. I have R 2.12.1 installed on machine. For using this interface in C#, I loaded rscproxy_1.3-1 package and then installed R_Scilab_DCOM3.0-1B5 on my machine. Also, I copied sciproxy.dll from Program Files\R(D)COM Server\Scilab to Program Files\R(D)COM Server\bin, as informed while installing the interface.</p>
  <h2><strong>My Problem:</strong></h2>
  <p>As a part of testing, I tried the code from blog post <a href="http://vvella.blogspot.com/2010/08/integrate-c-net-and-r-taking-best-of.html" rel="noreferrer">http://vvella.blogspot.com/2010/08/integrate-c-net-and-r-taking-best-of.html</a>. But my form application failed due to exception raised by statement rconn.Init(“R”). The exception text was Exception from HRESULT: 0x80040013 I tried to run samples from Programs-&gt;R-&gt;R(D)COM Server-&gt;Server 01 Basic Test. On launched form, I clicked button “Start R” but it failed with error printed in text box as “Initializing R...Function call failed Code: -2147221485 Text: installation problem: unable to load connector”</p>
  <h2>I tried this:</h2>
  <p>I tried to troubleshoot it with the help of Index html page, and there under installation section, I found that there must be rproxy.dll under installed R/Bin folder. Also, HKEY_LOCAL_MACHINE\Software\R-core\R\InstallPath should point to installation folder.</p>
  <p>Things lacking on my machine are</p>
  <ul>
  <li>the installed R/bin folder doesn’t
  contain rproxy.dll. Where can I get
  this dll? Or is it sciproxy.dll
  instead?</li>
  <li>HKEY_LOCAL_MACHINE\Software\R-core\R\InstallPath
  points to installation folder, but
  there is no entry under
  HKEY_CURRENT_USER\Software.</li>
  </ul>
  <p>I can guess there is something fishy about installation, or registering COM server. But I am not successful in figuring it out.</p>
  <p>Could you please tell me where am I going wrong?</p>
  <p>thanks,</p>
  <p>Kapil</p>