This function runs an R Shiny app as a background job using the specified directory, name, host, and port.
Arguments
- appDir
The application to run. Should be one of the following:
A directory containing
server.R
, plus, eitherui.R
or awww
directory that contains the fileindex.html
.A directory containing
app.R
.An
.R
file containing a Shiny application, ending with an expression that produces a Shiny app object.A list with
ui
andserver
components.A Shiny app object created by
shinyApp()
.
- job_name
The name of the background job to be created
- host
The IPv4 address that the application should listen on. Defaults to the
shiny.host
option, if set, or"127.0.0.1"
if not. See Details.- port
The TCP port that the application should listen on. If the
port
is not specified, and theshiny.port
option is set (withoptions(shiny.port = XX)
), then that port will be used. Otherwise, use a random port between 3000:8000, excluding ports that are blocked by Google Chrome for being considered unsafe: 3659, 4045, 5060, 5061, 6000, 6566, 6665:6669 and 6697. Up to twenty random ports will be tried.