You have been trapped by attempting to use double quotes inside double
quotes.
Use single quotes on the inside

“etsz <- ets(zz,model='ZZZ')"

Please send only minimal data to the list.

dput(head(mydata))

is the preferred format.  That way a reader of this list can pick it up
from the email and drop it
directly into R.


On Tue, Aug 20, 2013 at 2:04 PM, Rui Barradas <ruipbarra...@sapo.pt> wrote:

> Hello,
>
> Address your questions to R-Help, please:
>
> r-help@r-project.org
>
> I don't use VBA, so I can't help you with what you need.
>
> Does your code run in R?
> As a first line of code, you should have written
>
> library(forecast)
>
> rest of answer inline.
>
>
> Em 20-08-2013 17:10, siddhartha.ged...@eclerx.com escreveu:
>
>> 1.      RExcel code automation
>> Objective: I am using Rexcel to run the ETS model. I want to automate the
>> below mentioned code through VBA.
>> Issue: The issue being faced is that vba does not execute the code after
>> the second double quote i.e. in the ETS code mentioned below, the code is
>> executed only till the end of the second double quote.
>>
>> “etsz <- ets(zz,model="ZZZ")
>> etszP <- forecast(etsz,h=442)
>>
>> i.e the code is executed till only etsz <- ets(zz,model="  and not etsz
>> <- ets(zz,model="ZZZ")
>> How can the entire code be made to run in vba in order to automate the
>> process ?
>>
>
> I have no idea.
>
>

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to