We have existing website built in C# and hosted on a shared Windows server. The aim is to build a simple app within existing website that would take in some data, entered by user, and process it using some R scripts (some statistics) and publish the output on the website in a static (dynamic?) format.
Basic requirements:
What are the existing options?
Old entry on similar issue on SO: Where can I find a hosting service with R?
The most basic method for calling C code from R is to use the . C() function described in the System and foreign language interfaces section of the Writing R Extensions manual. Other methods exist including the . Call() and .
The official R software environment is an open-source free software environment within the GNU package, available under the GNU General Public License. It is written primarily in C, Fortran, and R itself (partially self-hosting). Precompiled executables are provided for various operating systems.
c() function in R Language is used to combine the arguments passed to it.
The newline character ( \n ) is called an escape sequence, and it forces the cursor to change its position to the beginning of the next line on the screen. This results in a new line.
A Shiny app can absolutely be integrated into a webpage, typically as an iframe hosted by shinyapps.io, and embedded into your website. See Shiny homepage for an example. You can see some pointers in Embedding a Shiny application in a html document on Google Groups.
A solution more in line with what was asked is to use a server application like RServe to facilitate communication between a running R session and a .NET/C# application. Since RServe allows for remote connections, it can be used by an existing website, with the RServer running on a different server.
Probably your best bet is to fire up an amazon ec2 windows image. install R. use R.NET. done.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With