I'm trying to execute a R code using Excel with the Rexcel tool.
I´ve created a button and an associate macro that executes the following 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
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!