I have a Shiny app that I would like to run on an existing Apache server. I am completely new to servers and don't have much idea of where to start. Unfortunately most of the resources I've found online have been about NGINX and not Apache.
I know something like this is possible, but I am not sure how to start. How can I get started with hosting my own Shiny app on an Apache server?
So you don't run a Shiny app on Apache, Shiny Apps must be run on a Shiny Server. You have several options for deploying a Shiny app to your website. The simplest approach is to publish your app to shinyapps.io then add an IFrame to your website that will display your deployed Shiny app.
Since you have asked about how to run a Shiny App on Apache, I assume you want to deploy your own Shiny Server, which can be deployed on the same machine as your Apache server or on a different machine. Instructions for doing this may be found here: https://www.rstudio.com/products/shiny/download-server/
Once you shiny server is installed you will need to publish your app there. This is accomplished by moving your r files to the appropriate location on your Shiny Server. For details see: http://docs.rstudio.com/shiny-server/#host-a-directory-of-applications-1
Once you have done this and have your app running on Shiny Server, you need to set up Apache(Nginx or another webserver) to act as a proxy to Shiny Server. Here is a link that walks you through the steps: https://support.rstudio.com/hc/en-us/articles/213733868-Running-Shiny-Server-with-a-Proxy
If you have not done this before and do not have experience with Linux or servers, I would expect it to take at least 4 hours.
Apache can't run Shiny.
Alternatively, I suggest a nice and clear tutorial about running the R web app (aka Shiny) using Google cloud. Google cloud offers 300 USD free credit to any new user that I think is good for begninners.
https://www.theorsociety.com/media/3832/data-visualisation-workshop-uploading-a-shiny-app-to-a-server-_14062018122240.pdf
Related
Currently, I have developed a shiny app which works fine on my system and runs on localhost:6000,
Now I want it to be available over the web.
So I am planning to run my app over a virtual machine using AWS, GCP or any cloud service provider and I will mask the port to some web URL.
But I suspect that it won't work as I am not using the shiny-server.
Will It work?
If Not, then are there any alternatives?
I want to run a Shiny application on a Windows Server. The shiny application runs on Port 8080 and the traffic is routed through IIS. Everything works fine, but from time to time the application crashes. So far I've written a small R script which proofs whether the application is available and if not it restarts the Shiny app. The script is called by Task Scheduler. This solution is kind of messy and the Scheduler does not work as expected.
Are there any similar set-ups or are there any pre-defined solutions, such as the Shiny Server? (I'm not allowed to install a VM. Unfortuentaly, it must be a Windows-only solution.)
I'm not sure if I'm saying this correctly so please feel free to edit the post were need but now that I've created an R Script I know well, I'm learning how to build an interactive web app in R using shiny with the intention of running it on a particular webpage of my website (example.com/shiny-app).
I'm using MotoCMS so I think the only way I could accomplish thus is via the embedd feature. My website is hosted on Godaddy.
With all that being said, is it possible to run a interactive web app in R using Shiny App on GoDaddy hosted MotoCMS Website?
Is there an online tutorial or could someone answer with the step by step process regarding how to run a interactive web app in R using Shiny App on GoDaddy specifically?
If I created a dedicated domain so that I wouldn't have to deal with my CMS but the hosting would still go through GoDaddy, could someone answer with the step by step process regarding how to run a interactive web app in R using Shiny App?
Host your Shiny web app on http://shinyapps.io, then embed the link as a page in your MotoCMS website.
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:
Secure
Relatively inexpensive
Low maintenance requirements
What are the existing options?
Does Microsoft offer an out-of-the-box solution, given their heavy activity (Revolution R)?
R.NET could be used if the hosting company (private hosting) allowed R installation on their server (website hosted there). I’m not sure how good this solution would be, however.
What are the other options apart from Shiny?
Old entry on similar issue on SO: Where can I find a hosting service with R?
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.
I have shiny servers running on ubuntu for some time, but I can`t make it work on debian, I found some tutorials on google, like this
http://mars.wiwi.hu-berlin.de/mediawiki/sk/index.php/Shiny
but none of them worked for me. In this same server my Rsudio server works and I can log in and run a shiny app in the browser, is there a way to share the web link to run shiny server through Rstudio?
You can distribute your shiny app on https://www.shinyapps.io/ and share it with others.
If you will really want to host your app with Rstudio-server, maybe this answer is helpful:
Publish Rstudio Shiny App in intranet