Derived Metric Returns null values when created with R-Script.

Sep 7 at 7:09 AM

I have installed R language and R studio on my machine. I have updated the metadata of the MSTR project from configuration wizard. I am trying to create a derived metric using R-script as instructed in R Integration guide and following the same steps as mentioned in the document.

I have successfully created the derived metric which looks like below.
RScript<[StringParam9]="", [_RScriptFile]="C:\Program Files\R Integration Pack\RScripts\SeasonalForecasting.R", [_InputNames]="Revenue,Month Index, Month of Year">(Revenue, [Month Index], [Month of Year])

Metric is successfully validated but the metric return null values. I have done all the required VLDB and other settings.

I am using the example which is given in R integration guide.
Please help in resolving this.