I have a windows machine with IIS and I can see the IIS welcome page on http://myname/
. I have recently started using Shiny through its own server and I can see
The comments have already said this, but in the interest of providing an answer:
You can use shiny server (free and pro) to host apps on your own server. I believe this will allow you to set it up on http://myname/, however shiny server should be running in a linux environment as listed by @pops.
https://www.rstudio.com/products/shiny/shiny-server/
Or
you can use shiny.io to host them for you, with premium versions having the ability to set your own domain
https://www.shinyapps.io/
When using Shiny localy the library set a server in which you can access the Shiny application. If you want to make it accesible on a LAN you have to set up a Shiny server.
You will need a Linux server with R and Shiny instaled, in addition to all the libraries your application needs. To configure it you can follow this
Once the server is totally configured you can add your own applications to the server adding the applications to the folder:
/srv/Shiny-server/myApp
And will be available inyourServerAddress:3838/myApp
You should make following:
Set Shiny to start from port "XXXX" and your IP (instead of 127.0.0.1)
For example:
options(shiny.port = 7775)
options(shiny.host = "192.0.0.45")
Run your App
runApp(app)
Make sure the port is opened in your firewall.
To be a bit more precise, this is how your file startApp.R
might look like:
library(shiny)
options(shiny.host = '0.0.0.0')
options(shiny.port = 8888)
runApp('shinyapp')
This is an example of how you would set the options if Shiny was running behind nginx with tcp.