title: R-Excel VBA: how to extract values returned by GetArrayToVBA?
body: <p>I'm trying to write an R-Excel vba addin and am having trouble using <code>GetArrayToVBA</code>. </p>
  
  <p>Example:</p>
  
  <pre><code>RInterface.StartRServer
  RInterface.RRun "mytst&lt;-4"
  Dim tstVar As Variant, tst As Double
  tstVar = RInterface.GetArrayToVBA("mytst")
  tst = CDbl(testVar)
  MsgBox "count = " &amp; CStr(tst)
  RInterface.StopRServer
  </code></pre>
  
  <p>Results in messagebox showing <code>count = 0</code>. I was expecting <code>count = 4</code>.</p>