title: RExcel How to execute a R code
body: <p>I'm trying to execute a R code using Excel with the Rexcel tool. </p>
  
  <p>I´ve created a button and an associate macro that executes the following code:</p>
  
  <pre><code>Sub button()
      RInterface.StartRServer
      RInterface.RunRFile "C:/Users/fran21/Downloads/R_NYSE_Hadoop/predicciones.R"
      RInterface.GetArray "array", Range("A24")
      RInterface.StopRServer    
  End Sub
  </code></pre>
  
  <p>I use RunRFile to execute my R code and GetArray to try to show a variable of my R code. The execution doesn't throw errors but I can´t see the results!</p>