Integrating R with Existing C # Website

We have an existing website created in C # and hosted on a shared Windows server. The goal is to create a simple application on an existing website that will receive some user input and process it using some R-scripts (some statistics) and publish the output on the website in a static (dynamic?) Format.

Primary requirements:

  • Secure
  • Relatively inexpensive
  • Low maintenance requirements

What are the existing options?

  • Does Microsoft offer a turnkey solution given their heavy activity (Revolution R)?
  • R.NET can be used if the hosting company (private hosting) allows the installation of R on its server (the website is hosted there). I am not sure how good this decision will be, however.
  • What are other options besides Shiny ?

Old post on a similar issue on SO: Where can I find a hosting service using R?

+7
r web-services
source share
2 answers

A Shiny application can be completely integrated into a web page, usually as an iframe hosted by shinyapps.io and embedded in your website. See Shiny homepage for an example. You can see some pointers in Embedding a brilliant application into an html document in Google Groups.

A solution more appropriate to what was proposed is to use a server application, such as RServe , to facilitate communication between a running R session and a .NET / C # application. Because RServe allows remote connections, it can be used on an existing website, and RServer runs on a different server.

+3
source share

Probably your best bet is to run an Amazon ec2 windows image. install R. use R.NET. done.

+1
source share

All Articles