This project is read-only.

A begginer in C# and fluent in R!

Aug 30, 2013 at 9:09 PM
Hi folks,

I would appreciate if anyone can guide me towards the right direction.
I am beginning to work with C# and my background is not software engineering; I am fluent in R though.
I need to deliver bunch of time series prediction algorithms in C# but I prefer to write them in R and kind of call them in C#.
How helpful R.NET would be for this mission?
Can I have a self-contained C# code that does not need installing R?

I am thinking some scripts around these lines in C#:

using System;
using ...

namespace ConsoleApplication
class Program
    static void Main(string[] args)
          output = some_function("name of the the script in R",input)

Basically everything is getting done in R script and C# is just an interface for getting the input and producing the output. Is this possible?

I would be happy if you could point me to helpful documents too.
Thank you
Sep 6, 2013 at 3:41 AM

Yes essentially R.NET is very likely to be helpful to your mission. Your question is broad, however.

The examples in the home page and the Documentation page should let you get started if you have access to a decent IDE (Visual C# Express is more than enough for most).
Several posts in the discussions tab also have pointers on how to load existing R code via the "source" R command to then access R functions.