BSky.Statistics.R.RService.EvaluateToSymExp C# (CSharp) Method

EvaluateToSymExp() public method

public EvaluateToSymExp ( string commandString ) : SymbolicExpression
commandString string
return SymbolicExpression
        public SymbolicExpression EvaluateToSymExp(string commandString)
        {
            SymbolicExpression returnValue;

            try
            {
                this._RServer.Evaluate("tmp<-" + commandString); // tmp <-  read.spss("", "" )
            }
            catch (Exception e)
            {
                logService.WriteToLogLevel("Could not execute: < " + commandString + " >", LogLevelEnum.Error);
            }
            if (!Conversions.ToBoolean(this._RServer.Evaluate("is.null(tmp)").AsLogical()[0]))
            {
                returnValue = this._RServer.Evaluate("tmp");//.AsList();// list("","" ....)
            }
            else
            {
                returnValue = null;
            }

            return returnValue;
        }
        /// <summary>