Tell me more ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

I have made R script code for image processing. I want to run that script on .net platform. I want to use .net for front end design on which I can run 'R' script and do my image processing.

I have found one solution on Stack Overflow which tells about R.NET.dll but that is unable to call 'Raster' package in .net. If there is another way to do it?

share|improve this question

closed as off topic by thorsten müller, superM, Kilian Foth, Martijn Pieters, Blrfl Apr 15 at 10:56

Questions on Programmers Stack Exchange are expected to relate to software development within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

1 Answer

There is another interface called R-(D)Com, which might be helpful. See this question for someone using it with C#. I have no idea whether it will work for your use case, though.

If there isn't an existing interface that can do what you want, this probably isn't going to be very easy to do. You could run R as an external command, which would probably be easy, but slow and inelegant. Or you could work on the R.NET source code to add the required functionality, which might be a big job.

Depending on your needs I would be more inclined to take one of the following approaches:

  • Port your image processing algorithm to .NET and remove R from the equation altogether.
  • If it is a desktop program, one option is making the entire program in R (R has Tk built in, which allows GUIs to be created easily.).
  • Instead of .NET, use something else that has a better interface to R.
share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.