mirror of
https://github.com/johrpan/ubigen.git
synced 2025-10-26 19:57:24 +01:00
Add host parameter
This commit is contained in:
parent
92b5e08dc1
commit
6aefa55eb9
2 changed files with 6 additions and 3 deletions
5
R/app.R
5
R/app.R
|
|
@ -1,8 +1,9 @@
|
|||
#' Run the application server.
|
||||
#'
|
||||
#' @param host The hostname to serve the application on.
|
||||
#' @param port The port to serve the application on.
|
||||
#'
|
||||
#' @export
|
||||
run_app <- function(port = 3464) {
|
||||
runApp(shinyApp(ui, server), port = port)
|
||||
run_app <- function(host = "127.0.0.1", port = 3464) {
|
||||
runApp(shinyApp(ui, server), host = host, port = port)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,9 +4,11 @@
|
|||
\alias{run_app}
|
||||
\title{Run the application server.}
|
||||
\usage{
|
||||
run_app(port = 3464)
|
||||
run_app(host = "127.0.0.1", port = 3464)
|
||||
}
|
||||
\arguments{
|
||||
\item{host}{The hostname to serve the application on.}
|
||||
|
||||
\item{port}{The port to serve the application on.}
|
||||
}
|
||||
\description{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue