I've registered for the beta hosting. I've tried to follow the directions for creating the shinyapps/myapp folder on my widnows machine. I can run shiny apps locally. I've installed the node.js program shiny requires but I can get the config file? I think my error message requires python? Is there an easier way to host the shiny app on a windows machine? Thanks
The shiny package and the shiny-setver service are two separate things. You can install the R package, develop and test shiny apps in Windows but you can't deploy them (in a native way) in a Windows server, although, you could use virtual machines or containers running Linux.
You might be eager to deploy your Shiny app to a remote server. But the simplest way to run a Shiny app is to run it locally. You only need the shiny R package installed, and you can run the app in your browser.
a bit of a late answer: it is possible to host a shiny app on Windows.
use the following run.R script below, start it as a job on the windows machine. Do make sure that the port (below 1234) is open in the local firewall.
Enjoy!
require(shiny)
folder_address = 'H:/path to app'
x <- system("ipconfig", intern=TRUE)
z <- x[grep("IPv4", x)]
ip <- gsub(".*? ([[:digit:]])", "\\1", z)
print(paste0("the Shiny Web application runs on: http://", ip, ":1234/"))
runApp(folder_address, launch.browser=FALSE, port = 1234, host = ip)
From the Shiny website:
You'll need a Linux server, with the following prerequisites installed:
Node.js 0.8.16 or later For Ubuntu, we have found these instructions to work well. For Red Hat/CentOS, we recommend installing from source. R 2.15 or later Shiny R package, installed into the machine-wide site library. This is one easy way to do that: sudo su - -c "R -e \"install.packages('shiny', repos='http://cran.rstudio.com/')\""
You cannot natively host Shiny apps on a Windows machine right now. Running a virtual machine with Linux might be a good alternative.
Using
https://github.com/leondutoit/shiny-server-on-ubuntu
deployment is fairly easy. Too bad, the author is not very responsive.
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