Re: [R] Executable Expressions II

2012-01-19 Thread Ajay Askoolum
Thank you very much for this information. From: R. Michael Weylandt Cc: Richard M. Heiberger ; R General Forum Sent: Thursday, 19 January 2012, 19:17 Subject: Re: [R] Executable Expressions II Glad you got it worked out -- I don't know C# but if

Re: [R] Executable Expressions II

2012-01-19 Thread R. Michael Weylandt
Glad you got it worked out -- I don't know C# but if it's portable-ish to C++ you may also want to look at Dirk's RInside project: http://dirk.eddelbuettel.com/code/rinside.html and here in web-deployment http://dirk.eddelbuettel.com/blog/2011/11/30/#rinside_and_wt Michael On Wed, Jan 18, 2012

Re: [R] Executable Expressions II

2012-01-18 Thread Ajay Askoolum
I am not using RExcel at all. I have now come up with a better solution that using eval. I can construct the data structure (like c(1,2,3,4,5)) as an object in C# and pass it as the argument to the method inside the web service that will call R. Works fine. [[alternative HTML version del

Re: [R] Executable Expressions II

2012-01-18 Thread Richard M. Heiberger
If you are using rcom from Excel, then you would send R the vector of numbers containing the values you were interested in and you would get the mean back. I suggest you look at the RExcel implementation and duplicate its capabilities. The rcom documentation includes examples in other languages t

[R] Executable Expressions II

2012-01-18 Thread Ajay Askoolum
Thank you Michael, Sarah and Robin for the answers to my original question. Michael you asked:"But this is rarely a good ideaperhaps you could say a little more about your overall goal and we could direct you to a more "R"-ish solution? " I realise eval (known as execute in one of my other