So the first problem is that an engine doesn't exist in the current context; The documentation doesn't tell you how to create an engine. Following code
kind of works (but if you follow it exactly is comes up with errors about it being redundant code re. setting the directory - I tried just using the code to create an instance of an engine.).
The second is that e can't be set as a variable (easy to change but the example code shouldn't use "e")
Thirdly, the demo commands don't work
for example: (e is changed to x)
var x = engine.Defer("x<-3"); makes this error
Error 1 The best overloaded method match for 'RDotNet.REngine.Defer(System.IO.Stream)' has some invalid arguments S:\SkyDrive\Documents\Projects\R.net test\R.net_TESTER\R.net_TESTER\Form1.cs 46 24 R.net_TESTER
If I change it to engine.evaluate it makes an invalid operator exception at runtime.
x.ToArray(); makes this error
Error 1 'RDotNet.SymbolicExpression' does not contain a definition for 'ToArray' and no extension method 'ToArray' accepting a first argument of type 'RDotNet.SymbolicExpression' could be found (are you missing a using directive or an assembly reference?) S:\SkyDrive\Documents\Projects\R.net
test\R.net_TESTER\R.net_TESTER\Form1.cs 51 13 R.net_TESTER
So yea - like I said the documentation is not at all helpful beyond setting the .dll directory (either that or R.net is
buggy). Which sucks because I'd really like to use R.net (RDotCom seems useless for anything needing redistribution) but as it stands it's unusable...
I'm using Win7 and R.net 1.5.5