demo script fails

Aug 13, 2012 at 5:55 PM

I am just trying to run the demoscript:

C# 4.0 (not ClientProject)
Windows 7, 64 bit system
all dlls compiled in 32bit mode with SharpDevelop

REngine.SetDllDirectory(@"C:\Program Files\R\R-2.15.1\bin\i386");

 REngine engine =null;

engine = REngine.CreateInstance("RDotNet", new[] { "-q" });   

NumericVector group1 = engine.CreateNumericVector(new double[] { 30.02, 29.99, 30.11, 29.97, 30.01, 29.99 });

  NumericVector group2 = engine.EagerEvaluate("group2 <- c(29.89, 29.93, 29.72, 29.98, 30.02, 29.98)").AsNumeric(); 

 engine.SetSymbol("group1", group1);

 

EagerEvaluate works, but SetSymbol fires an exception:

catch (Exception ex) { Functions.ExceptionLog(log,"Error: " , ex); }

any ideas?

thanks!!!