I ma trying to use R language inside of C# application.
I have followed the instructions here - http://joachimvandenbogaert.wordpress.com/2009/03/26/r-and-c-on-windows/ and I can succesfully connect to R server via COM. But when I try to get the result of an operation I get null instead of a value:
connector.EvaluateNoReturn("x <- c(2,3,5,1,4,4)");
var result = connector.Evaluate("sum(x)"); // it is always null here
I wonder what else should I check? I've set compilation mode to X86 for my VS project/solution. I have pointed all Environment variables to i386 subfolder of bin folder, but nothing helps.
I have Win7 64bit, R version 2.15.0. Maybe I should try 64bit R instead?