This project has moved and is read-only. For the latest updates, please go here.

Multiple Outputs

Dec 11, 2013 at 2:53 AM
Hello, I have multiple outputs in my deployR window as well as in the MSTR signature header block. However, only the first one is being output to the report. Is this intended or is there a way to output multiple metrics at once?
Jan 7, 2014 at 10:31 PM
Good question: To specify the variable that will be the output used by a metric, you specify that variable name using the function parameter "_OutputVar" -- if it is missing or empty, the first output defined in the analytic signature is used. To use another output, set this function parameter to that variable; for example, to set the metric to return Out2:
RScript<_OutputVar="Out2", _RScriptFile="MyScript.R", _InputNames="In1, In2, In3">(In1, In2, In3)

Hope this helps,

May 26, 2014 at 6:23 PM
Hello , i want to pass two outputs from R to Microstrategy , how to acheive this?
Jul 31, 2014 at 10:26 PM
You create two metrics, both we the same metric expression except they specify different _OutputVar parameters.