I would like to use macros to run my Rexcel codes, so as to automate the process by the press of a button.
#!rput zz 'Sheet1'!$B$2:$B$1112
library(forecast)
zz <- ts(zz,freq=365,start=c(2007,121))
arimaz<- auto.arima(zz,d=1)
arimazP <- predict(arimaz,n.ahead=409)
write.table(arimazP)
Currently I run both the codes by right clicking, and then pasting the output. I tried rercording a macro for this, but did not work out. Please help..